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(e2e): use TypeAlias over 3.12 type statements in e2e models
kerry5f3a86aee5d7
diff --git a/tests/e2e/models.py b/tests/e2e/models.pyindex b0ff6fdcd86..b99d2304289 100644--- a/tests/e2e/models.py+++ b/tests/e2e/models.py@@ -8,7 +8,7 @@ from __future__ import annotationsfrom collections.abc import Sequencefrom datetime import datetime-from typing import Final, Literal+from typing import Final, Literal, TypeAliasfrom e2e_http import PartialBodyfrom pydantic import (@@ -203,7 +203,7 @@ class FileObject(BaseModel):class TextContentPart(BaseModel):type: str = "text"text: str- cache_control: "CacheControl | None" = None+ cache_control: CacheControl | None = Noneclass ImageContentPart(BaseModel):@@ -303,7 +303,7 @@ class ChatToolResultTurn(BaseModel):content: str-type ChatTurn = ChatMessage | ChatAssistantTurn | ChatToolResultTurn+ChatTurn: TypeAlias = ChatMessage | ChatAssistantTurn | ChatToolResultTurnclass HostedWebSearchTool(BaseModel):@@ -531,7 +531,7 @@ class AnthropicCustomTool(BaseModel):input_schema: ToolInputSchema-type AnthropicTool = AnthropicToolSearchTool | AnthropicWebSearchTool | AnthropicCustomTool+AnthropicTool: TypeAlias = AnthropicToolSearchTool | AnthropicWebSearchTool | AnthropicCustomToolclass AnthropicContentBlock(BaseModel):@@ -569,7 +569,7 @@ class AnthropicToolResultTurn(BaseModel):content: list[AnthropicToolResultBlock]-type AnthropicMessage = ChatMessage | AnthropicAssistantTurn | AnthropicToolResultTurn+AnthropicMessage: TypeAlias = ChatMessage | AnthropicAssistantTurn | AnthropicToolResultTurnclass AnthropicToolChoice(BaseModel):