RunHotTopicSummary - Generate custom summaries of broadcast list topics

Updated at:

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.

Try it out

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.

ActionAccess levelResource typeCondition keyDependent action
quanmiaolightapp:RunHotTopicSummarynone
*All resources
*
    None
None

Request syntax

POST /{workspaceId}/quanmiao/lightapp/runHotTopicSummary HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample
workspaceIdstringYes

Path parameter: The workspace ID

llm-xxx
hotTopicVersionstringYes

The hot topic broadcast list version.

2024-10-16_8
topicIdsarrayYes

The IDs of hot topics to summarize.

stringYes

The hot topic ID.

xxxx
stepForCustomSummaryStyleConfigobjectYes

The custom output style configuration.

summaryImageCountintegerNo

The number of summary images.

2
summaryModelstringNo

The summarization model.

qwen-max
summaryPromptstringNo

The custom summarization prompt.

xxxx

Response parameters

NameTypeDescriptionExample
object

The response.

headerobject

The message header.

errorCodestring

The error code.

AccessForbidden
errorMessagestring

The error description.

The error message.
eventstring

The event.

task-finished
sessionIdstring

The unique session ID.

xxxx
taskIdstring

The unique task ID.

xxxx
traceIdstring

The unique end-to-end trace ID.

xxxxx
payloadobject

The message body.

outputobject

The output results.

textstring

The output summary text.

This is test output.
topicIdstring

The hot topic ID.

xxx
usageobject

The token usage.

inputTokenslong

Input tokens.

100
outputTokenslong

Output tokens.

100
totalTokenslong

Total tokens.

200
requestIdstring

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 codeError codeError messageDescription
403NoPermissionYou 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 dateChange summaryAction

No change history is available.