Skip to content

Commit

Permalink
make connection test more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Oct 23, 2024
1 parent bc56430 commit e8ff6c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alphastats/gui/utils/llm_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def llm_connection_test(
llm = LLMIntegration(
model_name, base_url=base_url, api_key=api_key, load_tools=False
)
llm.chat_completion("Hello there!")
llm.chat_completion(
"This is a test. Simply respond 'yes' if you got this message."
)
return None

except Exception as e:
Expand Down

0 comments on commit e8ff6c2

Please sign in to comment.