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: update test with new kwargs

Krrish Dholakiae46ef9d6429f
diff --git a/tests/local_testing/test_custom_llm.py b/tests/local_testing/test_custom_llm.py
index 77f4544afa1..61312f4e52f 100644
--- a/tests/local_testing/test_custom_llm.py
+++ b/tests/local_testing/test_custom_llm.py
@@ -265,8 +265,10 @@ class MyCustomLLM(CustomLLM):
print_verbose: Callable,
logging_obj: Any,
optional_params: dict,
+ api_key: Optional[str] = None,
+ api_base: Optional[str] = None,
+ timeout: Optional[Union[float, httpx.Timeout]] = None,
litellm_params=None,
- aembedding=None,
) -> EmbeddingResponse:
model_response.model = model
@@ -289,6 +291,9 @@ class MyCustomLLM(CustomLLM):
print_verbose: Callable,
logging_obj: Any,
optional_params: dict,
+ api_key: Optional[str] = None,
+ api_base: Optional[str] = None,
+ timeout: Optional[Union[float, httpx.Timeout]] = None,
litellm_params=None,
) -> EmbeddingResponse:
model_response.model = model