-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
2,266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
src/Models/RunHotTopicChatRequest/stepForBroadcastContentConfig.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
src/Models/RunHotTopicChatRequest/stepForBroadcastContentConfig/customHotValueWeights.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.