Skip to content

Commit

Permalink
🔧 fixfixfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jun 15, 2024
1 parent 34c1317 commit 249a83d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/funcchain/model/abilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ def gather_llm_type(llm: BaseChatModel, func_check: bool = True) -> str:
if llm.model in model:
return "vision_model"

from langchain_groq import ChatGroq
try:
from langchain_groq import ChatGroq

if isinstance(llm, ChatGroq):
return "json_model"
if isinstance(llm, ChatGroq):
return "json_model"
except ImportError:
pass

return "chat_model"

Expand Down

0 comments on commit 249a83d

Please sign in to comment.