mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(router): strip the Bedrock route marker from the model in pass-through paths A router model on a bedrock/invoke/ or bedrock/converse/ deployment sent /model/invoke/<model id>/<action> upstream on /bedrock/model/<group>/..., which Bedrock answers with UnknownOperationException. The rewrite now drops the same routing prefixes the chat invoke path drops. * fix(router): strip the Bedrock route marker from the model in pass-through paths * test(router): pin the pass-through model path at the router core for Bedrock route markers and other providers Bedrock invoke and converse deployments must send the bare model id, a hosted_vllm deployment keeps its full provider model, and a model no provider resolves is sent as written * fix(bedrock): send chat's model id on pass-through and log spend for route-pinned models Pass-through paths for Bedrock deployments now drop a region path and resolve latest aliases like chat does, every Bedrock ARN gets its resource slash encoded, and a converse reply on an invoke-pinned deployment is logged with the converse parser so its spend row is written * fix(bedrock): build the pass-through model id with chat's builder and encode custom model ARNs * fix(bedrock): price invoke replies on application profile ARNs by their base model * fix(passthrough): keep the pass-through ARN form and price streamed invoke replies on app profile ARNs by base_model * test(bedrock): cover custom model ARN encoding on the bedrock/openai chat route --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| core | ||
| __init__.py | ||
| test_enforce_model_rate_limits.py | ||
| test_io_token_rate_limits.py | ||
| test_router.py | ||
| test_router_callback_hook_sequence.py | ||
| test_router_endpoints.py | ||
| test_router_entry_points.py | ||
| test_router_facade.py | ||
| test_router_fallbacks.py | ||
| test_router_fuzz_regressions_rust_only.py | ||
| test_router_get_deployments.py | ||
| test_router_helper_utils.py | ||
| test_router_host.py | ||
| test_router_max_parallel_requests.py | ||
| test_router_provider_endpoints.py | ||
| test_router_retries.py | ||
| test_router_surface_check.py | ||
| test_router_timeout.py | ||
| test_router_vector_store_endpoints.py | ||