Skip to content

fix: add evaluation flavor to ModelFlavor enum - #458

Merged
Erin McNulty (erin2722) merged 1 commit into
mainfrom
gk/add-evaluation-flavor
Sep 17, 2026
Merged

Erin McNulty (erin2722) merged 1 commit into
mainfrom
gk/add-evaluation-flavor

Conversation

@erin2722

@erin2722 Erin McNulty (erin2722) commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

The shared model catalog (proxy model_list.json) now includes TypeSafe jev-* models with "flavor": "evaluation", added in braintrustdata/braintrust-proxy#1267. The Rust ModelFlavor enum only knew chat / completion / embedding / responses, so deserializing the catalog fails with unknown variant "evaluation", panicking gateway/api-rs startup.

This adds the Evaluation variant so the shared catalog deserializes.

Notes

  • #[serde(rename_all = "lowercase")] maps the variant to "evaluation".
  • No exhaustive match on ModelFlavor exists in the tree, so this is purely additive.

Validation

  • cargo test -p braintrust-llm-router passes.
  • In the consuming braintrust repo (with the proxy submodule bumped to include #1267): the previously-panicking gateway tests now pass — cargo test -p gateway --lib proxy::router_builder::tests (36 passed) and server::tests::supports_modern_and_legacy_prefixes — and cargo fmt -- --check is clean.

🤖 Generated with Claude Code

@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-17T17:05:06.803222Z df5fef1 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.

@erin2722

Copy link
Copy Markdown
Contributor Author

I think we can just add the type now and then fill in the actual lingua changes once we are ready

The shared model catalog (proxy model_list.json) now includes jev-* models
with "flavor": "evaluation" (braintrust-proxy #1267). The Rust ModelFlavor
enum only knew chat/completion/embedding/responses, so deserializing the
catalog failed with `unknown variant "evaluation"`, panicking gateway/api-rs
startup. Add the Evaluation variant. No exhaustive matches on ModelFlavor
exist, so this is additive.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@erin2722
Erin McNulty (erin2722) merged commit 1fc3fd1 into main Sep 17, 2026
7 checks passed
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.

3 participants