[控场AI]
概念include_usage

stream_options

OpenAI Chat Completions 接口中控制流式行为的可选参数,设置 include_usage 后可在流末尾获取用量 chunk

时间轴 (近 90 天)

10月17日

OpenAI Chat Completions 流式响应默认不包含用量信息,必须显式设置 stream_options: { include_usage: true } 才会在流结束前额外发送一个携带 usage 字段的 chunk,且该 chunk 的 choices 数组为空。

待验证50%

全部知识事实 (1)

来源文章