Skip to content

fix(openai): default reasoning effort for mini models#1824

Merged
chenghao-mou merged 4 commits into
1.5.0from
port-openai-reasoning-effort-mini
Jun 19, 2026
Merged

fix(openai): default reasoning effort for mini models#1824
chenghao-mou merged 4 commits into
1.5.0from
port-openai-reasoning-effort-mini

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Ports livekit/agents#6148 to agents-js.

Summary

  • Add gpt-5.4-mini to OpenAI chat model support.
  • Default OpenAI chat reasoning_effort to none for gpt-5.4-mini when unset.
  • Apply the same Responses API default for both HTTP and WebSocket transports.

Testing

  • pnpm --filter @livekit/agents build
  • pnpm --filter @livekit/agents-plugins-test build
  • pnpm --filter @livekit/agents-plugin-silero build
  • pnpm --filter @livekit/agents-plugin-openai build
  • pnpm --filter @livekit/agents-plugin-openai lint (warnings only)
  • pnpm format:check

Notes

  • pnpm --filter @livekit/agents-plugin-openai api:check currently fails before validating this change because API Extractor does not support the existing export * as ___ syntax in plugins/openai/dist/index.d.ts.

Ported from livekit/agents#6148

Original PR description

Solves #6147

@changeset-bot

changeset-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7a8a791

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-xai Patch
@livekit/agents Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugins-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Open in Devin Review

Comment on lines 213 to 222
export function supportsReasoningEffort(model: ChatModels | string): boolean {
return [
'gpt-5.4',
'gpt-5.3-chat-latest',
'gpt-5.4-mini',
'gpt-5.2',
'gpt-5.2-chat-latest',
'gpt-5.1',
'gpt-5.1-chat-latest',
'gpt-5',
'gpt-5-mini',
'gpt-5-nano',
].includes(model);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 gpt-5.4-nano missing from supportsReasoningEffort despite being in inference model types

The inference LLM types at agents/src/inference/llm.ts:23 include 'openai/gpt-5.4-nano', but supportsReasoningEffort at plugins/openai/src/models.ts:213-222 does not list gpt-5.4-nano. This means no default reasoning effort is applied for that model. This may be intentional (the model might not support reasoning), and since gpt-5.4-nano is also absent from the plugin's ChatModels type, it's not a first-class plugin model. Worth confirming this omission is deliberate.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@chenghao-mou chenghao-mou merged commit e83def4 into 1.5.0 Jun 19, 2026
2 checks passed
@chenghao-mou chenghao-mou deleted the port-openai-reasoning-effort-mini branch June 19, 2026 14:03
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