mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* test: remove 130 legacy tests owned by stronger unit proofs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: list router _embedding and _aembedding as covered via public embedding calls Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: yuneng <yuneng@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
30 lines
889 B
Python
30 lines
889 B
Python
"""
|
|
Tests for LiteLLM Responses bridge provider.
|
|
|
|
Inherits from BaseInteractionsTest to run the same test suite against
|
|
the litellm_responses bridge provider, which calls litellm.responses() internally.
|
|
"""
|
|
|
|
import os
|
|
|
|
from tests.unified_google_tests.base_interactions_test import (
|
|
BaseInteractionsTest,
|
|
)
|
|
|
|
|
|
class TestLiteLLMResponsesBridge(BaseInteractionsTest):
|
|
"""Test LiteLLM Responses bridge using the base test suite."""
|
|
|
|
test_create_streaming = None
|
|
|
|
def get_model(self) -> str:
|
|
"""Return the model string for the bridge provider.
|
|
|
|
The bridge provider uses litellm.responses() internally, so we can
|
|
use any model that litellm.responses() supports (e.g., gpt-5.5).
|
|
"""
|
|
return "gpt-5.5"
|
|
|
|
def get_api_key(self) -> str:
|
|
"""Return the OpenAI API key from environment."""
|
|
return os.getenv("OPENAI_API_KEY", "")
|