<ParamField> and <ResponseField> are untouched is crucial, and the same goes for the code blocks. I’m also double-checking that all technical terms and API/model names remain in English. Finally, I’ll confirm that the markdown formatting remains intact throughout the translated content.
title: “创建 Response” openapi: “POST /v1/responses” description: “使用 OpenAI Responses API 格式创建响应”
Responses API 是 OpenAI 较新的有状态对话 API。LemonData 为兼容模型支持此格式。请求体
包含对话的输入项列表。每个项目可以是:
message:包含角色和内容的对话消息function_call:函数调用请求function_call_output:函数调用的输出
模型的系统指令(等同于系统消息)。
生成的最大 token 数量。
介于 0 到 2 之间的采样温度。
模型可能调用的工具列表。
如果为 true,则返回事件流。
用于继续对话的上一个响应的 ID。
是否存储响应以便稍后检索。
附加到响应的元数据,用于跟踪目的。
文本生成配置选项。
是否允许并行调用多个工具。
核采样参数 (0-1)。
o1/o3 模型的推理配置。
effort(string): 推理努力程度 (low,medium,high)
响应
响应的唯一标识符。
始终为
response。响应创建时的 Unix 时间戳。
模型生成的输出项列表。
Token 使用统计数据。