Skip to main content

RunCustomHotTopicViewPointAnalysis

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.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:RunCustomHotTopicViewPointAnalysiscreate
*All resources
*
    None
None

Request syntax

POST /quanmiao/miaoce/runCustomHotTopicViewPointAnalysis HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

Unique identifier for the Alibaba Cloud Model Studio workspace. Obtain the Workspace ID

xxxx
AskUserstringNo

Model follow-up question

Model follow-up question
UserBackstringNo

User feedback

User feedback
SearchQuerystringNo

Rewritten query

Rewritten query
PromptstringYes

Prompt for custom hot topic viewpoint analysis

Prompt for custom hot topic viewpoint analysis
SkipAskUserbooleanNo

Whether to skip the follow-up question

true
TopicIdstringNo

Hot topic ID

Hot topic ID
TopicstringNo

Hot topic

Hot topic
TopicVersionstringNo

Hot topic version

Hot topic version
TopicSourcestringNo

Hot topic source

Hot topic source

Response elements

ElementTypeDescriptionExample
object

CustomHoTTopicBaseLlmResponse

Headerobject

Response header

ErrorCodestring

Error code

Error code
ErrorMessagestring

Error message

Error message
Eventstring

SSE event. task-started: started, task-finished: finished, task-failed: failed

task-started
OriginSessionIdstring

Parent session ID

3f7045e099474ba28ceca1b4eb6d6e21
SessionIdstring

Session ID

3f7045e099474ba28ceca1b4eb6d6e21
TaskIdstring

Task ID

3f7045e099474ba28ceca1b4eb6d6e21
TraceIdstring

End-to-end trace ID

End-to-end trace ID
Payloadobject

Response body

Outputobject

Output

AskUserarray

Follow-up question list

AskUserstring

Model follow-up question

xxxxxxx
AsyncTaskIdstring

Asynchronous task ID

Asynchronous task ID
Attitudestring

Viewpoint of the custom hot topic generated by the model

Viewpoint of the custom hot topic generated by the model
CustomViewPointIdstring

Custom viewpoint ID

xxxxxx
Textstring

Text generation result

Text generation result
TopicIdstring

Topic ID

Topic ID
Articlesarray<object>

Reference article list

Articlesobject

Reference article object

Authorstring

Author

Author
Titlestring

Title

Article title
Contentstring

Content

Article content
PubTimestring

Publish time

2024-09-10 14:17:53
Sourcestring

Source

CCTV
Urlstring

URL title

https://www.example.com/aaa.docx
Summarystring

Summary

Article summary
Usageobject

Whether the image is running on an ECS instance. Valid values:

  • instance: The image is running and used by an ECS instance.
  • none: The image is idle and not currently used by any ECS instance.
InputTokenslong

Number of input tokens

51
OutputTokenslong

Number of output tokens

79
TotalTokenslong

Total number of tokens

130
RequestIdstring

Request ID

3f7045e099474ba28ceca1b4eb6d6e21

Examples

Success response JSON format
{
  "Header": {
    "ErrorCode": "错误码",
    "ErrorMessage": "错误信息",
    "Event": "task-started",
    "OriginSessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "SessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "TraceId": "全链路ID"
  },
  "Payload": {
    "Output": {
      "AskUser": [
        "xxxxxxx"
      ],
      "AsyncTaskId": "异步任务ID",
      "Attitude": "模型生成的自定义选题视角的观点",
      "CustomViewPointId": "xxxxxx",
      "Text": "文本生成结果",
      "TopicId": "话题ID",
      "Articles": [
        {
          "Author": "作者\n\n",
          "Title": "文章标题",
          "Content": "文章内容",
          "PubTime": "2024-09-10 14:17:53",
          "Source": "央视网",
          "Url": "https://www.example.com/aaa.docx",
          "Summary": "文章摘要"
        }
      ]
    },
    "Usage": {
      "InputTokens": 51,
      "OutputTokens": 79,
      "TotalTokens": 130
    }
  },
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment
Visit the Error Center to view more error codes.