Skip to content

GPT 5.6 models not supported due to invalid temperature value #1377

Description

@DanielLaberge

Server

  • Cloud (https://app.khoj.dev)
  • Self-Hosted Docker
  • Self-Hosted Python package
  • Self-Hosted source code

Clients

  • Web browser
  • Desktop/mobile app
  • Obsidian
  • Emacs
  • WhatsApp

OS

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Khoj version

1.42.10

Describe the bug

GPT 5.6 models require temperature to be set to 1.0, and Khoj sets it at 0.8.

Current Behavior

BadRequestError: Error code: 400 -
{'error': {'message': "Unsupported
value: 'temperature' does not support
0.8 with this model. Only the default
(1) value is supported.", 'type':
'invalid_request_error', 'param':
'temperature', 'code':
'unsupported_value'}}

Expected Behavior

.

Reproduction Steps

Try using any GPT 5.6 models, like gpt-5.6-luna

Possible Workaround

No response

Additional Information

No response

Link to Discord or Github discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixFix something that isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions