Skip to content

Pass native reasoning effort through AI gateways - #45

Merged
andyrewlee merged 1 commit into
mainfrom
feat/native-gateway-effort
Dec 5, 2026
Merged

andyrewlee merged 1 commit into
mainfrom
feat/native-gateway-effort

Conversation

@andyrewlee

Copy link
Copy Markdown
Contributor

Change

Translate the admitted reasoning setting at the private native Chat Completions relay. OpenRouter and Vercel AI Gateway accept reasoning.effort. Cloudflare AI Gateway and Workers AI accept reasoning_effort, with high as the closest exposed level for xhigh and max.

Verification

  • Tests capture the outgoing requests for the four supported gateway routes and a generic compatible endpoint. Only the admitted effort can reach a supported gateway.
  • The earlier adapter reproduced missing fields for the three new routes.
  • Both typechecks and all 530 package tests pass.

@andyrewlee
andyrewlee merged commit edbbcfd into main Dec 5, 2026
2 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.

1 participant