创建聊天
POST
https://api.baicaigpt.com/v1/chat/completions
接口描述:为给定的聊天对话创建模型响应。创建聊天完成" 意味着可能是指在聊天对话中生成或补全一部分内容,使得对话更加连贯或完整。
官方文档:接口格式和官方API一致,未尽事宜,可参见官方文档https://platform.openai.com/docs/api-reference/chat/create
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer baicai-xxxxxxxx
Content-Type
string
必需
示例值:
application/json
Body 参数application/json