Skip to content

feat: add GPT-5 reasoning model support#47

Open
vorniches wants to merge 1 commit into
Sefaria:mainfrom
vorniches:feat/gpt5-reasoning-support
Open

feat: add GPT-5 reasoning model support#47
vorniches wants to merge 1 commit into
Sefaria:mainfrom
vorniches:feat/gpt5-reasoning-support

Conversation

@vorniches

Copy link
Copy Markdown

GPT-5 models (gpt-5-nano, gpt-5-mini, gpt-5.2, etc.) do not support temperature parameter. They use reasoning.effort instead.

This change detects GPT-5 models and passes reasoning parameter with configurable effort level (minimal/low/medium/high).

Ref: https://community.openai.com/t/gpt-5-nano-accepted-parameters/1355086

GPT-5 models (gpt-5-nano, gpt-5-mini, gpt-5.2, etc.) do not support
temperature parameter. They use reasoning.effort instead.

This change detects GPT-5 models and passes reasoning parameter
with configurable effort level (minimal/low/medium/high).

Ref: https://community.openai.com/t/gpt-5-nano-accepted-parameters/1355086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant