GPTs Chat
modelsName格式for: gpt-4-gizmo-*, 系统会自动进行识别 比如this GPTs: https://chatgpt.com/g/g-B3hgivKK9-write-for-me 那么它 models名应该填写for: gpt-4-gizmo-g-B3hgivKK9 GPTs列表: https://chatgpt.com/gpts
Endpoint
POST http://v98store.com/v1/chat/completions cURL Command
curl -X POST 'http://v98store.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model": "gpt-4-gizmo-g-2fkFE8rbu", "messages": [ { "role": "user", "content": "你Yes谁" } ], "stream": false }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| Content-Type | header | Yes | |
| Accept | header | Yes | |
| Authorization | header | No |
Request Body
Example
{
"model": "gpt-4-gizmo-g-2fkFE8rbu",
"messages": [
{
"role": "user",
"content": "你Yes谁"
}
],
"stream": false
} Responses
200 -
Example
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}