litellm/litellm-rust/crates/inference-chat/tests
Yujong Lee f55f452726 refactor(rust): carry provider credentials as typed ConnectionArguments
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>
2026-10-08 09:21:17 -07:00
..
support refactor(rust): extract inference-testing crate (#44873) 2026-10-06 16:33:06 +00:00
caching.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00
chat_completions.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00