API Doc
  1. 聊天(Chat)
API Doc
  • 介绍
  • 项目说明
  • 导言
  • 身份验证
  • 发出请求
  • 聊天(Chat)
    • 聊天完成对象
    • 聊天完成块对象
    • 创建聊天补全
      POST
    • gpt-4-vision-preview & gemini-pro-vision
      POST
    • gpts
      POST
    • gemini-pro
      POST
    • gpt-4-all(分析图片)
      POST
    • gpt-4-all(生成图片)
      POST
  • 音频(Audio)
    • 创建语音
      POST
    • 创建转录
      POST
    • 创建翻译
      POST
  • 自动补全(Completions)
    • 完成对象
    • 创建完成
      POST
  • 嵌入(Embeddings)
    • 嵌入对象
    • 创建嵌入
      POST
  • 图像(Images)
    • README
    • 图像对象
    • 创建图像
      POST
    • DALL·E 3
      POST
    • Stable-Diffusion
      POST
  • 文件(Files)
    • README
    • 文件对象
    • 上传文件
  • mid journey
    • 补充 其他参数以及回调
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 绘图变化(UPSCALE; VARIATION; REROLL)
      • 执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
      • 绘图变化-simple(UPSCALE; VARIATION; REROLL)
      • 提交Blend任务(图生图)
      • 提交Describe任务(图生文)
      • 提交Imagine任务(文生图、文图生图)
      • 提交Modal(提交局部重绘、ZOOM)
      • 提交Shorten任务(prompt分析)
    • 任务查询
      • 根据ID列表查询任务
      • 指定ID获取任务
      • 获取任务图片的seed
  • 帮助中心
    • 常见问题及解决办法
  • GPTs
    • 简介
    • 通过关键词搜索 GPTs
    • 通过ID搜索 GPTs
    • 请求指定 gpts
  1. 聊天(Chat)

聊天完成块对象

参数类型描述
idstring聊天完成的唯一标识符。每个块具有相同的ID
choicesarray聊天完成选项列表。如果n大于1,可以有多个选项
createdinteger创建聊天完成的Unix时间戳(秒)。每个块具有相同的时间戳
modelstring生成完成的模型
system_fingerprintstring该指纹表示模型运行的后端配置
objectstring对象类型,总是 chat.completion.chunk
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}

....

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":" today"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
修改于 2024-05-09 06:11:31
上一页
聊天完成对象
下一页
创建聊天补全
Built with