chat
NOT_USED

【目前还未完成】返回与指定 Agent 聊天的下一条消息

可以处理包括图片在内的各种消息类型,媒体类型应该先上传,然后将 URL 作为索引发送到此 API

post/api/v2/chat/completions/{agent_id}

Path parameters

agent_idstring required

Request body

streamboolean
modelstring
languagestring
request_idstring nullable
message_idstring nullable

Response

Successful Response

codeinteger
messagestring
{"stackTrail":"components:schemas:APIResponse:properties:data:anyOf","oasType":"schema","type":"unknown","title":"Data","nullable":true}

Changes

Changed in 6 of the 26 revisions of this API.26

    • added the new optional request property

      new-optional-request-property

    • api tag NOT_USED added

      api-tag-added

    • added subschema #1 to the response property anyOf list for the response status

      response-property-any-of-added

    • removed from the response property anyOf list for the response status

      response-property-any-of-removed

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint deprecated

      endpoint-deprecated

    • response property data/anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/id list-of-types was widened by adding types integer to media type application/json of response 200

      response-property-list-of-types-widened

    • the ////// response's property type changed from string to integer for status

      response-property-type-changed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog