mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
test(vertex_ai): read the bundled beta header config in the prompt caching scope test
The test read whatever config the previous test left loaded. The local_beta_headers_config fixture reloads from the hosted file on main at teardown, and since #49409 that file lets vertex_ai send prompt-caching-scope-2026-01-05 as a header, which this line's bundled config does not.
This commit is contained in:
parent
d55668e253
commit
9eedf608e7
1 changed files with 1 additions and 1 deletions
|
|
@ -640,7 +640,7 @@ async def test_vertex_ai_anthropic_prompt_caching_does_not_add_beta_header(
|
|||
assert "anthropic_beta" not in json.loads(request.content)
|
||||
|
||||
|
||||
def test_vertex_ai_partner_models_anthropic_remove_prompt_caching_scope_beta_header():
|
||||
def test_vertex_ai_partner_models_anthropic_remove_prompt_caching_scope_beta_header(local_beta_headers_config: None) -> None:
|
||||
"""
|
||||
Test that remove_unsupported_beta correctly filters out prompt-caching-scope-2026-01-05
|
||||
from the anthropic-beta headers.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue