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_lm_studio_completion

Ishaan Jaffbc835c6044e0
diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.py
index 98cc93ce394..ee2245376b9 100644
--- a/tests/local_testing/test_completion.py
+++ b/tests/local_testing/test_completion.py
@@ -1560,12 +1560,13 @@ async def test_openai_compatible_custom_api_video(provider):
mock_call.assert_called_once()
-
def test_lm_studio_completion(monkeypatch):
monkeypatch.delenv("LM_STUDIO_API_KEY", raising=False)
monkeypatch.delenv("OPENAI_API_KEY", raising=False)
+ litellm._turn_on_debug()
try:
completion(
+ api_key="fake-key",
model="lm_studio/typhoon2-quen2.5-7b-instruct",
messages=[
{"role": "user", "content": "What's the weather like in San Francisco?"}
@@ -1577,7 +1578,6 @@ def test_lm_studio_completion(monkeypatch):
except litellm.APIError as e:
print(e)
-
# ################### Hugging Face Conversational models ########################
# def hf_test_completion_conv():
# try: