Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
使用的AI模型名称
Available options:
deepseek-chat, deepseek-r1 Example:
"deepseek-chat"
对话消息列表
分组标识
Example:
"default"
是否启用流式响应
控制输出随机性的温度参数
Required range:
0 <= x <= 2核采样参数
Required range:
0 <= x <= 1频率惩罚参数
Required range:
-2 <= x <= 2存在惩罚参数
Required range:
-2 <= x <= 2Response
Successful response
流式响应数据,每行为一个JSON对象,格式为Server-Sent Events
Example:
"data: {\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1677652288,\"model\":\"dall-e-3\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hello\"},\"finish_reason\":null}]}\n\ndata: [DONE]\n\n"
