The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs(pr-template): add a User Flow section with authoring instructions (#36162)
Mateo Wangbf2def7eb565
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 85291b49880..d34b0ee2e0f 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -13,6 +13,33 @@ How it solves it:- <blah>- ...+## User Flow++<!-- Two ordered lists, Before and After, walking the same end user through the same task, written strictly from that user's seat+ Read the linked issue, ticket, or customer thread first so the flow reflects the real application and the routes its users actually hit; don't invent a generic scenario+ Lead each list with one plain sentence saying where the flow fails (Before) or succeeds (After), then number the steps+ Every step is something the user does or observes: the HTTP method and full URL they hit, what they sent, and what visibly came back (status code, error text, the shape of an ID). UI steps name the page URL and what is on screen+ No LiteLLM internals: never name functions, files, DB tables, config classes, hooks, callbacks, or code paths. "The upload hands back an ID that looks like OpenAI's own `file-abc123` instead of the scrambled one the gateway returned" is right, "no managed-file row was registered" is wrong+ Keep the two lists step-for-step identical until they diverge, so the changed step is obvious+ If the bug had a security or authorization consequence, end each list with what another user could or could no longer do+ Regenerate this section whenever new commits change the PR's behavior, so it never describes an older revision++Example:++Before: a developer whose app streams chat completions gets no token counts back, so their cost dashboard reads zero++1. They send POST https://litellm-domain/v1/chat/completions with `"stream": true` and no `stream_options`+2. The last SSE chunk arrives with `"usage": null`, so their app records 0 prompt and 0 completion tokens+3. They open https://litellm-domain/ui/?page=logs and see the request logged at $0 spend++After: the same request comes back with real token counts, so the dashboard shows real spend++1. The proxy admin sets `always_include_stream_usage: true` and restarts the proxy+2. The developer sends the same POST https://litellm-domain/v1/chat/completions with `"stream": true` and no `stream_options`+3. The last SSE chunk now carries a `usage` object with real prompt and completion token counts+4. https://litellm-domain/ui/?page=logs shows that request at non-zero spend+-->+## Relevant issues<!-- e.g., "Fixes #000" -->