-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
We're currently unable to set reasoning_effort to "minimal" even on models which support that level.
Excerpt from openai module:
export type ReasoningEffort = 'low' | 'medium' | 'high' | null;
As you can see we have low medium high and "null" (what does this do?) but no option for minimal.
To Reproduce
- Write some instance of the completions create method
- attempt to set
reasoning_effortto"minimal"
Code snippets
Here's the context in which I'm unable to set the parameter:
const { choices } = await openai.chat.completions.create({
model: STRICT_JSON_MODEL,
messages: [{ role: "user", content: prompt }],
response_format: {
type: "json_schema",
json_schema: sentenceAssessmentSchema,
},
reasoning_effort: "low",
});OS
macOS
Node version
Node v22.0
Library version
openai v6.7.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working