跳到主要内容

GPTs

GPTs 对话

  • 请求方式:POST /chat/completions
  • gpts 已支持自动识别
  • 模型名格式:gpt-4-gizmo-*
  • 例如 DALL·E 的 id 为 g-2fkFE8rbu,则模型名写作 gpt-4-gizmo-g-2fkFE8rbu

请求示例

curl --location 'https://api.aizn.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4-gizmo-g-2fkFE8rbu",
"messages": [
{
"role": "user",
"content": "你是谁"
}
],
"stream": false
}'

目录补充