Skip to content

Change a temperature parameter for gpt-5 #9

Description

@JakubMajcher

Hello. I wanted to start using gpt-5-mini or nano, but after exporting WHIZ_LLM_MODEL=gpt-5-nano I have an error:

✖ whiz is thinking...
BadRequestError: 400 Unsupported value: 'temperature' does not support 0 with this model. Only the default (1) value is supported.
    at APIError.generate (file:///usr/local/lib/node_modules/whiz_cli/node_modules/openai/error.mjs:29:20)
    at OpenAI.makeStatusError (file:///usr/local/lib/node_modules/whiz_cli/node_modules/openai/core.mjs:238:25)
    at OpenAI.makeRequest (file:///usr/local/lib/node_modules/whiz_cli/node_modules/openai/core.mjs:278:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async whatCommandToRun (file:///usr/local/lib/node_modules/whiz_cli/build/completion.js:6:22)
    at async oraPromise (file:///usr/local/lib/node_modules/whiz_cli/node_modules/ora/index.js:396:18)
    at async main (file:///usr/local/lib/node_modules/whiz_cli/build/index.js:22:22) {
  status: 400,
  headers: {
//deleted
  },
  error: {
    message: "Unsupported value: 'temperature' does not support 0 with this model. Only the default (1) value is supported.",
    type: 'invalid_request_error',
    param: 'temperature',
    code: 'unsupported_value'
  },
  code: 'unsupported_value',
  param: 'temperature',
  type: 'invalid_request_error'
}

I see no updates for 2 years in the code. Is the project still alive? I could prepare the PR, but I am not a TypeScript dev and I am not sure is it only change in completion.ts temperature: 1,. Please let me know if someone can do the fix, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions