﻿# LiteLLM adds Vercel Decisions routing with gateway-reported cost attribution

Verify Vercel Decisions credentials, judgment output and gateway cost components together; a valid decision response alone does not prove budget-visible usage.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-vercel-decisions-cost-provenance/
Language: en

The November 15 LiteLLM v1.111.0-dev.4 prerelease adds Vercel AI Gateway as a Decisions provider. The implementation uses gateway credentials and reported cost rather than a workaround that could answer without proper attribution. Decision applications should test the selected provider, returned judgment and accounting provenance as separate acceptance conditions, especially where a team supplies its own upstream provider key.

## Use the native gateway provider configuration

Create an isolated Decisions deployment with synthetic Vercel credentials and an observable gateway endpoint. Assert the request reaches that provider and does not borrow an unrelated provider key from the process environment. Keep the decision input harmless and deterministic. This checks the routing capability newly added by the release, rather than relying on a compatible chat workaround whose output may look correct while authentication and accounting follow another path.

## Separate a judgment from its acceptance rule

Use known positive and negative examples for the predicate questions the application submits. Assert response structure and the application’s action on each judgment. The provider integration establishes a transport path, not correctness of every automated decision. Keep downstream effects inert during acceptance so a malformed or unexpected judgment cannot authorize a real action while the team is still validating routing and result interpretation.

## Cost components depend on credential ownership

Return synthetic gateway fee and provider-charge components for the configurations the application uses. Compare total attributed cost with the documented interpretation, including a team-owned provider key case where relevant. A single reported field can represent only part of the economic event. Keep units and request identity in the fixture, so adding components cannot accidentally double-count the same provider charge or ignore work billed outside the gateway fee.

## Reconcile budgets with observable decisions

Match accepted and rejected synthetic decisions to spend records, cache usage metadata and configured budgets. A valid cached answer can still have a gateway-reported charge, so do not assume a cache hit is free. The prerelease adds a concrete integration and cost path; actual commercial reconciliation remains tied to the provider’s reported fields and the chosen setup. Report those boundaries without turning one successful request into a general accuracy or pricing guarantee.

## Sources

- [LiteLLM v1.111.0-dev.4 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.4)
- [LiteLLM implementation and review #50642](https://github.com/BerriAI/litellm/pull/50642)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
