RunCustomHotTopicAnalysis
Analyzes custom hot topics.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see the following:
-
Action: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. For more information, see the following:
- Required resource types are marked with a leading *.
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions at the same time for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:RunCustomHotTopicAnalysis | create | *All resources * |
| None |
Request syntax
POST /quanmiao/miaoce/runCustomHotTopicAnalysis HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The unique ID of the Alibaba Cloud Model Studio workspace. For more information, see Workspace ID. | xxxx |
| AskUser | string | No | The follow-up question from the model. | Model follow-up question |
| UserBack | string | No | The user's input in response to the model's follow-up question. | User input in response to model's follow-up question |
| Prompt | string | Yes | The user's input prompt. | User input prompt |
| ForceAnalysisExistsTopic | boolean | No | Specifies whether to forcibly analyze a duplicate topic and overwrite the existing analysis. | false |
| SessionId | string | No | The unique ID for each request. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TaskId | string | No | The unique ID for the entire conversation task. Note TaskId is not required by default. The system automatically generates it. If subsequent tasks use the same TaskId, the tasks belong to the same conversation group. | 3f7045e099474ba28ceca1b4eb6d6e21 |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | CustomHoTTopicBaseLlmResponse | ||
| Header | object | The response header. | |
| ErrorCode | string | The error code. | Error code |
| ErrorMessage | string | The error message. | Error message |
| Event | string | The Server-Sent Events (SSE) event. Valid values: task-started: The task starts. task-finished: The task is complete. task-failed: The task failed. | task-started |
| OriginSessionId | string | The parent session ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| SessionId | string | The session ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TaskId | string | The task ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TraceId | string | The trace ID. | Trace ID |
| Payload | object | The response body. | |
| Output | object | The output. | |
| Articles | array<object> | The reference articles. | |
| Article | object | The article object. | |
| Author | string | The author. | Author |
| Content | string | The content. | Article content |
| DocId | string | The custom unique ID of the document. | doc-custom-unique-id |
| DocUuid | string | The internal unique ID of the document. | a2103fcfbd5441f1991c72f8834833e3 |
| PubTime | string | The publication time. | 2024-08-27 14:50:47 |
| Source | string | The source. | CCTV |
| Summary | string | The article summary. | Article summary |
| Tag | string | The tag. | Article tag |
| Title | string | The title. | Article title |
| Url | string | The URL of the article. | https://www.example.com/aaa.docx |
| AskUser | array | The list of follow-up questions. | |
| AskUser | string | The follow-up question from the model. | xxx |
| AsyncTaskId | string | The ID of the asynchronous task. | Asynchronous task ID |
| Attitude | string | The custom perspective for topic selection. | Custom topic selection perspective |
| SearchQuery | string | The rewritten query. | Large models are changing the world |
| Text | string | The text generation result. | Text generation result |
| TopicId | string | The topic ID. | Topic ID |
| Usage | object | The token usage. | |
| InputTokens | long | The number of tokens used for the input. | 60 |
| OutputTokens | long | The number of tokens for the output. | 13 |
| TotalTokens | long | The total number of tokens. | 73 |
| RequestId | string | The request ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
Examples
Success response
JSON format
{
"Header": {
"ErrorCode": "错误码",
"ErrorMessage": "错误信息",
"Event": "task-started",
"OriginSessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
"SessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
"TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
"TraceId": "全链路ID"
},
"Payload": {
"Output": {
"Articles": [
{
"Author": "作者",
"Content": "文章内容",
"DocId": "文档-自定义的唯一ID",
"DocUuid": "a2103fcfbd5441f1991c72f8834833e3",
"PubTime": "2024-08-27 14:50:47",
"Source": "央视网",
"Summary": "文章摘要",
"Tag": "文章标签",
"Title": "文章标题",
"Url": "https://www.example.com/aaa.docx"
}
],
"AskUser": [
"xxx"
],
"AsyncTaskId": "异步任务ID",
"Attitude": "自定义选题视角",
"SearchQuery": "大模型改变世界",
"Text": "文本生成结果",
"TopicId": "话题ID"
},
"Usage": {
"InputTokens": 60,
"OutputTokens": 13,
"TotalTokens": 73
}
},
"RequestId": "3f7045e099474ba28ceca1b4eb6d6e21"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
Visit the Error Center to view more error codes.