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
fix: test_databricks_embeddings[True]
Sameer Kankute8aff258a93ab
diff --git a/tests/llm_translation/test_databricks.py b/tests/llm_translation/test_databricks.pyindex 40fc712f2b7..3013d00288f 100644--- a/tests/llm_translation/test_databricks.py+++ b/tests/llm_translation/test_databricks.py@@ -15,6 +15,7 @@ import litellmfrom litellm.exceptions import BadRequestErrorfrom litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandlerfrom litellm.utils import CustomStreamWrapper+from litellm._version import versionfrom base_llm_unit_tests import BaseLLMChatTest, BaseAnthropicChatTesttry:@@ -725,6 +726,7 @@ def test_embeddings_with_sync_http_handler(monkeypatch):headers={"Authorization": f"Bearer {api_key}","Content-Type": "application/json",+ "User-Agent": f"litellm/{version}",},data=json.dumps({@@ -767,6 +769,7 @@ def test_embeddings_with_async_http_handler(monkeypatch):headers={"Authorization": f"Bearer {api_key}","Content-Type": "application/json",+ "User-Agent": f"litellm/{version}",},data=json.dumps({@@ -823,6 +826,7 @@ def test_embeddings_uses_databricks_sdk_if_api_key_and_base_not_specified(monkeyheaders={"Authorization": f"Bearer {api_key}","Content-Type": "application/json",+ "User-Agent": f"litellm/{version}",},data=json.dumps({@@ -895,6 +899,7 @@ async def test_databricks_embeddings(sync_mode, monkeypatch):headers={"Authorization": f"Bearer {api_key}","Content-Type": "application/json",+ "User-Agent": f"litellm/{version}",},data=json.dumps({@@ -923,6 +928,7 @@ async def test_databricks_embeddings(sync_mode, monkeypatch):headers={"Authorization": f"Bearer {api_key}","Content-Type": "application/json",+ "User-Agent": f"litellm/{version}",},data=json.dumps({