https://www.boundaryml.com logo
Temperature setting fails API call for openai-resp...
# help
i
I am getting this error
Copy code
---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
Copy code
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
Copy code
// 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
    }
  }
}