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(proxy-extras): use the modern optional annotation in the deploy budget test
mateo-berri3af19cbf6170
diff --git a/tests/proxy_migration_tests/test_prisma_toolchain.py b/tests/proxy_migration_tests/test_prisma_toolchain.pyindex 4c258c4d007..733870f3239 100644--- a/tests/proxy_migration_tests/test_prisma_toolchain.py+++ b/tests/proxy_migration_tests/test_prisma_toolchain.py@@ -22,7 +22,6 @@ import sysimport timefrom collections.abc import Callablefrom pathlib import Path-from typing import Optionalimport pytest@@ -302,7 +301,7 @@ def test_db_push_timeout_hint_names_the_per_command_budget(ids=["raised_command_budget_carries_over", "lowered_command_budget_does_not", "override_wins_upward", "override_wins_downward"],)def test_migrate_deploy_budget_keeps_a_raised_command_budget(- command_timeout: str, deploy_timeout: Optional[str], expected: float, monkeypatch: pytest.MonkeyPatch+ command_timeout: str, deploy_timeout: str | None, expected: float, monkeypatch: pytest.MonkeyPatch) -> None:"""Deployments that raised the per-command budget to survive a long deploy keep that budget for deploy."""monkeypatch.setenv(PRISMA_COMMAND_TIMEOUT_ENV_VAR, command_timeout)