Skip to content

feat(decisions): backport unified /v1/decisions endpoint (#44236) - #40

Merged
eiliyaabedini merged 1 commit into
releasefrom
aipass_decisions_backport
Oct 4, 2026
Merged

eiliyaabedini merged 1 commit into
releasefrom
aipass_decisions_backport

Conversation

@eiliyaabedini

Copy link
Copy Markdown
Collaborator

What

Backports upstream BerriAI#44236 (squash 8b1990b4bcc, merged to main 2026-10-03) onto our 1.102.1 release line. It is not in any upstream release yet.

  • New POST /v1/decisions and /decisions, routed by model group through the Router.
  • litellm.decisions / litellm.adecisions with the Jev request/response schema (state + named choice / score / noul questions).
  • Provider transformations: typesafe/, openrouter/, perplexity/, cloudflare/, strands_decider/.
  • Virtual-key auth, budgets, SpendLogs, and the x-litellm-response-cost header, the same as chat completions. AI Pass billing relies on that header and on SpendLogs.

Adapted to 1.102.x

  • Route allowlists wired in proxy/_types.py (this base has no managed_authorization.py).
  • The existing TypeSafe pass-through, Jev prices, Fal costing, and Whisper duration costing are unchanged.
  • Skipped: README provider table, the upstream-only integration harness, and the generated OpenAPI snapshot and dashboard types.

Tests

LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync python -m pytest -p no:postgresql tests/unit/decisions/ tests/unit/proxy/decisions_endpoints/ tests/test_litellm/proxy/pass_through_endpoints/ tests/test_litellm/test_typesafe_model_metadata.py tests/test_litellm/llms/fal_ai/test_cost_calculator.py tests/test_litellm/test_cost_calculator.py: 1002 passed. Codex also ran a wider selection: 1,040 regression and 119 routing tests passed.

There are no DB migrations and no new runtime dependencies.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TrSWP5YNiQ4YuWWkZ4Um7H

Backport upstream BerriAI#44236 (8b1990b) onto the AI Pass
1.102.x release line. Adds POST /v1/decisions and /decisions routed by
model group, litellm.decisions/adecisions, and Jev-compatible provider
transformations for typesafe, openrouter, perplexity, cloudflare and
strands_decider. Decision calls get virtual-key auth, budgets, SpendLogs
and the x-litellm-response-cost header like chat completions.

Adapted to 1.102.x: route allowlists wired in proxy/_types.py (no
managed_authorization.py on this base), the lazy-feature route record
reused, and the existing TypeSafe pass-through, Jev prices, Fal and
Whisper costing left unchanged. Skipped: README table, upstream-only
integration harness, generated OpenAPI snapshot and dashboard types.

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TrSWP5YNiQ4YuWWkZ4Um7H
@eiliyaabedini
eiliyaabedini merged commit c68dbc6 into release Oct 4, 2026
8 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