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
}'