RunHotTopicSummary - Generate custom summaries of broadcast list topics
Alibaba Cloud Model Studio lightweight applications - Interactive news trending lists for in-vehicle systems and content platforms: generates custom-style hot topic summaries from a broadcast list in streaming mode.
Usage notes
Generates hot topic summaries in a custom style from a broadcast list in streaming mode.
Try it in the console.
For SDK calls, see the examples under "API" in the console.
Try it out
You can call this operation in OpenAPI Explorer without calculating a signature. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information for this API operation. You can use this information in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call the operation. The columns are described as follows:
-
Action: a specific permission.
-
Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources for which the action supports authorization:
- Required resource types are marked with an asterisk (*).
- Actions that do not support resource-level authorization use
All resources.
-
Condition key: a condition key defined by the cloud service.
-
Dependent action: an additional permission required to perform the action. The caller must also have permission to perform the dependent action.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:RunHotTopicSummary | none | *All resources * |
| None |
Request syntax
POST /{workspaceId}/quanmiao/lightapp/runHotTopicSummary HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter: The workspace ID | llm-xxx |
| hotTopicVersion | string | Yes | The hot topic broadcast list version. | 2024-10-16_8 |
| topicIds | array | Yes | The IDs of hot topics to summarize. | |
| string | Yes | The hot topic ID. | xxxx | |
| stepForCustomSummaryStyleConfig | object | Yes | The custom output style configuration. | |
| summaryImageCount | integer | No | The number of summary images. | 2 |
| summaryModel | string | No | The summarization model. | qwen-max |
| summaryPrompt | string | No | The custom summarization prompt. | xxxx |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | The response. | ||
| header | object | The message header. | |
| errorCode | string | The error code. | AccessForbidden |
| errorMessage | string | The error description. | The error message. |
| event | string | The event. | task-finished |
| sessionId | string | The unique session ID. | xxxx |
| taskId | string | The unique task ID. | xxxx |
| traceId | string | The unique end-to-end trace ID. | xxxxx |
| payload | object | The message body. | |
| output | object | The output results. | |
| text | string | The output summary text. | This is test output. |
| topicId | string | The hot topic ID. | xxx |
| usage | object | The token usage. | |
| inputTokens | long | Input tokens. | 100 |
| outputTokens | long | Output tokens. | 100 |
| totalTokens | long | Total tokens. | 200 |
| requestId | string | Id of the request | 5D0E915E-655D-59A8-894F-93873F73AAE5 |
Examples
Sample success response
JSON format
{
"header": {
"errorCode": "AccessForbidden",
"errorMessage": "错误信息",
"event": "task-finished",
"sessionId": "xxxx",
"taskId": "xxxx",
"traceId": "xxxxx"
},
"payload": {
"output": {
"text": "这是测试输出",
"topicId": "xxx"
},
"usage": {
"inputTokens": 100,
"outputTokens": 100,
"totalTokens": 200
}
},
"requestId": "5D0E915E-655D-59A8-894F-93873F73AAE5"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action , Please check the assignment of the workspaceId. | Check the value of workspaceId. |
For more error codes, see Error Center.
Change history
| Change date | Change summary | Action |
|---|
No change history is available.