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]

test(rust-bridge): relocate dispatch tests before routing changes (#46926)

yujongleea1c9fa951a58
diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml
index f8a7c38ef79..636a5031e5f 100644
--- a/.github/workflows/test-rust.yml
+++ b/.github/workflows/test-rust.yml
@@ -16,6 +16,10 @@ on:
- "litellm/proxy/guardrails/**"
- "litellm/utils.py"
- "litellm/ocr/**"
+ - "litellm/chat_completions/dispatch.py"
+ - "litellm/embeddings/dispatch.py"
+ - "litellm/messages/dispatch.py"
+ - "litellm/responses/dispatch.py"
- "litellm/llms/base_llm/ocr/**"
- "litellm/llms/custom_httpx/llm_http_handler.py"
- "Makefile"
@@ -46,6 +50,10 @@ on:
- "litellm/proxy/guardrails/**"
- "litellm/utils.py"
- "litellm/ocr/**"
+ - "litellm/chat_completions/dispatch.py"
+ - "litellm/embeddings/dispatch.py"
+ - "litellm/messages/dispatch.py"
+ - "litellm/responses/dispatch.py"
- "litellm/llms/base_llm/ocr/**"
- "litellm/llms/custom_httpx/llm_http_handler.py"
- "Makefile"
diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml
index 0558875bdad..1b486d78f04 100644
--- a/.github/workflows/test-unit.yml
+++ b/.github/workflows/test-unit.yml
@@ -696,7 +696,6 @@ jobs:
tests/unit/responses/litellm_completion_transformation
tests/unit/responses/test_additional_tools.py
tests/unit/responses/test_custom_tool_call.py
- tests/unit/responses/test_dispatch.py
tests/unit/responses/test_metadata_codex_callback.py
tests/unit/responses/test_no_duplicate_spend_logs.py
tests/unit/responses/test_null_test_fix.py
diff --git a/tests/unit/chat_completions/test_dispatch.py b/tests/test_litellm_rust/chat_completions/test_dispatch.py
similarity index 100%
rename from tests/unit/chat_completions/test_dispatch.py
rename to tests/test_litellm_rust/chat_completions/test_dispatch.py
diff --git a/tests/unit/chat_completions/__init__.py b/tests/test_litellm_rust/embeddings/__init__.py
similarity index 100%
rename from tests/unit/chat_completions/__init__.py
rename to tests/test_litellm_rust/embeddings/__init__.py
diff --git a/tests/unit/embeddings/test_dispatch.py b/tests/test_litellm_rust/embeddings/test_dispatch.py
similarity index 100%
rename from tests/unit/embeddings/test_dispatch.py
rename to tests/test_litellm_rust/embeddings/test_dispatch.py
diff --git a/tests/unit/messages/test_dispatch.py b/tests/test_litellm_rust/messages/test_dispatch.py
similarity index 100%
rename from tests/unit/messages/test_dispatch.py
rename to tests/test_litellm_rust/messages/test_dispatch.py
diff --git a/tests/unit/ocr/test_dispatch.py b/tests/test_litellm_rust/ocr/test_public_dispatch.py
similarity index 100%
rename from tests/unit/ocr/test_dispatch.py
rename to tests/test_litellm_rust/ocr/test_public_dispatch.py
diff --git a/tests/unit/responses/test_dispatch.py b/tests/test_litellm_rust/responses/test_dispatch.py
similarity index 100%
rename from tests/unit/responses/test_dispatch.py
rename to tests/test_litellm_rust/responses/test_dispatch.py
diff --git a/tests/unit/rust_bridge/test_dispatch.py b/tests/test_litellm_rust/test_dispatch.py
similarity index 100%
rename from tests/unit/rust_bridge/test_dispatch.py
rename to tests/test_litellm_rust/test_dispatch.py
diff --git a/tests/unit/embeddings/__init__.py b/tests/unit/embeddings/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/unit/messages/__init__.py b/tests/unit/messages/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000