基礎 URL、請求方法與必要請求頭,皆依當前模型的協議模板渲染。
POSThttps://api.gate.ai/openai/v1/chat/completions
欄位
值
Authorization
驗證請求頭,使用 Bearer {API_KEY} 格式傳遞 API Key
Content-Type
請求內容型別,固定為 application/json
model
模型 ID,当前模型为 glm-4.6
messages
按顺序排列的对话消息数组
stream
是否以 SSE 流式返回结果
