mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
* feat(rust): add the Vertex AI Anthropic Messages config * fix(rust): normalize Vertex system turns the way Python does Vertex uses the shared normalize_system_role_messages: a leading run is hoisted, a later turn stays or is converted in place by the model's supports_mid_conversation_system, and billing blocks are filtered after the hoist so one inside a system-role message no longer reaches Vertex. * fix(rust_bridge): keep non-Claude Vertex Messages calls on Python The catalog admits every vertex_ai Messages call, but Rust serves only Claude there and reports anything else as a terminal InvalidProvider instead of a decline. The dispatcher now bypasses Rust for those models, as get_provider_anthropic_messages_config does. * refactor(rust): template the Vertex location and project errors The location failure is the shared InvalidType detail and the missing project is MissingSetting with the provider, setting, param and variable name, so no sentence is spelled at the return site. * test(rust): use rstest in the Vertex AI Messages tests * refactor(rust): derive the missing Vertex project error from its spec |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_dispatch.py | ||