-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
Objective
Fix model extraction so OpenAI-style model names with provider prefixes (e.g. claude-max/claude-sonnet-4) route correctly instead of falling back to opus.
Problem
extractModel() currently strips only claude-code-cli/, so claude-max/claude-sonnet-4 stays prefixed and fails MODEL_MAP lookup.
Requirements
- Update prefix stripping to handle generic
<provider>/<model>format. - Ensure
claude-max/claude-sonnet-4maps to sonnet. - Keep existing behavior for already-unprefixed names.
- Add/update tests covering prefixed and unprefixed aliases.
Success criteria
- Requests with
model: "claude-max/claude-sonnet-4"are routed to sonnet, not opus fallback. - Tests pass.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels