litellm/tests/integration/providers
maciej-berri 88ec522942
feat(messages): serve vertex ai claude messages on rust only (#52314)
* feat(python-compat): port urllib.parse urlsplit, urlparse and urlunparse

* fix(vertex_ai): shape Claude Messages requests like Python (auth header, betas, output_format, URL)

* test(vertex_ai): stub the Google token in Messages route tests

* fix(vertex_ai): attribute the anthropic-version refusal to the provider and model

* test(vertex_ai): parity cases for Claude Messages request shaping

* docs(vertex_ai): record the Messages shaping rules

* feat(vertex_ai): classify GCP credential failures by the stage that failed

* fix(vertex_ai): raise Python's Google auth exception classes for native credential failures

Map Rust's GCP credential-acquisition stage to the exception Python's
vertex token path raises (RefreshError, TransportError,
DefaultCredentialsError, ValueError) and name Vertex's default host in
transport failures without an api_base. Read only for vertex_ai.

* fix(vertex_ai): name the unreadable credentials file as Python does and add vertex credential parity cases

* test(vertex_ai): build the SDK token rejection without a reqwest client

* fix(vertex_ai): port request labels, regional cost location and beta-gated field stripping to Rust Messages

* test(vertex_ai): satisfy clippy in the labels tests

* test(vertex_ai): parity cases for request labels, regional cost and beta-gated fields

* test(vertex_ai): name the unreserved label fields case for what it checks

* test(vertex_ai): parity case for the regional uplift on a proxy-built logging object

* test(vertex_ai): keep only regional cost cases that reproduce the proxy logging gap

* feat(vertex_ai): add a Vertex Messages-only GCP login matching Python's load_auth

* fix(vertex_ai): log Vertex Messages in before building its URL, like Python's load_auth

* test(vertex_ai): route Vertex Messages by the model's supported regions

* test(vertex_ai): mark Google login failures for the Python route

* test(vertex_ai): parity cases for the Vertex Messages login

* fix(vertex_ai): send Vertex metadata and Resource Manager lookups through the shared HTTP pool

* fix(vertex_ai): refresh Vertex Messages authorized users at Google's token endpoint like google-auth

* fix(vertex_ai): map Vertex Messages login failures through one marker

Rust now names the exception class, text and any credentials file for every
Vertex Messages login failure, and the host raises it. The stage marker,
its classifier and the vertex_failures module are gone. A credentials file
failure goes through Python's own raise_vertex_credentials_failure, so its
log names the path and the reason. A host without google-auth fails the
login with Python's ImportError.

A vertex_location with one trailing newline is accepted, as Python's
regex accepts it. The URL it builds is refused the way httpx refuses it,
so the call never leaves the process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* feat(vertex_ai): log Vertex Messages in with external account authorized user ADC

google-cloud-auth has no builder for these workforce identity credentials,
so this ports google-auth's: the file loads only when it holds a valid token
or the fields to refresh one, and the refresh token is exchanged at the
file's token_url with basic client auth. A refused refresh raises the
OAuthError google-auth raises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* feat(vertex_ai): cache vertex messages tokens per key-file version

Mint service-account tokens natively, keep tokens until google-auth
calls them stale, refresh stale tokens once in the background, refresh
expired ones single-flight, reload once on invalid_grant, and keep the
earlier key file's credentials when a replacement does not load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* test(vertex_ai): cover vertex messages key-file rotation, fallback and reauth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): send vertex messages service-account grants as google-auth does

Sign the assertion over json.dumps of google-auth's header and claims,
put assertion before grant_type in the form, and send accept: */*.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): log vertex messages credential load failures as python does

Log load_auth failures and failed reauthentication retries on the
LiteLLM logger with Python's text, for the Vertex AI Messages login only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): warn when vertex messages drops disabled thinking

Python warns when it omits thinking={'type': 'disabled'} for an
always-on-thinking model. Warn on the Vertex AI route only; the native
Anthropic route stays silent, as it is on main. Parity cases now compare
warnings for the disabled-thinking drop and the missing-project login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* style(rust_bridge): suppress the cast ban on the cast import itself

* refactor(http): share python requests' proxy and CA bundle rules

Move the azure_ai token transport's reading of HTTPS_PROXY/NO_PROXY and
REQUESTS_CA_BUNDLE/CURL_CA_BUNDLE into litellm-http so the Vertex AI
Messages login can reuse it. Azure behaves as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): mint vertex messages tokens natively as google-auth does

- Send every token request through python requests' proxy and CA
  bundle rules, verifying against the host's certifi bundle by default.
- Exchange external accounts (file, url, executable, AWS metadata and
  explicit AWS) at STS natively, reading only access_token and
  expires_in; a missing token refreshes once more, then raises
  main's ValueError.
- Refresh authorized users with google-auth's form post.
- Raise Python's AttributeError/TypeError crashes for non-dict JSON.
- Keep one login cache per model, as Python's per-model config does.
- Warn when a model's supported_regions override the location.
- Word a TLS close before headers as a disconnect, for vertex_ai only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): stop replaying python helpers for vertex messages failures

- Rust writes the unsendable-URL message; the host raises InvalidURL
  with it instead of parsing the URL through httpx.
- Rust logs a credentials file failure's path and reason; the host
  raises the file-failure ValueError Rust names.
- A connect failure carries the origin Rust sent it to; the host names
  that host instead of recomputing the Vertex base.
- The service-account JWT is built from serde structs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): read credential truthiness through python-compat

Replace the vertex messages loader's local truthiness helpers with one
json_truthy in python-compat, called where credential JSON is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): raise plain typed failures for bad vertex messages credentials

Owner ruling on review #8: stop imitating Python crash classes and
repr texts. Unusable credentials raise ValueError or google-auth's
DefaultCredentialsError/MalformedError/InvalidResource, and unreadable
token replies raise RefreshError, all with plain messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): build the vertex messages url without the urllib port

Owner ruling on review #10: split a custom api_base into origin, path,
query and fragment with a narrow builder instead of python-compat's
urlsplit/urlparse/urlunparse port, which nothing else used and is
removed with its fixtures. URLs match Python's for every normal base
(checked against a Python-generated table); ;params bases differ, as
approved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): drop the google-auth import check from vertex messages

Owner ruling on review #3: the native login never needs google-auth, so
a Vertex AI Messages call no longer imports it to raise Python's
ImportError when it is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): refuse a vertex location with a trailing newline at validation

Owner ruling on review #2: stop copying re's $-before-newline quirk. A
location with a trailing newline gets litellm's 'Invalid vertex_location
format' ValueError, where Python fails later with InvalidURL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* refactor(vertex_ai): parse the caller's vertex labels header with serde_json

Owner ruling on review #12: the X-Vertex-AI-Labels JSON is read with
serde_json (preserve_order) instead of python_json::loads, so NaN or
Infinity makes the header invalid and its labels are skipped. The header
sent to Google keeps Python's json.dumps spacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* feat(messages): serve vertex ai claude messages on rust only

vertex_ai Messages calls whose model Python's partner config serves as
Claude now run on Rust with no flag and no Python fallback. Gemini,
Llama, Mistral, other partner models and Messages passthrough keep their
Python targets. The parity suite drops its preview rule, so the real
catalog decides, and the vertex safeguards contract no longer asserts
Python routing.

* chore(rust): refresh cargo lock after rebase

* refactor(vertex_ai): parse vertex credentials and token replies into typed structs

Credentials files, token endpoint replies, executable answers and the
request label config are deserialized once into typed structs, so the
login code no longer passes serde_json values around or prints them the
way Python's str() would. A credentials field of an unexpected JSON type
is now refused when the file is read.

* refactor(vertex_ai): say rust instead of native for the vertex messages port

* refactor(vertex_ai): move the python compat helpers into python-compat

The or-chain over credential sources, urllib's quote safe set, urlsplit,
the validating base64 decoder, unicodedata categories and the JSON type
name now live in python-compat, and the vertex code calls them where it
reads loose input.

* refactor(vertex_ai): word vertex login failures and logs in litellm's own terms

Login failures keep the exception class Python raises but no longer copy
google-auth's and requests' text. Whether a refused refresh reloads the
credentials now comes from the token endpoint's parsed error field, not
from searching the failure text. The credential and region logs keep
their level with Rust wording.

* docs(vertex_ai): document the vertex messages login files and structs

* refactor(vertex_ai): raise vertex login failures from a fixed allowlist of classes

The host no longer looks a google.auth exception up by whatever name Rust
sends. It raises one of the classes Rust's login can name and leaves any
other name to the usual failure mapping.

* test(vertex_ai): compare rust-worded vertex login failures by class and status

* test(vertex_ai): capture the python vertex messages parity legs as fixtures

The vertex parity groups now compare Rust against the Python leg captured
once through MESSAGES_PARITY_DUMP, with ports and temporary directories
written as placeholders, so the Python request path can go.

* refactor(vertex_ai): drop the python vertex messages request path now served by rust

* docs(vertex_ai): note that a caller authorization header reaches the provider beside the minted token

* docs(vertex_ai): note the kept /v1 doubling for custom vertex api_base

* refactor(vertex_ai): write the vertex labels header with serde_json

* refactor(messages): raise connection failures with litellm's own text naming the host

Drop messages_sent_origin and the host code that rebuilt aiohttp/httpx connection-error text from
Python's SSL config. The Connect error now names the host (never the rest of the URL) it could not
reach; class and status are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): read at most the size limit of a vertex_credentials file

Read one byte past the 4-byte-per-character bound, so /dev/zero or a huge file is refused without
reading it all, and load the source on a blocking thread off the async runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* perf(vertex_ai): dedupe request labels in linear time

Track seen keys in a HashSet and stop once the 32 labels Vertex AI keeps are found, keeping
first-occurrence order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): redact secrets in the Debug of credentials types

Derive veil::Redact on the service account, authorized user, external account (and its AWS keys,
client secret, source headers and executable response), external authorized user and token reply
types, and redact SdkJson as a whole, per the rust-redaction skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(messages): refuse a URL with a control character only for vertex_ai

anthropic, azure_ai and bedrock send such a URL as reqwest cleans it, as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* chore(vertex_ai): review nits

Make the unreachable GcpAccessToken arm in resolve_auth an error, fix the google login marker doc,
drop dated ruling references from comments and describe urlsplit in the urllib module doc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): log a credentials file failure from the blocking read

load_vertex_credentials_source runs on a spawn_blocking thread, where the call's logger is not the
default, so the file's path and problem never reached LiteLLM's log. Run it under the caller's
dispatcher and span.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(vertex_ai): replace a labels header Python cannot encode instead of failing

With vertex_request_label_fields set, the proxy replaces every caller X-Vertex-AI-Labels, so Python
never encodes the caller's value and the call succeeds. The host's ASCII check held such a value back
first and failed the call with 'ascii' codec can't encode. For vertex_ai with label fields set, the
check now leaves the labels header to the replacement (dropping a value that is not text). Unset,
the header is still held back and fails as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* chore(vertex_ai): use main's python-compat type_name after the rebase

main added json::type_name and imports it in thinking.rs, so the branch's copies of the same helper
go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ

* fix(rust): default vertex shaping in gateway router deployments

* fix(auth-gcp): bound vertex subject-token file reads

Read external-account subject-token files and executable output files through one shared helper that caps the read at MAX_CREDENTIALS_FILE_BYTES + 1 on a blocking thread, so /dev/zero is refused by its size and a FIFO no longer blocks a tokio worker. An over-size file is a RefreshError.

* fix(auth-gcp): sign vertex service-account assertions with ring

Sign the RS256 JWT bearer assertion with ring's RsaKeyPair (RSA_PKCS1_SHA256) instead of jsonwebtoken's rust_crypto backend, which pulls in rsa 0.9 (RUSTSEC-2023-0071). PKCS#8 and PKCS#1 PEM keys are still accepted, and a fixed-key test pins the assertion byte-for-byte to the one jsonwebtoken produced. Drops jsonwebtoken, rand and rsa from auth-gcp.

* fix(auth-gcp): keep IAM access tokens out of malformed-reply errors

* fix(auth-gcp): keep credential executable output out of errors

* test(vertex): store captured Python parity fixtures as compact JSON

* refactor(rust_bridge): share one native messages rule for anthropic, azure_ai and vertex_ai

azure_ai and vertex_ai serve native Messages only for Claude, so the rule now
requires Rust only for the Messages target. A call whose target cannot be
computed no longer refuses a non-Claude azure_ai model that Python serves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(auth-gcp): log Vertex Messages in through google_cloud_auth and the shared loader

Claude on Vertex /v1/messages now builds every credential kind with Google's
Rust SDK through the shared GcpAuth loader instead of a hand-written login.

- identity.rs: additive SdkCredentials builder (service account, authorized
  user with a fixed token_uri, external account, impersonated, programmatic,
  impersonated-from, metadata), keyed loads, eviction on a non-transient
  token failure, and a key-file cache key that follows inode, mtime and size.
  The loader traits, GcpAuth::default and NativeProviderLoader are unchanged.
- Service accounts use the SDK's self-signed JWT; a missing private_key_id or
  project_id is filled with an empty string; PKCS#1 keys fail as ValueError.
- explicit_aws.rs keeps litellm's own aws_* login as an SDK subject token
  provider; AWS metadata, file, URL and executable sources go to the SDK.
- compat_certificate_source.rs and compat_external_account_authorized_user.rs
  are small backwards-compat logins for what the SDK lacks.
- SDK failures map to google-auth's exception class per category; a TLS
  certificate failure with only REQUESTS_CA_BUNDLE/CURL_CA_BUNDLE set says to
  set SSL_CERT_FILE.
- Deleted the hand-written service account, authorized user, external account,
  AWS metadata, token cache, requests transport and certifi plumbing, the
  per-model cache and the ring dependency.

* test(parity): treat the service account's self-signed JWT as an approved difference

Owner ruling Q1: Rust signs a service account's token itself with Google's
Rust SDK instead of minting one at token_uri. The Vertex fixture comparison
reads a parity service account's JWT bearer as the token Python's parity
token endpoint granted, and the case pinning an unreachable service account
token_uri is removed with its fixture, since that endpoint is never called.

* fix(auth-gcp): keep Google SDK error text out of Vertex login failures

* fix(auth-gcp): restore the vertex credential failure error log

Python's _load_auth_or_earlier_key_file logs "Failed to load vertex
credentials. Check to see if credentials containing partial/invalid
information. Error: ..." on every load_auth failure, and the proxy's
health check looks for that text. The log went away with logins.rs.

VertexMessagesAuth::login now logs it when the credentials do not load,
when the first token of freshly loaded credentials fails, and when the
project does not resolve. Only the login failure's own message follows
"Error:", and the two failures that still quoted Google SDK build errors
now use the fixed unloadable-credentials message.

* fix(auth-gcp): resolve oidc/ web identity tokens for Vertex explicit AWS keys

Claude on Vertex /v1/messages built the explicit AWS login from an
external_account file's aws_* keys with an AwsAuthService that had no
web identity token source, so aws_web_identity_token: "oidc/..." was
sent to AWS STS as the literal reference. VertexMessagesAuth now takes
the AwsAuthService the Python bridge already wires to the host secrets
for Bedrock (with_aws), so the reference is resolved as Python's
get_secret resolves it.

* fix(auth-gcp): retry the Vertex metadata server ping and project lookup as google-auth does

The GCE metadata ping is tried up to 3 times when the server cannot be
reached, and the project lookup up to 5 times on transport errors or
retryable statuses (408, 429, 500, 503, 504), waiting 1s and doubling
between tries, as google-auth's _metadata.ping and _metadata.get do.

* fix(auth-gcp): gather Vertex backwards-compat logins in vertex_messages/legacy

Move the certificate source, external_account_authorized_user refresh and
their shared token helper into vertex_messages/legacy, reached through a
small interface in legacy/mod.rs.

Add legacy/executable_source.rs: credential helper executables run as
google-auth's pluggable.py runs them (GOOGLE_EXTERNAL_ACCOUNT_* variables,
shell-style split with shlex, timeout_millis, a cached output_file read
under the credentials file size cap), with the subject token handed to
the SDK's ProgrammaticBuilder. Errors never carry the helper's output.

Add legacy/impersonation.rs: an impersonation URL off the SDK's default
host (Private Service Connect, other universes) is called directly with
the STS token, as google-auth does; the default host stays with the SDK.
The explicit AWS path passes universe_domain through.

Add bounded_file_source.rs: file-sourced subject tokens are read with the
capped spawn_blocking reader instead of the SDK's unbounded synchronous
read_to_string.

* fix(auth-gcp): keep the earlier Vertex key file credentials when a rewrite fails to load

When a vertex_credentials or ADC key file is rewritten and the new
contents do not load, log the credential failure and keep serving the
credentials that path loaded last, as Python does. A path that never
loaded fails as before. Other shared-loader callers are unchanged.

* fix(messages): keep main's connect-origin failure text after the merge

The merge of main kept this branch's older removal of the connect-failure
text rebuild (0f0a55fd2e), which changed Bedrock and Mantle error text.
Restore main's connect_origin chain (http, llms, inference, python-bridge)
and the host's aiohttp/httpx text rebuild unchanged for every provider.
Vertex follows main's design: without an api_base it keeps Rust's text.

* fix(auth-gcp): accept PKCS#1 service account keys for Vertex Messages

Google's Rust SDK reads only PKCS#8 service account keys, while google-auth
signs with PKCS#1 keys too, so a key in BEGIN RSA PRIVATE KEY form failed
every Vertex Messages login with a ValueError. The key is now re-encoded as
PKCS#8 with the rsa crate before the SDK reads it.

Adds auth-gcp/PARITY.md, which lists each Vertex login path that behaves
differently from Python or runs through legacy/, and an AGENTS.md rule to
keep it in step with login changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(auth-gcp): list only legacy and unsupported Vertex login paths in PARITY.md

The table now keeps two statuses. Legacy is a path that works only through
code added on top of Google's Rust SDK, Unsupported is a path that worked in
Python and fails here. Paths that work, or fail as they did in Python, are
left out, and the credential helper shell syntax row moves to Unsupported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(auth-gcp): split the Vertex login into google and vertex layers

Nothing in auth-gcp's vertex_messages module was specific to Messages. It
ported google-auth plus litellm's VertexBase.load_auth, which Python shares
across every Vertex route and which other Google services will reuse.

- google/ is google-auth itself: credential files, application default
  credentials, the metadata server, SDK builders, the exception classes
  and the legacy/ logins for paths the SDK lacks. It never imports vertex.
- vertex/ is litellm's VertexBase on top: vertex_credentials,
  vertex_project and vertex_location, the explicit aws_* login, project
  resolution and the key-file fallback. VertexMessagesAuth is now
  VertexLoginService and AuthServices.vertex_messages is vertex_login.
- vertex_region picks a region, not a token, so it moves to llms'
  vertex_ai common_utils.

No behavior change. Files move, imports and visibility follow, error text
is byte-identical, and each layer gets an AGENTS.md saying what belongs
there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(env): move the process environment snapshot into litellm-env

process_environment and variable read the process environment and are not
specific to how requests picks a proxy or CA bundle, so they move from
litellm-http's requests_env into litellm-env beside the other environment
lookups. Behaviour is unchanged.

* refactor(vertex_ai): read supported_regions in the llms vertex_ai module

The vertex_ai/ catalog key and the supported_regions parsing move out of the
python-bridge model catalog into litellm-llms' vertex_ai common_utils, so the
bridge only hands it the live catalog, as it does for Bedrock.

* refactor(callbacks): let the messages route name the provider params it logs

callbacks-legacy-python no longer knows about Vertex AI. The Messages route in
python-bridge registers a LoggedCallParam for vertex_ai built from
EXPLICIT_LOCATION_PARAMS in the llms vertex_ai module, and the adapter logs the
first non-empty text param for the matching provider exactly as before.

* refactor(auth-gcp): name credential file types with a strum enum

CredentialsType spells each google-auth credential type once. The impersonated
source check, the explicit credentials field-error check and the valid-types
message use it instead of string literals.

* docs(auth-gcp): say the explicit AWS login uses AWS as the identity provider

* docs(rust): document the test-support feature pattern

* fix(auth-gcp): refuse plain http impersonation URLs off this machine

The legacy impersonation path sends the source credentials' token as a bearer
to the service_account_impersonation_url. A plain http URL to any host other
than loopback (127.0.0.0/8, ::1, localhost) now fails with RefreshError before
the token is fetched or sent. google-auth sends it, so PARITY.md lists the
path as Unsupported.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:15:10 +00:00
..
_anthropic_safeguards_beta_support.py fix(rust): add the dangerous-tool-use beta when an anthropic /v1/messages request carries safeguards (#46102) 2026-10-17 16:48:05 +00:00
_api_base_trailing_slash_support.py fix(llms): sanitize trailing slashes in provider get_complete_url (#42887) 2026-10-15 02:59:46 -07:00
_api_base_url_join_support.py test(llms): audit #47535 (#48786) 2026-10-28 03:38:21 -07:00
_assistants_route_errors_support.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
_cache_control_marks_support.py fix(responses): propagate cache_control through responses->chat completion bridge (#32511) 2026-10-14 15:44:34 -07:00
_coralbricks.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
_count_tokens_system_lift.py fix(responses)!: count input tokens the way inference sends the request (#47363) 2026-10-20 15:13:59 +00:00
_dashscope_video_support.py feat(dashscope): add Wan 3.0, Wan 2.7 and HappyHorse video generation via /v1/videos (#43706) 2026-10-14 10:10:07 -07:00
_gemini_long_decode_support.py feat(gemini)!: auto-continue gemini-4-argon long decodes with continuationToken (#46240) 2026-10-15 22:54:23 +00:00
_gemini_tts_voice_support.py
_idle_upstream_support.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
_mantle_gpt_prompt_cache_support.py fix(logging): keep the caller's call_type when chat completions are bridged to the Responses API (#49710) 2026-11-03 10:02:54 +00:00
_responses_bridge_prompt_cache_breakpoint.py
_sagemaker_chat_container.py fix(sagemaker)!: parse every streamed record however SageMaker cuts the payload parts (#47495) 2026-10-20 09:36:49 +00:00
_tool_search_support.py fix(anthropic)!: do not surface server_tool_use as client tool_calls (#48385) 2026-11-06 03:54:34 -08:00
_vertex_batch_rows.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
fine_tuning_proxy_config.yaml
openai_fine_tuning.jsonl
test_a2a_sdk_upstream_wire.py
test_anthropic_context_window_stop_wire.py fix(anthropic): map pause_turn and return refusal explanations on chat and responses (#49192) 2026-10-31 02:53:59 -07:00
test_anthropic_count_tokens_system_lift_wire.py fix(count_tokens): answer 400, not 500, for a message without role or content on Anthropic and Azure AI (#51284) 2026-11-14 04:21:29 +00:00
test_anthropic_empty_user_turn_wire.py fix(anthropic): keep trailing user messages with None or empty list content (#41397) 2026-10-16 07:41:05 +00:00
test_anthropic_fable_capability_flags_wire.py fix(anthropic): accept temperature=1 on Claude models that removed sampling params (#52341) 2026-11-17 13:24:45 -08:00
test_anthropic_passthrough_wire.py fix(proxy): forward a valid metadata.user_id to Anthropic Messages on pass-through routes (#49333) 2026-10-31 00:16:42 -07:00
test_anthropic_refusal_stop_details_chaos.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_anthropic_refusal_stop_details_wire.py fix(bedrock): send native structured output for json_schema on Claude models that cannot force a tool (#49703) 2026-11-03 01:56:52 +00:00
test_anthropic_skills_create_wire.py test(integration): cover anthropic_messages endpoint contracts (#44704) 2026-10-14 06:57:54 +00:00
test_anthropic_system_cache_control_wire.py
test_anthropic_thinking_signature_logging_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_anthropic_thinking_signature_stream_wire.py test: expect the list-position index on streamed thinking blocks in the integration suite (#46618) 2026-10-15 05:52:56 +00:00
test_anthropic_tool_search_result_chaos.py fix(anthropic): keep tool_search_tool_result so the search call replays with its result (#46440) 2026-10-14 18:52:32 -07:00
test_anthropic_tool_search_result_matrix_wire.py fix(responses): replay Claude tool search on follow-up turns (#50821) 2026-11-10 17:13:40 +00:00
test_anthropic_tool_search_result_modify_params_wire.py fix(anthropic): count a replayed server tool call's cache mark the way modify_params sends it (#46591) 2026-10-15 14:46:43 -07:00
test_anthropic_tool_search_result_passthrough_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_anthropic_tool_search_result_wire.py fix(anthropic)!: do not surface server_tool_use as client tool_calls (#48385) 2026-11-06 03:54:34 -08:00
test_api_base_trailing_slash_chaos.py fix(llms): sanitize trailing slashes in provider get_complete_url (#42887) 2026-10-15 02:59:46 -07:00
test_api_base_trailing_slash_owned_proxy.py fix(llms): sanitize trailing slashes in provider get_complete_url (#42887) 2026-10-15 02:59:46 -07:00
test_api_base_trailing_slash_wire.py fix(utils): register ollama deployment prices from the built-in catalog without calling the provider (#51561) 2026-11-13 06:50:44 +00:00
test_api_base_url_join_chaos.py fix(llms): join api_base and route with one shared helper (#47535) 2026-10-21 06:59:32 +00:00
test_api_base_url_join_host_owned_proxy.py test(llms): audit #47535 (#48786) 2026-10-28 03:38:21 -07:00
test_api_base_url_join_wire.py test(llms): audit #47535 (#48786) 2026-10-28 03:38:21 -07:00
test_assemblyai_passthrough.py
test_assistants_evals_wire.py test(integration): pin assistants and evals endpoint contracts (#44734) 2026-10-14 07:08:35 +00:00
test_assistants_route_errors_chaos.py
test_assistants_route_errors_wire.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_audio_speech_stream_chaos.py feat(tts)!: stream audio from the provider as it arrives on /v1/audio/speech (#46222) 2026-11-17 15:03:12 +00:00
test_audio_speech_stream_wire.py feat(tts)!: stream audio from the provider as it arrives on /v1/audio/speech (#46222) 2026-11-17 15:03:12 +00:00
test_audit_any_sweep_harness_endpoint.py
test_audit_any_sweep_vector_store.py
test_azure_ai_chat_wire.py
test_azure_ai_claude_messages_wire.py fix(anthropic)!: sync the beta header allowlist with what anthropic, vertex_ai, and azure_ai accept (#49409) 2026-11-02 05:57:51 -08:00
test_azure_ai_flux2_image_wire.py
test_azure_ai_rerank_auth_wire.py
test_azure_embedding_wire.py test(integration): cover embeddings endpoint contracts (#44660) 2026-10-14 03:38:12 +00:00
test_azure_entra_token_reuse_wire.py fix(azure): share one Entra token request per worker and audit #47348 (#48769) 2026-10-28 12:24:20 -07:00
test_azure_reasoning_effort_none_wire.py test(integration): repair seven stale integration tests on main (#47600) 2026-10-20 11:21:04 -07:00
test_azure_responses_api_version_wire.py fix(azure): send no api-version on Foundry project /openai/v1 Responses bases (#51767) 2026-11-14 05:24:12 -05:00
test_bedrock_anthropic_beta_header_wire.py
test_bedrock_async_invoke_embedding_wire.py fix(bedrock): put extra_body fields inside modelInput for async-invoke embeddings (#51676) 2026-11-16 03:30:25 +08:00
test_bedrock_auth_wire.py
test_bedrock_batch_blank_s3_env_wire.py
test_bedrock_batch_files_wire.py test(bedrock): expect native output on Opus 4.8 profiles after #50222 (#50343) 2026-11-06 11:04:32 -08:00
test_bedrock_batch_retrieve_status_wire.py
test_bedrock_claude_thinking_wire.py fix(anthropic): drop unknown legacy thinking keys under drop_params when rebuilding adaptive thinking (#46741) 2026-10-15 23:09:30 +00:00
test_bedrock_converse_client_metadata_wire.py
test_bedrock_converse_config_blocks_wire.py
test_bedrock_converse_fable_capability_flags_wire.py test(integration): cover claude-fable-5-2 capability flags and prompt-cache pricing on Vertex AI and Bedrock Converse (#50742) 2026-11-09 23:26:40 +00:00
test_bedrock_converse_lookaround_regex_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_bedrock_converse_lookaround_regex_wire.py test: update stale integration and guardrail e2e tests to intended behavior (#48665) 2026-10-28 01:11:25 +00:00
test_bedrock_converse_missing_content_wire.py fix(bedrock): stop the prefill 400 when the last user message is empty (#50701) 2026-11-18 03:44:11 +00:00
test_bedrock_converse_redacted_thinking_wire.py fix(bedrock): drop another model's signed thinking when replaying to a non-Claude Converse target (#50073) 2026-11-06 03:15:49 -08:00
test_bedrock_converse_stream_event_frames_wire.py test(integration): look up streamed Responses spend rows by the client-facing id (#49752) 2026-11-02 17:13:41 -08:00
test_bedrock_deepseek_reasoning_wire.py
test_bedrock_embedding_wire.py
test_bedrock_gpt5_reasoning_wire.py
test_bedrock_gpt_responses_native_wire.py fix(responses): surface mid-stream upstream errors that arrive without an event type (#50466) 2026-11-07 14:53:07 -08:00
test_bedrock_invoke_cache_usage_wire.py
test_bedrock_invoke_dangerous_tool_use_beta_wire.py fix(bedrock): drop dangerous-tool-use beta without safeguards (#44471) 2026-10-16 21:00:37 +00:00
test_bedrock_kimi_k3_cache_point_wire.py fix(bedrock)!: split the OpenAI breakpoint and Bedrock cachePoint model flags (#52180) 2026-11-16 18:50:32 -08:00
test_bedrock_knowledge_base_user_context_wire.py
test_bedrock_mantle_claude_chat_chaos.py fix(proxy)!: preserve Responses SSE event framing (#47980) 2026-11-06 20:17:57 -08:00
test_bedrock_mantle_claude_chat_wire.py test(bedrock): expect the fixed-sampling temperature message from #52341 in the Mantle wire test (#52742) 2026-11-18 18:19:33 -08:00
test_bedrock_mantle_codex_input_wire.py fix(bedrock): forward Codex agent messages that carry encrypted content intact (#50457) 2026-11-06 17:47:43 -08:00
test_bedrock_mantle_context_overflow_fallbacks_wire.py fix(router): recover streamed context window errors before output (#49293) 2026-10-30 13:19:58 -07:00
test_bedrock_mantle_context_overflow_wire.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_bedrock_mantle_count_tokens_wire.py fix(proxy): send a prompt-only call_endpoint token count to every provider count API (#50783) 2026-11-10 18:09:19 +00:00
test_bedrock_mantle_gpt_prompt_cache_breakpoint_wire.py test(integration): run the bedrock mantle prompt cache and output limit wire tests on their own proxy (#47152) 2026-10-17 13:51:31 -07:00
test_bedrock_mantle_output_limit_wire.py fix(spend)!: save streamed /v1/responses spend rows under the encrypted resp_ id the client received (#49493) 2026-11-02 14:13:17 -08:00
test_bedrock_mantle_responses_wire.py fix(bedrock): forward Codex agent messages that carry encrypted content intact (#50457) 2026-11-06 17:47:43 -08:00
test_bedrock_mantle_wire.py
test_bedrock_marengo_embed_3_wire.py
test_bedrock_model_discovery_chaos.py
test_bedrock_model_discovery_wire.py fix(spend)!: save streamed /v1/responses spend rows under the encrypted resp_ id the client received (#49493) 2026-11-02 14:13:17 -08:00
test_bedrock_native_guardrail_trace_spend.py feat(bedrock): price native guardrailConfig trace usage into spend and x-litellm-response-cost (#48278) 2026-10-27 12:10:45 -07:00
test_bedrock_native_structured_output_wire.py fix(bedrock): send text.format.strict for GPT native structured output on Converse (#52419) 2026-11-19 00:35:39 +00:00
test_bedrock_nova_sonic_realtime_guardrails.py fix(bedrock): run realtime guardrails on Nova Sonic sessions (#49833) 2026-11-06 13:18:48 -08:00
test_bedrock_nova_sonic_realtime_tool_calls.py fix(cost): price exact cost-map names before price-free capability rules, and fix SCIM and MCP integration tests on CircleCI (#47037) 2026-10-17 06:46:52 +00:00
test_bedrock_passthrough_aws_errors.py fix(bedrock-passthrough)!: return AWS-shaped errors so AWS SDKs read the code and message (#46522) 2026-10-15 22:05:46 -07:00
test_bedrock_passthrough_guardrail_config_wire.py fix(bedrock): forward x-pass- headers on the /bedrock/model pass-through routes (#50728) 2026-11-10 21:28:49 +00:00
test_bedrock_passthrough_request_metadata_wire.py fix(bedrock): forward x-pass- headers on the /bedrock/model pass-through routes (#50728) 2026-11-10 21:28:49 +00:00
test_bedrock_passthrough_stream_wire.py test(integration): cover pass_through endpoint contracts (#44690) 2026-10-14 07:38:17 +00:00
test_bedrock_rerank_wire.py
test_bedrock_role_configuration.py
test_bedrock_runtime_chat_completions_chaos.py fix(spend)!: save streamed /v1/responses spend rows under the encrypted resp_ id the client received (#49493) 2026-11-02 14:13:17 -08:00
test_bedrock_runtime_chat_completions_sad_wire.py test(integration): fix seven CircleCI integration tests that race or assume a worker spread (#47001) 2026-10-16 22:45:29 +00:00
test_bedrock_runtime_chat_completions_wire.py
test_bedrock_stream_timeout_chaos.py
test_bedrock_stream_timeout_wire.py fix(router)!: bound fake-streamed calls by the request timeout, not stream_timeout (#47162) 2026-10-17 22:08:02 +00:00
test_bedrock_thinking_tokens_wire.py
test_cache_control_tool_call_marks_owned_proxy.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_cache_control_tool_call_marks_wire.py fix(caching): stop counting an unrun server tool call mark, and follow #49192 and #35602 in their integration tests (#49468) 2026-10-31 12:27:17 -07:00
test_chat_completions_tool_search_chaos.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_chat_completions_tool_search_history_wire.py fix(anthropic)!: translate the OpenAI tool_search tool on /v1/chat/completions for Claude models (#46389) 2026-10-15 04:47:05 +00:00
test_chat_completions_tool_search_wire.py fix(anthropic)!: do not surface server_tool_use as client tool_calls (#48385) 2026-11-06 03:54:34 -08:00
test_chat_provider_annotations_wire.py fix(anthropic)!: send /v1/messages PDF documents to OpenAI-shaped providers as file parts (#47166) 2026-10-29 08:06:12 -07:00
test_chat_template_tool_count_wire.py fix(count_tokens): count grok-4-1, grok-4.3 and DeepSeek V4.1 tool requests the way their hosts bill them (#49074) 2026-11-02 12:37:35 -08:00
test_chatgpt_responses_caller_stream_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_chatgpt_responses_caller_stream_wire.py test: update stale integration and guardrail e2e tests to intended behavior (#48665) 2026-10-28 01:11:25 +00:00
test_chatgpt_responses_top_level_error_wire.py fix(responses): keep the provider code and message on top-level stream error events (#46438) 2026-10-14 16:16:46 -07:00
test_claude_adaptive_thinking_modify_params_wire.py test(anthropic): cover adaptive thinking on tool turns under modify_params (#52425) 2026-11-18 22:31:19 +00:00
test_claude_thinking_content_replay_wire.py test(anthropic, bedrock): audit #47489 (#48782) 2026-10-28 04:24:50 -07:00
test_cloudflare_clairic_extraction_wire.py test(extraction): audit #47473 (#48898) 2026-10-28 17:12:07 -07:00
test_cloudflare_clef_images_chaos.py feat(decisions)!: send images to Cloudflare Clef through its images field (#45734) 2026-10-14 12:14:48 +00:00
test_cloudflare_clef_images_wire.py feat(decisions)!: send images to Cloudflare Clef through its images field (#45734) 2026-10-14 12:14:48 +00:00
test_cloudflare_clef_omni_media_chaos.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_cloudflare_clef_omni_media_wire.py
test_container_file_routes_wire.py
test_coralbricks_provider_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_coralbricks_provider_env_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_coralbricks_provider_wire.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_count_tokens_error_shapes_wire.py fix(count_tokens): return 400 for malformed Anthropic server-tool blocks (#51957) 2026-11-15 20:10:12 +00:00
test_count_tokens_model_wire.py fix(count_tokens)!: audit #47441 and keep the framed estimate for Bedrock count models from the cost map (#48805) 2026-10-28 19:11:35 +00:00
test_cursor_responses_wire.py fix(proxy)!: log and bill Responses-style bodies sent to /cursor/chat/completions (#30277) 2026-10-30 00:18:15 -07:00
test_custom_image_provider_wire.py fix(images): pass the caller's OpenAI image params to custom provider handlers (#52051) 2026-11-16 10:47:07 -08:00
test_custom_prompt_template_chaos.py fix(prompt-templates): treat initial_prompt_value and final_prompt_value as optional (#39762) 2026-10-16 10:30:59 +00:00
test_custom_prompt_template_wire.py fix(prompt-templates): treat initial_prompt_value and final_prompt_value as optional (#39762) 2026-10-16 10:30:59 +00:00
test_custom_video_provider_wire.py feat(videos): serve custom_provider_map BaseVideoConfig providers on /v1/videos (#49785) 2026-11-02 21:28:46 -08:00
test_dashscope_chat_wire.py fix(proxy): keep provider refusal, logprobs and system_fingerprint in chat completions (#44788) 2026-10-13 13:17:40 -07:00
test_dashscope_image_edit_and_speech_wire.py feat(dashscope): add image edits and text-to-speech (#48998) 2026-10-29 17:48:38 -07:00
test_dashscope_video_chaos.py feat(dashscope): add Wan 3.0, Wan 2.7 and HappyHorse video generation via /v1/videos (#43706) 2026-10-14 10:10:07 -07:00
test_dashscope_video_wire.py feat(dashscope): add Wan 3.0, Wan 2.7 and HappyHorse video generation via /v1/videos (#43706) 2026-10-14 10:10:07 -07:00
test_databricks_agent_wire.py feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
test_databricks_chat_wire.py fix(databricks): join plain text blocks for non-Claude json_object requests (#49385) 2026-11-02 11:17:40 -08:00
test_databricks_decisions_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_databricks_oauth_wire.py
test_decision_model_guardrail.py test(integration): stop GET /__observations from draining the upstream log (#47256) 2026-10-18 09:58:05 +00:00
test_decisions_box_deployment_flag_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_decisions_box_deployment_flag_wire.py fix(decisions): keep box questions on a deployment when a same-model sibling turns them off (#50724) 2026-11-10 17:26:46 +00:00
test_decisions_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_decisions_media_deployment_flag_wire.py fix(decisions)!: honor a deployment's own supports_audio_input and supports_video_input flags (#49207) 2026-10-31 01:09:46 -07:00
test_decisions_openai_format_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_decisions_wire.py test: ignore Ollama metadata calls in decisions decoy check (#50827) 2026-11-09 21:52:02 -08:00
test_deepseek_vision_wire.py test(integration): stop GET /__observations from draining the upstream log (#47256) 2026-10-18 09:58:05 +00:00
test_device_code_login_guard_boot.py test(copilot): align login guards with direct access tokens (#50285) 2026-11-05 15:38:33 -08:00
test_device_code_login_guard_wire.py test(copilot): align login guards with direct access tokens (#50285) 2026-11-05 15:38:33 -08:00
test_embedding_cache_partial_hit_wire.py test(integration): cover embeddings endpoint contracts (#44660) 2026-10-14 03:38:12 +00:00
test_embedding_token_array_wire.py test(integration): cover embeddings endpoint contracts (#44660) 2026-10-14 03:38:12 +00:00
test_fake_openai_upstream_routes.py
test_fal_ai_chat_wire.py
test_fal_ai_image_wire.py fix(fal_ai): send versioned seedream and flux-pro image models to the endpoint they name (#51668) 2026-11-16 03:28:53 +08:00
test_fal_ai_passthrough_wire.py fix(proxy): run the /fal_ai passthrough price gate on the path sent upstream (#51671) 2026-11-16 03:28:31 +08:00
test_fal_ai_video_wire.py fix(cost): keep a deployment's per-second video price over the catalog row's flat price (#51688) 2026-11-15 12:04:41 -08:00
test_files_batches_wire.py test(integration): cover files_batches endpoint contracts (#44703) 2026-10-14 06:57:41 +00:00
test_fireworks_ai_router_slug_wire.py
test_fireworks_ai_session_affinity_wire.py
test_friendliai_replay_wire.py fix(friendliai): drop litellm-internal message fields before sending (#45092) 2026-10-20 01:22:07 +00:00
test_gemini_agents_wire.py fix(gemini)!: accept Google's current Managed Agents fields on create and interactions (#48750) 2026-10-28 12:37:59 -07:00
test_gemini_anyof_null_branches_wire.py fix(vertex_ai)!: send integer enums to Gemini instead of dropping them (#44908) 2026-10-20 17:39:51 +00:00
test_gemini_chat_video_metadata_wire.py
test_gemini_content_filter_reason_wire.py fix(gemini): keep Google's reason on streamed chunks and the assembled response (#52242) 2026-11-17 16:01:46 -08:00
test_gemini_context_caching_custom_api_base_wire.py fix(vertex_ai): build the cachedContents collection URL under a custom api_base (#44783) 2026-10-29 03:46:35 -07:00
test_gemini_default_output_budget_wire.py test(gemini): audit #47542 (#48758) 2026-10-28 02:42:45 -07:00
test_gemini_embedding_file_block_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_gemini_embedding_file_block_wire.py
test_gemini_grounding_annotations_wire.py test(gemini): cover every web source for a grounded passage (#48861) 2026-10-28 16:26:28 -07:00
test_gemini_image_config_and_usage_wire.py test(images): expect cache fields in gemini image edit usage (#52798) 2026-11-19 07:10:35 +00:00
test_gemini_image_controls_wire.py fix(gemini): drop logprobs on every model Google refuses them for (#52700) 2026-11-19 00:54:19 +00:00
test_gemini_interactions_wire.py feat(interactions): forward continuation_token and type requires_continuation so callers can resume a long decode (#50151) 2026-11-05 15:38:44 -08:00
test_gemini_long_decode_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_gemini_long_decode_wire.py test(integration): drop the empty-string n case from the Gemini long decode test (#50796) 2026-11-10 02:02:07 +00:00
test_gemini_omitted_temperature.py test(translation): share rich fixtures across Claude, GPT and Gemini providers (#46585) 2026-10-14 19:53:09 -07:00
test_gemini_passthrough_batch_wire.py fix(gemini): attribute /gemini batchGenerateContent batches to the calling key (#51279) 2026-11-11 17:39:27 -08:00
test_gemini_thinking_replay_chaos.py test(integration): look up streamed Responses spend rows by the client-facing id (#49752) 2026-11-02 17:13:41 -08:00
test_gemini_thinking_replay_wire.py test(gemini): use valid base64 thought signature fixtures (#52311) 2026-11-17 18:03:38 +00:00
test_gemini_tool_result_part_reference_chaos.py test(integration): look up streamed Responses spend rows by the client-facing id (#49752) 2026-11-02 17:13:41 -08:00
test_gemini_tool_result_part_reference_wire.py test: update stale integration and guardrail e2e tests to intended behavior (#48665) 2026-10-28 01:11:25 +00:00
test_gemini_tts_voice_mapping_owned_proxy.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_gemini_tts_voice_mapping_wire.py test: fix integration tests that fail on test order, races and intended changes (#49310) 2026-10-30 13:25:47 -07:00
test_google_genai_adapter_wire.py fix(google_genai): honor snake_case generation_config on generateContent (#51139) 2026-11-18 03:47:08 +00:00
test_google_genai_native_wire.py fix(google_genai): honor snake_case generation_config on generateContent (#51139) 2026-11-18 03:47:08 +00:00
test_google_genai_proxy_sdk_wire.py
test_google_genai_vertex_routes_wire.py fix(vertex): match standalone 403 status tokens instead of any substring (#47134) 2026-10-17 19:17:18 +00:00
test_hosted_tool_choice_wire.py fix(completion): accept a tool_choice that forces an OpenAI hosted tool (#50578) 2026-11-07 17:54:57 -08:00
test_hosted_vllm_reasoning_content_chaos.py
test_hosted_vllm_reasoning_content_wire.py test: cover response contracts across translation endpoints (#46632) 2026-10-15 00:05:09 -07:00
test_hosted_vllm_stream_stall_wire.py test(router): expect a primary stream's stall to cool its deployment (#50261) 2026-11-06 00:06:59 +00:00
test_huggingface_rerank_truncate_wire.py fix(huggingface): stop forcing truncate=false on TEI rerank and pass truncate params through (#48706) 2026-10-28 09:27:26 -07:00
test_huggingface_tokenizer_downloads_wire.py test(token_counter): audit #47586 (#48800) 2026-10-28 04:30:19 -07:00
test_idle_upstream_guardrail_cut_wire.py feat(guardrails): add num_retries to generic_guardrail_api for checks lost after connect (#46965) 2026-10-17 12:22:41 -07:00
test_idle_upstream_keepalive_edges_wire.py test(providers): expect Rust routing for quiet Messages streams (#51346) 2026-11-12 04:01:28 +00:00
test_idle_upstream_keepalive_override_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_idle_upstream_reconnect_chaos_wire.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_idle_upstream_reconnect_routes_wire.py test(providers): expect Rust routing for idle Messages streams (#51364) 2026-11-12 06:24:23 +00:00
test_idle_upstream_reconnect_wire.py fix(http): restore the 15s aiohttp keep-alive default in the Python and Rust clients (#46355) 2026-10-14 10:50:11 -07:00
test_image_gen_drop_params_wire.py fix(images): honor max_retries and prevent Router retry amplification (#48705) 2026-10-28 10:46:47 -07:00
test_inferenceapis_context_window_fallbacks_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_inferenceapis_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_interactions_openai_bridge_wire.py
test_internal_params_wire.py feat(providers): add Sarvam Token Factory v2 models (#49792) 2026-11-18 13:19:05 +00:00
test_lm_studio_chat_wire.py
test_malformed_tools_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_malformed_tools_wire.py fix(responses)!: count input tokens the way inference sends the request (#47363) 2026-10-20 15:13:59 +00:00
test_moderations.py
test_moderations_wire.py test(integration): cover small_inference endpoint contracts (#44654) 2026-10-14 04:06:15 +00:00
test_nvidia_nim_ranking_wire.py
test_nvidia_riva_wire.py fix(nvidia_riva): send the api key exactly once by calling riva over grpc directly (#50140) 2026-11-04 18:07:31 -08:00
test_ocr_multipart_wire.py test(integration): cover small_inference endpoint contracts (#44654) 2026-10-14 04:06:15 +00:00
test_ocr_router_wire.py
test_ollama_embedding_wire.py fix(ollama): forward embedding credentials, headers and timeout (#48707) 2026-10-28 09:32:47 -07:00
test_ollama_prompt_tools_chaos.py fix(prompt_templates): do not mutate messages in-place in function_call_prompt (#41676) 2026-10-15 14:37:11 -07:00
test_ollama_prompt_tools_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_openai_chat_prompt_cache_breakpoint_wire.py fix(providers): trim prompt_cache_breakpoint to what each API takes under drop_params (#49064) 2026-11-02 10:00:00 -08:00
test_openai_chat_wire.py fix(logging): keep the caller's call_type when chat completions are bridged to the Responses API (#49710) 2026-11-03 10:02:54 +00:00
test_openai_compatible_permission_denied_wire.py fix(exceptions): map upstream 403 to PermissionDeniedError for OpenAI-style providers (#52179) 2026-11-17 03:14:09 +00:00
test_openai_completion_wire.py test(integration): cover chat_completions endpoint contracts (#44688) 2026-10-14 03:45:38 +00:00
test_openai_count_tokens_tools_wire.py fix(responses)!: answer 400 before counting a lone Responses built-in tool on Claude (#48798) 2026-10-28 12:12:45 -07:00
test_openai_dialect_prompt_cache_breakpoint_owned_proxy.py fix(azure_ai)!: keep OpenAI prompt cache breakpoints on the Foundry chat completions path (#45299) 2026-10-29 23:49:55 -07:00
test_openai_embedding_timeout_wire.py
test_openai_embedding_wire.py test(integration): cover embeddings endpoint contracts (#44660) 2026-10-14 03:38:12 +00:00
test_openai_error_handling.py
test_openai_fine_tuning.py
test_openai_image_edit_wire.py test(integration): cover images endpoint contracts (#44653) 2026-10-14 03:40:29 +00:00
test_openai_image_variation_wire.py test(integration): cover images endpoint contracts (#44653) 2026-10-14 03:40:29 +00:00
test_openai_like_response_headers_wire.py fix(prometheus): set the remaining rate-limit gauges from decimal headers again (#47039) 2026-10-17 05:20:00 +00:00
test_openai_passthrough_files_wire.py
test_openai_passthrough_multipart_wire.py test(integration): cover pass_through endpoint contracts (#44690) 2026-10-14 07:38:17 +00:00
test_openai_realtime_transcription_url.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_openai_responses_prompt_cache_breakpoint_wire.py fix(openai): carry cache_control to prompt_cache_breakpoint on /v1/responses to gpt-5.6 (#46105) 2026-10-13 15:23:07 -07:00
test_openai_responses_tool_search_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_openai_responses_websocket_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_openai_stream_text_usage_wire.py
test_pdf_input_support_wire.py fix(anthropic)!: send /v1/messages PDF documents to OpenAI-shaped providers as file parts (#47166) 2026-10-29 08:06:12 -07:00
test_provider_lookup_status.py test(integration): stop GET /__observations from draining the upstream log (#47256) 2026-10-18 09:58:05 +00:00
test_provider_passthrough_stream_relay_wire.py feat(tts)!: stream audio from the provider as it arrives on /v1/audio/speech (#46222) 2026-11-17 15:03:12 +00:00
test_rag_ingest_wire.py test(integration): cover vector_stores endpoint contracts (#44739) 2026-10-14 03:59:08 +00:00
test_realtime_transcription_guardrail_session_update.py fix(bedrock): run realtime guardrails on Nova Sonic sessions (#49833) 2026-11-06 13:18:48 -08:00
test_realtime_unguarded_voice_turns.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_realtime_webrtc_http.py test(integration): cover realtime endpoint contracts (#44689) 2026-10-14 03:49:34 +00:00
test_replicate_video_wire.py fix(replicate): answer malformed video seconds and size with a 400 or a dropped size instead of a 500 (#51670) 2026-11-16 03:29:08 +08:00
test_request_boundary.py test(integration): stop GET /__observations from draining the upstream log (#47256) 2026-10-18 09:58:05 +00:00
test_rerank_latency_headers_wire.py test(integration): cover small_inference endpoint contracts (#44654) 2026-10-14 04:06:15 +00:00
test_responses_bridge_history_replay_wire.py fix(responses): replay the original Responses item order, phase, and boundaries on the next chat turn (#48912) 2026-10-29 00:56:02 -07:00
test_responses_bridge_incomplete.py fix(responses): replay the original Responses item order, phase, and boundaries on the next chat turn (#48912) 2026-10-29 00:56:02 -07:00
test_responses_bridge_input_audio_wire.py
test_responses_bridge_item_marks_guardrail_wire.py fix(responses): propagate cache_control through responses->chat completion bridge (#32511) 2026-10-14 15:44:34 -07:00
test_responses_bridge_message_cache_control_wire.py test(providers): expect 503 server_is_overloaded for an upstream overload on the responses bridge (#50166) 2026-11-05 04:40:22 +00:00
test_responses_bridge_message_cache_control_wire_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_responses_bridge_namespace_tools.py
test_responses_bridge_prompt_cache_breakpoint.py
test_responses_bridge_prompt_cache_breakpoint_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_responses_bridge_prompt_cache_breakpoint_wire.py fix(responses): send cache_control as a prompt_cache_breakpoint on the chat-to-Responses bridge (#51783) 2026-11-14 05:00:49 -05:00
test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_responses_bridge_stream_output_items_wire.py
test_responses_bridge_tool_search_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_responses_bridge_tool_search_replay.py fix(responses bridge): round-trip tool_search_call and tool_search_output items between turns (#46444) 2026-10-14 21:40:14 -07:00
test_responses_bridge_tool_search_replay_wire.py fix(responses): translate OpenAI tool_search to Anthropic tool search for Claude models (#45882) 2026-10-14 20:42:22 -07:00
test_responses_bridge_tool_search_undeferred_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_responses_bridge_tool_search_wire.py fix(responses): replay Claude tool search on follow-up turns (#50821) 2026-11-10 17:13:40 +00:00
test_responses_bridge_verbosity_wire.py fix(responses): preserve text verbosity when bridging to chat completions (#49049) 2026-10-30 21:41:20 -07:00
test_responses_client_header_forwarding_wire.py
test_responses_codex_repeated_additional_tools_wire.py fix(responses): only merge repeated Codex tools when drop_params is on (#49112) 2026-10-29 12:55:29 -07:00
test_responses_compact_wire.py fix(responses): drop the null created_by OpenAI rejects when output items are replayed (#48783) 2026-10-28 21:11:49 -07:00
test_responses_compaction_items_wire.py fix(responses)!: round-trip Anthropic compaction blocks as compaction items (#46754) 2026-10-21 08:50:19 +00:00
test_responses_core_wire.py fix(responses)!: authorize and decode comparison response IDs (#49402) 2026-11-03 03:40:46 +00:00
test_responses_error_status_wire.py
test_responses_lifecycle_wire.py test(responses): isolate cancel wire checks from background polling (#50002) 2026-11-04 05:12:01 +00:00
test_responses_minted_reasoning_replay_chaos.py test(copilot): route direct-token fixtures through authenticated peers (#50307) 2026-11-05 17:42:46 -08:00
test_responses_minted_reasoning_replay_wire.py fix(bedrock): drop another model's signed thinking when replaying to a non-Claude Converse target (#50073) 2026-11-06 03:15:49 -08:00
test_responses_reasoning_item_wire.py
test_responses_websocket_session_limit.py test(integration): wait for every worker to report the websocket session cap instead of sleeping (#47412) 2026-10-19 15:35:29 -07:00
test_rust_anthropic_safeguards_beta_chaos.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_rust_anthropic_safeguards_beta_wire.py feat(messages): serve vertex ai claude messages on rust only (#52314) 2026-11-19 21:15:10 +00:00
test_s3_wire.py feat(s3-log): replace the python s3_v2 logger with a rust callback (#51539) 2026-11-14 23:03:58 +00:00
test_sagemaker_chat_credential_sources.py
test_sagemaker_chat_wire.py fix(router)!: keep a deployment's own model_id over the request body's (#49045) 2026-10-30 02:40:01 -07:00
test_sagemaker_embedding_chaos.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_sagemaker_embedding_wire.py test(providers): align SageMaker wire assertions with request semantics (#51536) 2026-11-13 03:21:56 +00:00
test_search_wire.py fix(tavily): return raw_content, score, favicon and the response envelope from Tavily search (#48684) 2026-10-27 18:52:06 -07:00
test_strands_decider_agentcore_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_tencent_chat_wire.py fix(proxy): keep provider refusal, logprobs and system_fingerprint in chat completions (#44788) 2026-10-13 13:17:40 -07:00
test_tool_config_cache_point_wire.py fix(anthropic): apply tool_config cache-control points on chat and /v1/messages (#47394) 2026-10-19 23:26:41 +00:00
test_validated_reply_boundaries_under_faults.py test(images): expect cache fields in image usage (#52777) 2026-11-19 05:31:51 +00:00
test_vector_store_create_wire.py test(integration): remove BUG skips for 3 tests that pass on main (#47364) 2026-10-19 21:39:35 -07:00
test_vector_store_passthrough_fallbacks.py feat(vector-stores): fail over native search passthrough to configured fallback stores (#52856) 2026-11-19 09:51:41 -08:00
test_vector_store_search_wire.py fix(vertex_ai): reuse one Google token across RAG Engine searches and cold bursts (#51239) 2026-11-14 03:12:09 -05:00
test_vector_store_team_model_provider_wire.py fix(proxy): route team key vector store calls to a team model of the store's provider (#46894) 2026-10-17 14:32:03 -05:00
test_vertex_anthropic_fable_capability_flags_wire.py test(integration): cover claude-fable-5-2 capability flags and prompt-cache pricing on Vertex AI and Bedrock Converse (#50742) 2026-11-09 23:26:40 +00:00
test_vertex_anthropic_inline_tools_beta_wire.py fix(anthropic)!: sync the beta header allowlist with what anthropic, vertex_ai, and azure_ai accept (#49409) 2026-11-02 05:57:51 -08:00
test_vertex_anthropic_structured_output_wire.py test(anthropic): scope structured output captures to inference routes (#50983) 2026-11-10 18:53:04 +00:00
test_vertex_batch_output_info_wire.py
test_vertex_batch_row_line_errors_chaos.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_vertex_batch_row_line_errors_owned_proxy.py test(providers): expect batch alias rows rewritten to the deployment model on model-routed uploads (#52199) 2026-11-17 03:28:04 +00:00
test_vertex_batch_row_line_errors_wire.py test(integration): hand every harness server a port from one per-worker block (#46761) 2026-10-15 16:56:40 -07:00
test_vertex_credentials_source_wire.py test: update integration tests left stale by recent product changes (#49143) 2026-10-29 18:06:28 -07:00
test_vertex_embedding_batch_file_block_wire.py
test_vertex_embedding_file_block_wire.py
test_vertex_embedding_wire.py fix(vertex_ai): send extra_body fields as predict parameters for BGE embedding models (#51662) 2026-11-16 03:30:21 +08:00
test_vertex_gemini_count_tokens_wire.py fix(responses)!: count input tokens the way inference sends the request (#47363) 2026-10-20 15:13:59 +00:00
test_vertex_gemini_fragmented_stream_wire.py test: update stale integration and guardrail e2e tests to intended behavior (#48665) 2026-10-28 01:11:25 +00:00
test_vertex_gemini_function_call_wire.py fix(gemini): keep thought signatures for proxy model names without gemini in them (#52212) 2026-11-17 06:20:51 +00:00
test_vertex_labels_router_default_metadata_wire.py fix(router): merge default metadata under the request's instead of replacing it (#50700) 2026-11-09 17:23:52 -08:00
test_vertex_partner_count_tokens_wire.py fix(responses)!: count input tokens the way inference sends the request (#47363) 2026-10-20 15:13:59 +00:00
test_vertex_partner_labels_wire.py fix(vertex_ai): send Vertex Claude labels as X-Vertex-AI-Labels header instead of the request body (#48753) 2026-10-28 15:41:50 +00:00
test_vertex_partner_messages_wire.py test(integration): cover anthropic_messages endpoint contracts (#44704) 2026-10-14 06:57:54 +00:00
test_vertex_passthrough_stream_wire.py fix(anthropic): answer an upstream Anthropic 529 as 529 overloaded_error on /v1/messages (#46063) 2026-11-03 17:37:09 -08:00
test_vertex_passthrough_wire.py feat(vertex_ai): let operators drop chosen anthropic-beta values on the Vertex AI pass-through routes (#47185) 2026-10-18 12:51:27 +00:00
test_vertex_realtime_multi_region_host.py
test_vertex_request_label_identity_wire.py feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
test_vertex_timestamps_utc_wire.py
test_voyage_mongodb_host_wire.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_watsonx_passthrough_router_credentials_wire.py fix(watsonx): read pass-through credentials from use_in_pass_through deployments (#49462) 2026-10-31 11:53:25 -07:00
test_xai_batch_output_file_wire.py test(integration): stop GET /__observations from draining the upstream log (#47256) 2026-10-18 09:58:05 +00:00
test_xai_server_tool_usage_wire.py
test_xai_web_search_wire.py
test_xiaomi_mimo_wire.py fix(proxy): keep provider refusal, logprobs and system_fingerprint in chat completions (#44788) 2026-10-13 13:17:40 -07:00