iakashvekariya
10/31/2025, 11:21 AM---REQUEST OPTIONS---
model: "gpt-5-nano"
temperature: 0.1
---ERROR (Unspecified error code: 400)---
Request failed with status code: 400 Bad Request. {"error":{"message":"Unsupported parameter: 'temperature' is not supported with this model.","type":"invalid_request_error","param":"temperature","code":null}}
This is the client setup
client<llm> OpenAI5Nano {
provider openai-responses
options {
model "gpt-5-nano"
api_key env.OPENAI_API_KEY
temperature 0.1
reasoning {
effort "minimal"
}
}
}
And this is the doc link stating the support for temperature for this API. https://platform.openai.com/docs/api-reference/responses/create#responses_create-temperature
Can someone please help me fix this issue, or is it bug? The same code is working if I change the client to other, for example
// Google 2.5 Flash Lite Client
client<llm> Gemini2_5FlashLite {
provider google-ai
options {
model "gemini-2.5-flash-lite"
api_key env.GOOGLE_API_KEY
generationConfig {
thinkingConfig {
thinkingBudget 0
}
temperature 0.1
topP 0.7
topK 10
maxOutputTokens 2500
}
}
}