中转API 接口对接
  1. ChatGPT聊天(Chat)
中转API 接口对接
  • 项目说明
  • 发出请求
  • 中转站基本介绍
    • 分组的特殊性及价格差异
    • 分组详细表格
    • 如何新建指定分组的令牌
  • ChatGpt 接口
    • ChatGPT音频(Audio)
      • 创建语音
      • 创建转录
      • 创建翻译
    • ChatGPT聊天(Chat)
      • 聊天完成对象
      • 聊天完成块对象
      • 创建聊天函数调用 (只能非流)
        POST
      • 创建聊天补全 (流式)
        POST
      • 创建聊天补全 (非流)
        POST
      • 创建聊天识图 (流式)
        POST
      • 创建聊天识图 (非流)
        POST
      • 创建结构化输出
        POST
      • 官方Function calling调用
        POST
      • 官方N测试
        POST
      • 列出模型
        GET
    • ChatGPT自动补全(Completions)
      • 完成对象
      • 创建完成
    • ChatGPT嵌入(Embeddings)
      • 嵌入对象
      • 创建嵌入
  • Anthropic Claude 接口
    • 聊天完成对象
    • 聊天完成块对象
    • 创建聊天补全 (流式)
      POST
    • 创建聊天补全 (非流)
      POST
    • 创建聊天识图 (流式)
      POST
    • 创建聊天识图 (非流)
      POST
  • 文生图接口
    • README
    • 图像对象
    • Flux(OpenAI dall-e-3格式)
    • DALL·E 3
    • Stable-Diffusion
    • 创建图片编辑
    • 创建图像变体
    • ideogram
    • recraftv3
  • MJ绘画
    • 提交Imagine任务
    • 提交Blend任务
    • 执行Action动作
    • 提交Describe任务
    • 提交Shorten任务
    • 提交Modal
    • 提交swap_face任务
    • 根据任务ID 查询任务状态
    • 根据ID列表查询任务
    • 获取任务图片的seed
  • 谷歌Gemini
    • 聊天接口
    • 识图接口
  • GPTs 相关
    • gpt-4-all(分析图片)
    • gpt-4-all(生成图片)
    • GPTs对话
  • 文生音乐 Suno
    • 文生音乐(Chat格式)
  • Python配置方式
    • Python基础对话
    • Python使用gpt-4o识别图片
    • Python使用Claude识别图片
  • 帮助中心
    • HTTP状态码及其含义
  1. ChatGPT聊天(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"}]}
上一页
聊天完成对象
下一页
创建聊天函数调用 (只能非流)
Built with