Skip to content

Commit

Permalink
Support API RunHotTopicChat.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 1, 2024
1 parent 9e2c5f8 commit e03e9dc
Show file tree
Hide file tree
Showing 24 changed files with 2,266 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-11-01 Version: 1.5.0
- Support API RunHotTopicChat.
- Support API RunHotTopicSummary.


2024-09-26 Version: 1.4.0
- Support API GenerateBroadcastNews.
- Support API RunCommentGeneration.
Expand Down
184 changes: 184 additions & 0 deletions src/Models/RunHotTopicChatRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatRequest\stepForBroadcastContentConfig;
use AlibabaCloud\Tea\Model;

class RunHotTopicChatRequest extends Model
{
/**
* @var string
*/
public $category;

/**
* @var string[]
*/
public $generateOptions;

/**
* @example 2024-09-13_12
*
* @var string
*/
public $hotTopicVersion;

/**
* @var string[]
*/
public $hotTopics;

/**
* @example 1
*
* @var int
*/
public $imageCount;

/**
* @example xx
*
* @var string
*/
public $modelCustomPromptTemplate;

/**
* @example qwen-max
*
* @var string
*/
public $modelId;

/**
* @example a3d1c2ac-f086-4a21-9069-f5631542f5ax
*
* @var string
*/
public $originalSessionId;

/**
* @var string
*/
public $prompt;

/**
* @var stepForBroadcastContentConfig
*/
public $stepForBroadcastContentConfig;

/**
* @example a3d1c2ac-f086-4a21-9069-f5631542f5a2
*
* @var string
*/
public $taskId;
protected $_name = [
'category' => 'category',
'generateOptions' => 'generateOptions',
'hotTopicVersion' => 'hotTopicVersion',
'hotTopics' => 'hotTopics',
'imageCount' => 'imageCount',
'modelCustomPromptTemplate' => 'modelCustomPromptTemplate',
'modelId' => 'modelId',
'originalSessionId' => 'originalSessionId',
'prompt' => 'prompt',
'stepForBroadcastContentConfig' => 'stepForBroadcastContentConfig',
'taskId' => 'taskId',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->category) {
$res['category'] = $this->category;
}
if (null !== $this->generateOptions) {
$res['generateOptions'] = $this->generateOptions;
}
if (null !== $this->hotTopicVersion) {
$res['hotTopicVersion'] = $this->hotTopicVersion;
}
if (null !== $this->hotTopics) {
$res['hotTopics'] = $this->hotTopics;
}
if (null !== $this->imageCount) {
$res['imageCount'] = $this->imageCount;
}
if (null !== $this->modelCustomPromptTemplate) {
$res['modelCustomPromptTemplate'] = $this->modelCustomPromptTemplate;
}
if (null !== $this->modelId) {
$res['modelId'] = $this->modelId;
}
if (null !== $this->originalSessionId) {
$res['originalSessionId'] = $this->originalSessionId;
}
if (null !== $this->prompt) {
$res['prompt'] = $this->prompt;
}
if (null !== $this->stepForBroadcastContentConfig) {
$res['stepForBroadcastContentConfig'] = null !== $this->stepForBroadcastContentConfig ? $this->stepForBroadcastContentConfig->toMap() : null;
}
if (null !== $this->taskId) {
$res['taskId'] = $this->taskId;
}

return $res;
}

/**
* @param array $map
*
* @return RunHotTopicChatRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['category'])) {
$model->category = $map['category'];
}
if (isset($map['generateOptions'])) {
if (!empty($map['generateOptions'])) {
$model->generateOptions = $map['generateOptions'];
}
}
if (isset($map['hotTopicVersion'])) {
$model->hotTopicVersion = $map['hotTopicVersion'];
}
if (isset($map['hotTopics'])) {
if (!empty($map['hotTopics'])) {
$model->hotTopics = $map['hotTopics'];
}
}
if (isset($map['imageCount'])) {
$model->imageCount = $map['imageCount'];
}
if (isset($map['modelCustomPromptTemplate'])) {
$model->modelCustomPromptTemplate = $map['modelCustomPromptTemplate'];
}
if (isset($map['modelId'])) {
$model->modelId = $map['modelId'];
}
if (isset($map['originalSessionId'])) {
$model->originalSessionId = $map['originalSessionId'];
}
if (isset($map['prompt'])) {
$model->prompt = $map['prompt'];
}
if (isset($map['stepForBroadcastContentConfig'])) {
$model->stepForBroadcastContentConfig = stepForBroadcastContentConfig::fromMap($map['stepForBroadcastContentConfig']);
}
if (isset($map['taskId'])) {
$model->taskId = $map['taskId'];
}

return $model;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatRequest;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatRequest\stepForBroadcastContentConfig\customHotValueWeights;
use AlibabaCloud\Tea\Model;

class stepForBroadcastContentConfig extends Model
{
/**
* @var string[]
*/
public $categories;

/**
* @var customHotValueWeights[]
*/
public $customHotValueWeights;

/**
* @example 20
*
* @var int
*/
public $topicCount;
protected $_name = [
'categories' => 'categories',
'customHotValueWeights' => 'customHotValueWeights',
'topicCount' => 'topicCount',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->categories) {
$res['categories'] = $this->categories;
}
if (null !== $this->customHotValueWeights) {
$res['customHotValueWeights'] = [];
if (null !== $this->customHotValueWeights && \is_array($this->customHotValueWeights)) {
$n = 0;
foreach ($this->customHotValueWeights as $item) {
$res['customHotValueWeights'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->topicCount) {
$res['topicCount'] = $this->topicCount;
}

return $res;
}

/**
* @param array $map
*
* @return stepForBroadcastContentConfig
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['categories'])) {
if (!empty($map['categories'])) {
$model->categories = $map['categories'];
}
}
if (isset($map['customHotValueWeights'])) {
if (!empty($map['customHotValueWeights'])) {
$model->customHotValueWeights = [];
$n = 0;
foreach ($map['customHotValueWeights'] as $item) {
$model->customHotValueWeights[$n++] = null !== $item ? customHotValueWeights::fromMap($item) : $item;
}
}
}
if (isset($map['topicCount'])) {
$model->topicCount = $map['topicCount'];
}

return $model;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatRequest\stepForBroadcastContentConfig;

use AlibabaCloud\Tea\Model;

class customHotValueWeights extends Model
{
/**
* @example comments
*
* @var string
*/
public $dimension;

/**
* @example 1
*
* @var int
*/
public $weight;
protected $_name = [
'dimension' => 'dimension',
'weight' => 'weight',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->dimension) {
$res['dimension'] = $this->dimension;
}
if (null !== $this->weight) {
$res['weight'] = $this->weight;
}

return $res;
}

/**
* @param array $map
*
* @return customHotValueWeights
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['dimension'])) {
$model->dimension = $map['dimension'];
}
if (isset($map['weight'])) {
$model->weight = $map['weight'];
}

return $model;
}
}
Loading

0 comments on commit e03e9dc

Please sign in to comment.