Skip to content

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]

fix: use Union syntax for Python 3.9 compatibility (#17714)

Cesar Garciaa2f51749416b
diff --git a/litellm/llms/sap/embed/transformation.py b/litellm/llms/sap/embed/transformation.py
index 0801a265f70..6a641626a0b 100644
--- a/litellm/llms/sap/embed/transformation.py
+++ b/litellm/llms/sap/embed/transformation.py
@@ -2,6 +2,8 @@
Translates from OpenAI's `/v1/embeddings` to IBM's `/text/embeddings` route.
"""
+from typing import Optional, List, Dict, Literal, Union
+from pydantic import BaseModel, Field
from functools import cached_property
from typing import Dict, List, Literal, Optional, Union