Skip to content

Commit

Permalink
updated ValueError statement for gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Nov 15, 2024
1 parent 8412c5b commit 2917db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defog_utils/utils_multi_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def map_model_to_chat_fn_async(model: str) -> Callable:
if model.startswith("claude"):
return chat_anthropic_async
if model.startswith("gemini"):
return ValueError("Gemini does not support async chat")
raise ValueError("Gemini does not support async chat")
if model.startswith("gpt") or model in ["o1", "o1-mini", "o1-preview"]:
return chat_openai_async
if (
Expand Down

0 comments on commit 2917db8

Please sign in to comment.