Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scrapegraphai/graphs/abstract_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def handle_model(model_name, provider, token_key, default_token=8192):
raise ValueError(f"Model '{llm_params['model']}' is not supported")

try:
if "azure" in llm_params["model"]:
model_name = llm_params["model"].split("/")[-1]
return handle_model(model_name, "azure_openai", model_name)

if "fireworks" in llm_params["model"]:
model_name = "/".join(llm_params["model"].split("/")[1:])
token_key = llm_params["model"].split("/")[-1]
Expand Down Expand Up @@ -271,4 +275,4 @@ def _create_graph(self):
def run(self) -> str:
"""
Abstract method to execute the graph and return the result.
"""
"""