gpt4,4o都正常,就gpt5系列没有返回任何东西,nano,mini都无法使用,但是curl测试可以正常返回啊
curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-proj-xxx" -d '{ "model": "gpt-5", "messages": [ { "role": "system", "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair." }, { "role": "user", "content": "Compose a poem that explains the concept of recursion in programming." } ] }'
返回结果
"id": "chatcmpl-C97kSQ0VVYL3xKYFgz", "object": "chat.completion", "created": 1756290712, "model": "gpt-5-2025-08-07", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Recursion.......", "refusal": null, "annotations": [] }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 38, "completion_tokens": 1134, "total_tokens": 1172, "prompt_tokens_details": { "cached_tokens": 0, "audio_tokens": 0 }, "completion_tokens_details": { "reasoning_tokens": 704, "audio_tokens": 0, "accepted_prediction_tokens": 0, "rejected_prediction_tokens": 0 } }, "service_tier": "default", "system_fingerprint": null}