@@ -98,12 +98,6 @@ def test_lmstudio_direct(model_no_model_name):
9898 assert isinstance (result , str )
9999
100100
101- @pytest .mark .api_call
102- def test_lmstudio_call (model ):
103- result = model ("Respond with one word. Not more." )
104- assert isinstance (result , str )
105-
106-
107101@pytest .mark .api_call
108102def test_lmstudio_simple_vision (image , model ):
109103 # This is not using a vision model, so it's not able to describe
@@ -116,7 +110,7 @@ def test_lmstudio_simple_vision(image, model):
116110
117111
118112@pytest .mark .api_call
119- def test_lmstudio_chat_with_image (image , model ):
113+ def test_lmstudio_chat (image , model ):
120114 result = model .generate (
121115 Chat (
122116 [
@@ -132,16 +126,6 @@ def test_lmstudio_chat_with_image(image, model):
132126 assert isinstance (result , str )
133127
134128
135- @pytest .mark .api_call
136- def test_lmstudio_chat (model ):
137- chat = Chat (messages = [
138- {"role" : "system" , "content" : "You are a helpful assistant." },
139- {"role" : "user" , "content" : "Say hello." },
140- ])
141- result = model .generate (chat , None )
142- assert isinstance (result , str )
143-
144-
145129@pytest .mark .api_call
146130def test_lmstudio_json (model ):
147131 class Foo (BaseModel ):
@@ -238,13 +222,6 @@ async def test_lmstudio_async_direct(async_model_no_model_name):
238222 assert isinstance (result , str )
239223
240224
241- @pytest .mark .api_call
242- @pytest .mark .asyncio
243- async def test_lmstudio_async_call (async_model ):
244- result = await async_model ("Respond with one word. Not more." )
245- assert isinstance (result , str )
246-
247-
248225@pytest .mark .api_call
249226@pytest .mark .asyncio
250227async def test_lmstudio_async_simple_vision (image , async_model ):
@@ -259,7 +236,7 @@ async def test_lmstudio_async_simple_vision(image, async_model):
259236
260237@pytest .mark .api_call
261238@pytest .mark .asyncio
262- async def test_lmstudio_async_chat_with_image (image , async_model ):
239+ async def test_lmstudio_async_chat (image , async_model ):
263240 result = await async_model .generate (
264241 Chat (
265242 [
@@ -275,17 +252,6 @@ async def test_lmstudio_async_chat_with_image(image, async_model):
275252 assert isinstance (result , str )
276253
277254
278- @pytest .mark .api_call
279- @pytest .mark .asyncio
280- async def test_lmstudio_async_chat (async_model ):
281- chat = Chat (messages = [
282- {"role" : "system" , "content" : "You are a helpful assistant." },
283- {"role" : "user" , "content" : "Say hello." },
284- ])
285- result = await async_model .generate (chat , None )
286- assert isinstance (result , str )
287-
288-
289255@pytest .mark .api_call
290256@pytest .mark .asyncio
291257async def test_lmstudio_async_json (async_model ):
0 commit comments