Skip to content

Commit 64c7a9b

Browse files
authored
Add test for ClientLangChain with empty base URL
Test that empty ollama_base_url is handled correctly.
1 parent 1c7faf4 commit 64c7a9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_chat_clients.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ def test_empty_base_url_parameters(self):
209209

210210
with patch('ps_fuzz.chat_clients.chat_models_info', test_chat_models_info):
211211
# Create client with empty ollama_base_url
212-
212+
client = ClientLangChain(
213+
backend='ollama',
214+
model='llama2',
215+
temperature=0.7,
216+
ollama_base_url=''
217+
)
218+
213219
# Verify empty base URL parameters are passed through unchanged
214220
# (implementation only processes truthy values)
215221
call_args = mock_model_cls.call_args

0 commit comments

Comments
 (0)