mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
A batch retrieved by its model-encoded id takes the direct (non-router) path, which resolved credentials without stamping the deployment's model_info, so a completed batch on a deployment with its own per-page pricing was billed at the published rate with an empty model_id on the spend row. Extract the router's credential lookup into get_credential_deployment and stamp the resolved deployment's model_info onto the retrieve call the way the router does for routed calls. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_endpoints.py | ||