Skip to content

add voice flavors to lingua - #459

Open
Ken Jiang (knjiang) wants to merge 3 commits into
mainfrom
09-17-add_more_flavors_to_lingua
Open

Ken Jiang (knjiang) wants to merge 3 commits into
mainfrom
09-17-add_more_flavors_to_lingua

Conversation

@knjiang

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@knjiang Ken Jiang (knjiang) changed the title add more flavors to lingua add voice flavors to lingua Sep 17, 2026
@knjiang
Ken Jiang (knjiang) marked this pull request as ready for review September 17, 2026 19:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-17T20:01:08.458957Z 2524330 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fcaef5263

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines +975 to +978
let voice_endpoint = match spec.flavor {
ModelFlavor::Realtime => Some("/realtime"),
ModelFlavor::Live => Some("/live/sessions"),
_ => None,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject voice requests before expanding fallback models

When a realtime/live catalog entry has an equivalent non-voice fallback_models entry and the caller supplies fallback aliases, this per-candidate check rejects the requested voice spec, but resolve_provider_routes_for_failover catches that error and continues until the non-voice spec returns a valid HTTP route. The request therefore bypasses the intended WebSocket-only rejection and may be sent to a semantically incompatible completion endpoint; validate the originally requested model's flavor before expanding equivalent routes, or restrict fallback traversal to the same voice flavor.

AGENTS.md reference: AGENTS.md:L17-L19

Useful? React with 👍 / 👎.

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.

2 participants