1. 聊天(Chat)
apiplus AI聚合平台
  • Open AI
    • 介绍
    • 身份验证
    • 发出请求
    • 音频(Audio)
      • 创建语音
      • 创建转录
      • 创建翻译
    • 聊天(Chat)
      • gpts 请求
      • 聊天完成块对象
    • GPTs 相关
      • GPTs对话
    • 向量化(embeddings)
      • embeddings
    • token额度查询接口
      GET
  • 文件服务
    • 文件上传(file)
      POST
  • 绘画服务
    • MidJourney
      • MidJourney使用介绍
      • turbo 提交任务
      • 提交任务
      • 查询任务
      • Modal
      • 执行动作
      • 描述
      • Blend
      • 上传图片到Discord
    • Open-AI
      • DALL·E 3
      • gpt-4-all(生成图片)
    • Flux
      • Generate
      • Get Result
  • 视频服务
    • runway
      • chat 格式
        • 生成视频
      • 官方格式
        • 任务查询
        • 提交任务
    • luma
      • 创建视频任务
      • 查询任务
    • Sora
      • Chat 格式生成视频接口
  • Claude AI
    • Claude 会话
      POST
    • Claude 识图
      POST
  • Google AI
    • Google AI 会话
      POST
  • 音频-suno
    • 生成歌曲
      POST
    • 生成歌词
      POST
    • 上传音乐
      POST
    • 歌曲拼接
      POST
    • 任务查询
      GET
  • 数据模型
    • 示例数据模型
      • Pet
      • Category
      • Tag
  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-10-28 13:44:16
上一页
gpts 请求
下一页
GPTs对话
Built with