Skip to content

Python scraper based on AI

add models avaiables

VinciGit00992e7f862fee
diff --git a/scrapegraphai/graphs/abstract_graph.py b/scrapegraphai/graphs/abstract_graph.py
index 4014aae4..f08b0f33 100644
--- a/scrapegraphai/graphs/abstract_graph.py
+++ b/scrapegraphai/graphs/abstract_graph.py
@@ -59,7 +59,14 @@ class AbstractGraph(ABC):
return Gemini(llm_params)
elif "ollama" in llm_params["model"]:
- # take the model after the last dash
+ """
+ Avaiable models:
+ - llama2
+ - mistral
+ - codellama
+ - dolphin-mixtral
+ - mistral-openorca
+ """
llm_params["model"] = llm_params["model"].split("/")[-1]
try:
self.model_token = models_tokens["ollama"][llm_params["model"]]