litellm/litellm-rust/crates/gateway/tests
narmstrong-berry 25064726cc
feat(gateway): serve /v1/decisions
Port the proxy's OpenAI-format Decisions endpoint to the Rust gateway at /v1/decisions and
/decisions, for OpenAI and Azure OpenAI deployments. Requests are validated as the proxy
validates them before hooks count them, the provider body is rebuilt from the decision fields,
and answers are aligned to the questions with refusals for what the provider left out. Box
questions follow model_info.supports_box_questions and drop_params.

Decisions run through the hooks pipeline like chat and messages: virtual keys and allowed routes,
rate limits, budgets, spend logs, prometheus and the S3 log. Cost uses the cost map's
_decisions price overrides on the decisions route.

The loadtest kit gains decisions support in mockllm, loadgen and genconfig, and a
system-one-auto workload of 2,000 input and 20 output tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FDwtmKWH21oDCJn1MFbd3
2026-11-11 15:38:40 +00:00
..
azure_chat.rs feat(gateway): serve /v1/messages for chat-completions providers (#47642) 2026-10-20 15:15:10 -07:00
budgets.rs fix(gateway): stop serving routes outside the hooks and return reservations of failed requests (#47355) 2026-10-19 14:38:45 -07:00
chat_streaming.rs feat(gateway): Anthropic and Bedrock chat completions streaming (#47077) 2026-10-19 10:09:27 -07:00
chat_translation.rs fix(gateway): translated chat answers carry a chatcmpl id and object (#47366) 2026-10-19 12:55:27 -07:00
drain.rs feat(gateway): health probes, Prometheus /metrics and graceful drain (#46808) 2026-10-16 12:43:00 -07:00
gemini_chat.rs feat(gateway): land the chat provider series and full-feature load test on the poc branch (#47388) 2026-10-19 12:47:12 -07:00
hooks.rs feat(gateway): serve /v1/decisions 2026-11-11 15:38:40 +00:00
mcp.rs feat(rust): add the MCP gateway (#43470) 2026-09-27 19:37:41 -07:00
model_capacity.rs feat(gateway): model capacity hook, the proxy's dynamic rate limiter (#47055) 2026-10-19 09:58:45 -07:00
openai_compat_chat.rs feat(gateway): land the chat provider series and full-feature load test on the poc branch (#47388) 2026-10-19 12:47:12 -07:00
rate_limits.rs fix(gateway): reject malformed messages with 400 (#47637) 2026-10-20 15:28:22 -07:00
request_hooks.rs feat(gateway): prometheus observer with the proxy's metric and label names (#47060) 2026-10-19 09:58:46 -07:00
s3_log.rs feat(gateway): s3_v2 observer writing the proxy's logging payload to S3 (#47063) 2026-10-19 09:58:46 -07:00
server.rs fix(gateway): reject malformed messages with 400 (#47637) 2026-10-20 15:28:22 -07:00
shared_state.rs feat(gateway): hooks and observers around inference requests, with usage and cost (#47032) 2026-10-19 09:58:43 -07:00
spend.rs feat(gateway): write spend to the proxy's database from a native observer (#47041) 2026-10-19 09:58:43 -07:00
vertex_claude_chat.rs feat(gateway): land the chat provider series and full-feature load test on the poc branch (#47388) 2026-10-19 12:47:12 -07:00
virtual_keys.rs feat(gateway): serve /v1/models (#47640) 2026-10-20 17:00:42 -07:00