Skip to content

Send smart-router recipe as an inference request header - #682

Open
poojabhat0 wants to merge 4 commits into
mainfrom
add-smart-router-recipe-header
Open

poojabhat0 wants to merge 4 commits into
mainfrom
add-smart-router-recipe-header

Conversation

@poojabhat0

Copy link
Copy Markdown
Collaborator

Stamp the configured smart-router recipe (e.g. task_v3) on every Claude Code and Codex inference request via each agent's custom-header channel, so the gateway can attribute inference traffic to the router recipe in use. Only sent when smart routing is enabled.

Stamp the configured smart-router recipe (e.g. task_v3) on every Claude
Code and Codex inference request via each agent's custom-header channel,
so the gateway can attribute inference traffic to the router recipe in
use. Only sent when smart routing is enabled.

Co-authored-by: Isaac <no-reply@databricks.com>
Comment thread src/ucode/agents/codex.py Outdated
Comment thread src/ucode/agents/claude.py Outdated
Comment thread src/ucode/constants.py Outdated
poojabhat0 and others added 3 commits September 16, 2026 17:05
main renamed smart_routing_v2.enabled() to smart_routing_enabled();
update the two recipe-header call sites added on this branch.

Co-authored-by: Isaac <no-reply@databricks.com>
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