Perspective analysis of custom topics.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the run succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Action: refers to the specific permission point.
- Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: refers to the resource types that support authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization,
全部资源is used.
- Condition key: refers to the condition keys defined by the cloud service itself.
- Dependent action: refers to the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:RunCustomHotTopicViewPointAnalysis | create | *All resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Unique identifier for the Alibaba Cloud Model Studio workspace. Obtain the Workspace ID | xxxx |
| AskUser | string | No | Model follow-up question | Model follow-up question |
| UserBack | string | No | User feedback | User feedback |
| SearchQuery | string | No | Rewritten query | Rewritten query |
| Prompt | string | Yes | Prompt for custom hot topic viewpoint analysis | Prompt for custom hot topic viewpoint analysis |
| SkipAskUser | boolean | No | Whether to skip the follow-up question | true |
| TopicId | string | No | Hot topic ID | Hot topic ID |
| Topic | string | No | Hot topic | Hot topic |
| TopicVersion | string | No | Hot topic version | Hot topic version |
| TopicSource | string | No | Hot topic source | Hot topic source |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | CustomHoTTopicBaseLlmResponse | ||
| Header | object | Response header | |
| ErrorCode | string | Error code | Error code |
| ErrorMessage | string | Error message | Error message |
| Event | string | SSE event. task-started: started, task-finished: finished, task-failed: failed | task-started |
| OriginSessionId | string | Parent session ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
| SessionId | string | Session ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TaskId | string | Task ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TraceId | string | End-to-end trace ID | End-to-end trace ID |
| Payload | object | Response body | |
| Output | object | Output | |
| AskUser | array | Follow-up question list | |
| AskUser | string | Model follow-up question | xxxxxxx |
| AsyncTaskId | string | Asynchronous task ID | Asynchronous task ID |
| Attitude | string | Viewpoint of the custom hot topic generated by the model | Viewpoint of the custom hot topic generated by the model |
| CustomViewPointId | string | Custom viewpoint ID | xxxxxx |
| Text | string | Text generation result | Text generation result |
| TopicId | string | Topic ID | Topic ID |
| Articles | array<object> | Reference article list | |
| Articles | object | Reference article object | |
| Author | string | Author | Author |
| Title | string | Title | Article title |
| Content | string | Content | Article content |
| PubTime | string | Publish time | 2024-09-10 14:17:53 |
| Source | string | Source | CCTV |
| Url | string | URL title | https://www.example.com/aaa.docx |
| Summary | string | Summary | Article summary |
| Usage | object | Whether the image is running on an ECS instance. Valid values:
| |
| InputTokens | long | Number of input tokens | 51 |
| OutputTokens | long | Number of output tokens | 79 |
| TotalTokens | long | Total number of tokens | 130 |
| RequestId | string | Request ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
Examples
Success response
JSON format
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 |