mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
Provider credentials and endpoint settings rode inside optional_params, and every route treated them differently: chat dropped aws_* in the projection while Bedrock Converse still read them from params, OCR re-admitted them through its own allowlist, and transcription never filtered them. Each provider then looked them up by string. Every route request now carries a ConnectionArguments beside its params, built only by keeping the connection names out of a call's arguments, and the AWS, Azure and Vertex parsers read only from it. One row per setting in auth-types/src/fields.rs names the kwargs, the env vars that back them and whether the value is secret; is_connection_name and each auth crate's SECRET_NAMES derive from the rows, and parsers read both the kwarg and its env fallback through the same row. secret_fields on chat, Messages and Responses now lists the call's secret connection names, so caller credentials are redacted in logged kwargs. Bedrock Messages honors per-call AWS credentials and the runtime endpoint. Both chat CONFIG_PARAMS lists, OCR's per-provider auth lists and the second AWS env fallback are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||