Authorization: Bearer ********************
{ "model": "gpt-4o", "messages": [ { "role": "user", "content": "你好" } ], "stream": true }
curl --location --request POST '/api/gpt/v1/chat/completions' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "gpt-4o", "messages": [ { "role": "user", "content": "你好" } ], "stream": true }'
{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 0, "model": "string", "choices": [ { "index": 0, "message": { "role": "string", "content": "string" }, "finish_reason": "string" } ], "usage": { "prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0 } }