feat: add mistral support

This commit is contained in:
Federico Aguzzi 2024-08-06 17:51:50 +02:00
parent 9868555123
commit 17f2707313

View File

@ -188,6 +188,10 @@ class AbstractGraph(ABC):
if "claude-3-" in llm_params["model"]:
return handle_model(llm_params["model"], "anthropic", "claude3")
if llm_params["model"].startswith("mistral"):
model_name = llm_params["model"].split("/")[-1]
return handle_model(model_name, "mistral", model_name)
# Instantiate the language model based on the model name (models that do not use the common interface)
if "deepseek" in llm_params["model"]: