chat
evaluation

基于聊天消息及历史消息和其他相关信息(角色背景、用户 profile 等)生成图片

根据Agent角色、聊天历史和用户消息生成图片,并保存到聊天历史中。注意:路径参数 agent_id 仅作为目前的名称,实际应为 chat_id。未来如需扩展可直接重命名。agent id 则代表与该 agent 的当前会话的 id

post/api/v1/chat/images/{agent_id}

Path parameters

agent_idstring required

Request body

message_idinteger required
history_countinteger nullable
request_idstring nullable
modelstring nullable

Response

Successful Response

codeinteger
messagestring

Changes

Changed in 3 of the 26 revisions of this API.8

    • added the new optional request property model

      new-optional-request-property

    • added the optional property data/anyOf[subschema #1: ChatImageGenerationResponse]/generation_time_ms to the response with the 200 status

      response-optional-property-added

    • added the optional property data/anyOf[subschema #1: ChatImageGenerationResponse]/model to the response with the 200 status

      response-optional-property-added

    • api tag evaluation added

      api-tag-added

    • api tag android-app removed

      api-tag-removed

    • api tag inty-eval removed

      api-tag-removed

    • added BizError to the data response property anyOf list for the response status 200

      response-property-any-of-added

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

    • endpoint added

      endpoint-added