From 72e7e042ea947bff85ff11655fb1eef40f7c05dd Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 5 Dec 2024 09:52:22 +0000 Subject: [PATCH] Delete API RunCommentGeneration. --- ChangeLog.md | 5 + src/Models/RunCommentGenerationRequest.php | 163 ------------------ src/Models/RunCommentGenerationResponse.php | 71 -------- .../RunCommentGenerationResponseBody.php | 85 --------- .../header.php | 117 ------------- .../payload.php | 61 ------- .../payload/usage.php | 77 --------- .../RunCommentGenerationShrinkRequest.php | 163 ------------------ .../payload/output/hotTopicSummaries.php | 86 ++++++++- .../output/hotTopicSummaries/images.php} | 20 ++- .../payload/output/hotTopicSummaries/news.php | 63 +++++++ src/QuanMiaoLightApp.php | 93 ---------- 12 files changed, 161 insertions(+), 843 deletions(-) delete mode 100644 src/Models/RunCommentGenerationRequest.php delete mode 100644 src/Models/RunCommentGenerationResponse.php delete mode 100644 src/Models/RunCommentGenerationResponseBody.php delete mode 100644 src/Models/RunCommentGenerationResponseBody/header.php delete mode 100644 src/Models/RunCommentGenerationResponseBody/payload.php delete mode 100644 src/Models/RunCommentGenerationResponseBody/payload/usage.php delete mode 100644 src/Models/RunCommentGenerationShrinkRequest.php rename src/Models/{RunCommentGenerationResponseBody/payload/output.php => RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/images.php} (61%) create mode 100644 src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/news.php diff --git a/ChangeLog.md b/ChangeLog.md index 114901d..9545542 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,8 @@ +2024-12-05 Version: 2.0.0 +- Delete API RunCommentGeneration. +- Update API RunHotTopicChat: update response param. + + 2024-11-26 Version: 1.5.2 - Update API RunCommentGeneration: add param allowEmoji. - Update API RunCommentGeneration: add param extraInfo. diff --git a/src/Models/RunCommentGenerationRequest.php b/src/Models/RunCommentGenerationRequest.php deleted file mode 100644 index 44041c2..0000000 --- a/src/Models/RunCommentGenerationRequest.php +++ /dev/null @@ -1,163 +0,0 @@ - 'allowEmoji', - 'extraInfo' => 'extraInfo', - 'length' => 'length', - 'lengthRange' => 'lengthRange', - 'modelId' => 'modelId', - 'numComments' => 'numComments', - 'sentiment' => 'sentiment', - 'sourceMaterial' => 'sourceMaterial', - 'style' => 'style', - 'type' => 'type', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->allowEmoji) { - $res['allowEmoji'] = $this->allowEmoji; - } - if (null !== $this->extraInfo) { - $res['extraInfo'] = $this->extraInfo; - } - if (null !== $this->length) { - $res['length'] = $this->length; - } - if (null !== $this->lengthRange) { - $res['lengthRange'] = $this->lengthRange; - } - if (null !== $this->modelId) { - $res['modelId'] = $this->modelId; - } - if (null !== $this->numComments) { - $res['numComments'] = $this->numComments; - } - if (null !== $this->sentiment) { - $res['sentiment'] = $this->sentiment; - } - if (null !== $this->sourceMaterial) { - $res['sourceMaterial'] = $this->sourceMaterial; - } - if (null !== $this->style) { - $res['style'] = $this->style; - } - if (null !== $this->type) { - $res['type'] = $this->type; - } - - return $res; - } - - /** - * @param array $map - * - * @return RunCommentGenerationRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['allowEmoji'])) { - $model->allowEmoji = $map['allowEmoji']; - } - if (isset($map['extraInfo'])) { - $model->extraInfo = $map['extraInfo']; - } - if (isset($map['length'])) { - $model->length = $map['length']; - } - if (isset($map['lengthRange'])) { - $model->lengthRange = $map['lengthRange']; - } - if (isset($map['modelId'])) { - $model->modelId = $map['modelId']; - } - if (isset($map['numComments'])) { - $model->numComments = $map['numComments']; - } - if (isset($map['sentiment'])) { - $model->sentiment = $map['sentiment']; - } - if (isset($map['sourceMaterial'])) { - $model->sourceMaterial = $map['sourceMaterial']; - } - if (isset($map['style'])) { - $model->style = $map['style']; - } - if (isset($map['type'])) { - $model->type = $map['type']; - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationResponse.php b/src/Models/RunCommentGenerationResponse.php deleted file mode 100644 index daa4ffc..0000000 --- a/src/Models/RunCommentGenerationResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - 'headers', - 'statusCode' => 'statusCode', - 'body' => 'body', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->headers) { - $res['headers'] = $this->headers; - } - if (null !== $this->statusCode) { - $res['statusCode'] = $this->statusCode; - } - if (null !== $this->body) { - $res['body'] = null !== $this->body ? $this->body->toMap() : null; - } - - return $res; - } - - /** - * @param array $map - * - * @return RunCommentGenerationResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = RunCommentGenerationResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationResponseBody.php b/src/Models/RunCommentGenerationResponseBody.php deleted file mode 100644 index 31a0ebd..0000000 --- a/src/Models/RunCommentGenerationResponseBody.php +++ /dev/null @@ -1,85 +0,0 @@ - 'end', - 'header' => 'header', - 'payload' => 'payload', - 'requestId' => 'requestId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->end) { - $res['end'] = $this->end; - } - if (null !== $this->header) { - $res['header'] = null !== $this->header ? $this->header->toMap() : null; - } - if (null !== $this->payload) { - $res['payload'] = null !== $this->payload ? $this->payload->toMap() : null; - } - if (null !== $this->requestId) { - $res['requestId'] = $this->requestId; - } - - return $res; - } - - /** - * @param array $map - * - * @return RunCommentGenerationResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['end'])) { - $model->end = $map['end']; - } - if (isset($map['header'])) { - $model->header = header::fromMap($map['header']); - } - if (isset($map['payload'])) { - $model->payload = payload::fromMap($map['payload']); - } - if (isset($map['requestId'])) { - $model->requestId = $map['requestId']; - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationResponseBody/header.php b/src/Models/RunCommentGenerationResponseBody/header.php deleted file mode 100644 index abe594b..0000000 --- a/src/Models/RunCommentGenerationResponseBody/header.php +++ /dev/null @@ -1,117 +0,0 @@ - 'event', - 'eventInfo' => 'eventInfo', - 'requestId' => 'requestId', - 'sessionId' => 'sessionId', - 'taskId' => 'taskId', - 'traceId' => 'traceId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->event) { - $res['event'] = $this->event; - } - if (null !== $this->eventInfo) { - $res['eventInfo'] = $this->eventInfo; - } - if (null !== $this->requestId) { - $res['requestId'] = $this->requestId; - } - if (null !== $this->sessionId) { - $res['sessionId'] = $this->sessionId; - } - if (null !== $this->taskId) { - $res['taskId'] = $this->taskId; - } - if (null !== $this->traceId) { - $res['traceId'] = $this->traceId; - } - - return $res; - } - - /** - * @param array $map - * - * @return header - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['event'])) { - $model->event = $map['event']; - } - if (isset($map['eventInfo'])) { - $model->eventInfo = $map['eventInfo']; - } - if (isset($map['requestId'])) { - $model->requestId = $map['requestId']; - } - if (isset($map['sessionId'])) { - $model->sessionId = $map['sessionId']; - } - if (isset($map['taskId'])) { - $model->taskId = $map['taskId']; - } - if (isset($map['traceId'])) { - $model->traceId = $map['traceId']; - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationResponseBody/payload.php b/src/Models/RunCommentGenerationResponseBody/payload.php deleted file mode 100644 index cf82ffa..0000000 --- a/src/Models/RunCommentGenerationResponseBody/payload.php +++ /dev/null @@ -1,61 +0,0 @@ - 'output', - 'usage' => 'usage', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->output) { - $res['output'] = null !== $this->output ? $this->output->toMap() : null; - } - if (null !== $this->usage) { - $res['usage'] = null !== $this->usage ? $this->usage->toMap() : null; - } - - return $res; - } - - /** - * @param array $map - * - * @return payload - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['output'])) { - $model->output = output::fromMap($map['output']); - } - if (isset($map['usage'])) { - $model->usage = usage::fromMap($map['usage']); - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationResponseBody/payload/usage.php b/src/Models/RunCommentGenerationResponseBody/payload/usage.php deleted file mode 100644 index e8749a7..0000000 --- a/src/Models/RunCommentGenerationResponseBody/payload/usage.php +++ /dev/null @@ -1,77 +0,0 @@ - 'inputTokens', - 'outputTokens' => 'outputTokens', - 'totalTokens' => 'totalTokens', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->inputTokens) { - $res['inputTokens'] = $this->inputTokens; - } - if (null !== $this->outputTokens) { - $res['outputTokens'] = $this->outputTokens; - } - if (null !== $this->totalTokens) { - $res['totalTokens'] = $this->totalTokens; - } - - return $res; - } - - /** - * @param array $map - * - * @return usage - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['inputTokens'])) { - $model->inputTokens = $map['inputTokens']; - } - if (isset($map['outputTokens'])) { - $model->outputTokens = $map['outputTokens']; - } - if (isset($map['totalTokens'])) { - $model->totalTokens = $map['totalTokens']; - } - - return $model; - } -} diff --git a/src/Models/RunCommentGenerationShrinkRequest.php b/src/Models/RunCommentGenerationShrinkRequest.php deleted file mode 100644 index de0ee5f..0000000 --- a/src/Models/RunCommentGenerationShrinkRequest.php +++ /dev/null @@ -1,163 +0,0 @@ - 'allowEmoji', - 'extraInfo' => 'extraInfo', - 'length' => 'length', - 'lengthRangeShrink' => 'lengthRange', - 'modelId' => 'modelId', - 'numComments' => 'numComments', - 'sentimentShrink' => 'sentiment', - 'sourceMaterial' => 'sourceMaterial', - 'style' => 'style', - 'typeShrink' => 'type', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->allowEmoji) { - $res['allowEmoji'] = $this->allowEmoji; - } - if (null !== $this->extraInfo) { - $res['extraInfo'] = $this->extraInfo; - } - if (null !== $this->length) { - $res['length'] = $this->length; - } - if (null !== $this->lengthRangeShrink) { - $res['lengthRange'] = $this->lengthRangeShrink; - } - if (null !== $this->modelId) { - $res['modelId'] = $this->modelId; - } - if (null !== $this->numComments) { - $res['numComments'] = $this->numComments; - } - if (null !== $this->sentimentShrink) { - $res['sentiment'] = $this->sentimentShrink; - } - if (null !== $this->sourceMaterial) { - $res['sourceMaterial'] = $this->sourceMaterial; - } - if (null !== $this->style) { - $res['style'] = $this->style; - } - if (null !== $this->typeShrink) { - $res['type'] = $this->typeShrink; - } - - return $res; - } - - /** - * @param array $map - * - * @return RunCommentGenerationShrinkRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['allowEmoji'])) { - $model->allowEmoji = $map['allowEmoji']; - } - if (isset($map['extraInfo'])) { - $model->extraInfo = $map['extraInfo']; - } - if (isset($map['length'])) { - $model->length = $map['length']; - } - if (isset($map['lengthRange'])) { - $model->lengthRangeShrink = $map['lengthRange']; - } - if (isset($map['modelId'])) { - $model->modelId = $map['modelId']; - } - if (isset($map['numComments'])) { - $model->numComments = $map['numComments']; - } - if (isset($map['sentiment'])) { - $model->sentimentShrink = $map['sentiment']; - } - if (isset($map['sourceMaterial'])) { - $model->sourceMaterial = $map['sourceMaterial']; - } - if (isset($map['style'])) { - $model->style = $map['style']; - } - if (isset($map['type'])) { - $model->typeShrink = $map['type']; - } - - return $model; - } -} diff --git a/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries.php b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries.php index ed0f0b7..a0bc97f 100644 --- a/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries.php +++ b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries.php @@ -4,6 +4,8 @@ namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatResponseBody\payload\output; +use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatResponseBody\payload\output\hotTopicSummaries\images; +use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatResponseBody\payload\output\hotTopicSummaries\news; use AlibabaCloud\Tea\Model; class hotTopicSummaries extends Model @@ -15,6 +17,13 @@ class hotTopicSummaries extends Model */ public $customHotValue; + /** + * @example xxx + * + * @var string + */ + public $customTextSummary; + /** * @example xx * @@ -35,11 +44,32 @@ class hotTopicSummaries extends Model * @var float */ public $hotValue; + + /** + * @var images[] + */ + public $images; + + /** + * @var news[] + */ + public $news; + + /** + * @example xxx + * + * @var string + */ + public $textSummary; protected $_name = [ - 'customHotValue' => 'customHotValue', - 'hotTopic' => 'hotTopic', - 'hotTopicVersion' => 'hotTopicVersion', - 'hotValue' => 'hotValue', + 'customHotValue' => 'customHotValue', + 'customTextSummary' => 'customTextSummary', + 'hotTopic' => 'hotTopic', + 'hotTopicVersion' => 'hotTopicVersion', + 'hotValue' => 'hotValue', + 'images' => 'images', + 'news' => 'news', + 'textSummary' => 'textSummary', ]; public function validate() @@ -52,6 +82,9 @@ public function toMap() if (null !== $this->customHotValue) { $res['customHotValue'] = $this->customHotValue; } + if (null !== $this->customTextSummary) { + $res['customTextSummary'] = $this->customTextSummary; + } if (null !== $this->hotTopic) { $res['hotTopic'] = $this->hotTopic; } @@ -61,6 +94,27 @@ public function toMap() if (null !== $this->hotValue) { $res['hotValue'] = $this->hotValue; } + if (null !== $this->images) { + $res['images'] = []; + if (null !== $this->images && \is_array($this->images)) { + $n = 0; + foreach ($this->images as $item) { + $res['images'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->news) { + $res['news'] = []; + if (null !== $this->news && \is_array($this->news)) { + $n = 0; + foreach ($this->news as $item) { + $res['news'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->textSummary) { + $res['textSummary'] = $this->textSummary; + } return $res; } @@ -76,6 +130,9 @@ public static function fromMap($map = []) if (isset($map['customHotValue'])) { $model->customHotValue = $map['customHotValue']; } + if (isset($map['customTextSummary'])) { + $model->customTextSummary = $map['customTextSummary']; + } if (isset($map['hotTopic'])) { $model->hotTopic = $map['hotTopic']; } @@ -85,6 +142,27 @@ public static function fromMap($map = []) if (isset($map['hotValue'])) { $model->hotValue = $map['hotValue']; } + if (isset($map['images'])) { + if (!empty($map['images'])) { + $model->images = []; + $n = 0; + foreach ($map['images'] as $item) { + $model->images[$n++] = null !== $item ? images::fromMap($item) : $item; + } + } + } + if (isset($map['news'])) { + if (!empty($map['news'])) { + $model->news = []; + $n = 0; + foreach ($map['news'] as $item) { + $model->news[$n++] = null !== $item ? news::fromMap($item) : $item; + } + } + } + if (isset($map['textSummary'])) { + $model->textSummary = $map['textSummary']; + } return $model; } diff --git a/src/Models/RunCommentGenerationResponseBody/payload/output.php b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/images.php similarity index 61% rename from src/Models/RunCommentGenerationResponseBody/payload/output.php rename to src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/images.php index 4c3cafa..7ac7694 100644 --- a/src/Models/RunCommentGenerationResponseBody/payload/output.php +++ b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/images.php @@ -2,18 +2,20 @@ // This file is auto-generated, don't edit it. Thanks. -namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunCommentGenerationResponseBody\payload; +namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatResponseBody\payload\output\hotTopicSummaries; use AlibabaCloud\Tea\Model; -class output extends Model +class images extends Model { /** + * @example http://xxx + * * @var string */ - public $text; + public $url; protected $_name = [ - 'text' => 'text', + 'url' => 'url', ]; public function validate() @@ -23,8 +25,8 @@ public function validate() public function toMap() { $res = []; - if (null !== $this->text) { - $res['text'] = $this->text; + if (null !== $this->url) { + $res['url'] = $this->url; } return $res; @@ -33,13 +35,13 @@ public function toMap() /** * @param array $map * - * @return output + * @return images */ public static function fromMap($map = []) { $model = new self(); - if (isset($map['text'])) { - $model->text = $map['text']; + if (isset($map['url'])) { + $model->url = $map['url']; } return $model; diff --git a/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/news.php b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/news.php new file mode 100644 index 0000000..6c318e8 --- /dev/null +++ b/src/Models/RunHotTopicChatResponseBody/payload/output/hotTopicSummaries/news.php @@ -0,0 +1,63 @@ + 'title', + 'url' => 'url', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->title) { + $res['title'] = $this->title; + } + if (null !== $this->url) { + $res['url'] = $this->url; + } + + return $res; + } + + /** + * @param array $map + * + * @return news + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['title'])) { + $model->title = $map['title']; + } + if (isset($map['url'])) { + $model->url = $map['url']; + } + + return $model; + } +} diff --git a/src/QuanMiaoLightApp.php b/src/QuanMiaoLightApp.php index 372533a..238ce12 100644 --- a/src/QuanMiaoLightApp.php +++ b/src/QuanMiaoLightApp.php @@ -10,9 +10,6 @@ use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponse; use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\ListHotTopicSummariesRequest; use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\ListHotTopicSummariesResponse; -use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunCommentGenerationRequest; -use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunCommentGenerationResponse; -use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunCommentGenerationShrinkRequest; use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatRequest; use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatResponse; use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunHotTopicChatShrinkRequest; @@ -189,96 +186,6 @@ public function listHotTopicSummaries($workspaceId, $request) return $this->listHotTopicSummariesWithOptions($workspaceId, $request, $headers, $runtime); } - /** - * @summary 评论生成服务 - * * - * @param string $workspaceId - * @param RunCommentGenerationRequest $tmpReq RunCommentGenerationRequest - * @param string[] $headers map - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return RunCommentGenerationResponse RunCommentGenerationResponse - */ - public function runCommentGenerationWithOptions($workspaceId, $tmpReq, $headers, $runtime) - { - Utils::validateModel($tmpReq); - $request = new RunCommentGenerationShrinkRequest([]); - OpenApiUtilClient::convert($tmpReq, $request); - if (!Utils::isUnset($tmpReq->lengthRange)) { - $request->lengthRangeShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->lengthRange, 'lengthRange', 'json'); - } - if (!Utils::isUnset($tmpReq->sentiment)) { - $request->sentimentShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->sentiment, 'sentiment', 'json'); - } - if (!Utils::isUnset($tmpReq->type)) { - $request->typeShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->type, 'type', 'json'); - } - $body = []; - if (!Utils::isUnset($request->allowEmoji)) { - $body['allowEmoji'] = $request->allowEmoji; - } - if (!Utils::isUnset($request->extraInfo)) { - $body['extraInfo'] = $request->extraInfo; - } - if (!Utils::isUnset($request->length)) { - $body['length'] = $request->length; - } - if (!Utils::isUnset($request->lengthRangeShrink)) { - $body['lengthRange'] = $request->lengthRangeShrink; - } - if (!Utils::isUnset($request->modelId)) { - $body['modelId'] = $request->modelId; - } - if (!Utils::isUnset($request->numComments)) { - $body['numComments'] = $request->numComments; - } - if (!Utils::isUnset($request->sentimentShrink)) { - $body['sentiment'] = $request->sentimentShrink; - } - if (!Utils::isUnset($request->sourceMaterial)) { - $body['sourceMaterial'] = $request->sourceMaterial; - } - if (!Utils::isUnset($request->style)) { - $body['style'] = $request->style; - } - if (!Utils::isUnset($request->typeShrink)) { - $body['type'] = $request->typeShrink; - } - $req = new OpenApiRequest([ - 'headers' => $headers, - 'body' => OpenApiUtilClient::parseToMap($body), - ]); - $params = new Params([ - 'action' => 'RunCommentGeneration', - 'version' => '2024-08-01', - 'protocol' => 'HTTPS', - 'pathname' => '/' . OpenApiUtilClient::getEncodeParam($workspaceId) . '/quanmiao/lightapp/runCommentGeneration', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return RunCommentGenerationResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 评论生成服务 - * * - * @param string $workspaceId - * @param RunCommentGenerationRequest $request RunCommentGenerationRequest - * - * @return RunCommentGenerationResponse RunCommentGenerationResponse - */ - public function runCommentGeneration($workspaceId, $request) - { - $runtime = new RuntimeOptions([]); - $headers = []; - - return $this->runCommentGenerationWithOptions($workspaceId, $request, $headers, $runtime); - } - /** * @summary 轻应用-热点播报-问答 * *