Merge pull request #39185 from BerriAI/litellm_fix_embedding_encoding_format_suite_break

test: exempt MockTransport request-shape embedding tests from VCR replay
This commit is contained in:
Mateo Wang 2026-09-01 13:52:51 -07:00 committed by GitHub
commit 2c5f429ad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View file

@ -44,7 +44,11 @@ _VCR_AUTO_MARKER_SKIP_FILES = frozenset(
{"test_vcr_redis_persister.py", "test_ws_vcr.py"}
)
_VCR_INCOMPATIBLE_NODEID_SUFFIXES: tuple[str, ...] = ()
_VCR_INCOMPATIBLE_NODEID_SUFFIXES: tuple[str, ...] = (
"test_nvidia_nim.py::test_embedding_nvidia_nim",
"test_litellm_proxy_provider.py::test_litellm_gateway_from_sdk_embedding[False]",
"test_litellm_proxy_provider.py::test_litellm_gateway_from_sdk_embedding[True]",
)
_verbose_state = VerboseReporterState()

View file

@ -90,6 +90,7 @@ _VCR_INCOMPATIBLE_FILES = frozenset(
# carry no real provider cost.
_VCR_INCOMPATIBLE_NODEID_SUFFIXES: tuple[str, ...] = (
"test_router.py::test_router_text_completion_client",
"test_embedding.py::test_encoding_format_omitted_by_default_for_openai_sdk",
)

View file

@ -155,6 +155,11 @@ def test_default_api_base():
continue
elif provider == "github" and other_provider.value == "azure":
continue
elif (
provider in ("qwencloud", "qwen_ai_platform")
and other_provider.value == "dashscope"
):
continue
assert other_provider.value not in api_base.replace("/openai", "")