Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update abstract_graph.py
Joe Stoneffd6015a507c
diff --git a/scrapegraphai/graphs/abstract_graph.py b/scrapegraphai/graphs/abstract_graph.pyindex 35063263..9370297f 100644--- a/scrapegraphai/graphs/abstract_graph.py+++ b/scrapegraphai/graphs/abstract_graph.py@@ -157,7 +157,7 @@ class AbstractGraph(ABC):raise KeyError("Model not supported") from excreturn Anthropic(llm_params)elif "ollama" in llm_params["model"]:- llm_params["model"] = llm_params["model"].split("/")[-1]+ llm_params["model"] = llm_params["model"].split("ollama/")[-1]# allow user to set model_tokens in configtry:@@ -273,7 +273,7 @@ class AbstractGraph(ABC):elif "azure" in embedder_config["model"]:return AzureOpenAIEmbeddings()elif "ollama" in embedder_config["model"]:- embedder_config["model"] = embedder_config["model"].split("/")[-1]+ embedder_config["model"] = embedder_config["model"].split("ollama/")[-1]try:models_tokens["ollama"][embedder_config["model"]]except KeyError as exc: