The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(integration): call _fallback_deployment in the count_tokens wire tests #47363 added (#47593)
Kerry Lu5ab0130abcdf
diff --git a/tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py b/tests/integration/providers/test_bedrock_mantle_count_tokens_wire.pyindex 063b0e46479..25f46be4c5d 100644--- a/tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py+++ b/tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py@@ -1683,8 +1683,8 @@ def test_responses_input_tokens_sends_mantle_the_tool_use_invoke_inference_sendswire_server(_mantle(), port=mantle_port) as mantle,gateway.scenario() as scenario,):- counted_model: Final = _deployment(scenario, runtime.url)- invoked_model: Final = _deployment(scenario, runtime.url, f"invoke/{_OPUS}")+ counted_model: Final = _fallback_deployment(scenario, runtime.url)+ invoked_model: Final = _fallback_deployment(scenario, runtime.url, f"invoke/{_OPUS}")generated: Final = gateway.request("POST", "/v1/responses", {**_FORCED_TOOL_CHOICE, "model": invoked_model, "max_output_tokens": 16})@@ -1729,7 +1729,7 @@ def test_nova_count_sends_the_tool_specs_converse_inference_sends(counting_proxypath, body, count_field = _NOVA_COUNTS[route]gateway: Final = counting_proxy.gatewaywith wire_server(_counting_every_model) as runtime, gateway.scenario() as scenario:- model: Final = _deployment(scenario, runtime.url, _NOVA)+ model: Final = _fallback_deployment(scenario, runtime.url, _NOVA)generated: Final = gateway.request("POST","/v1/chat/completions",