Skip to content

Commit 1fb711a

Browse files
committed
Merge branch 'pre/beta' of https://github.com/ScrapeGraphAI/Scrapegraph-ai into pre/beta
2 parents a3d7f1b + ee30a83 commit 1fb711a

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.11.0-beta.10](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.11.0-beta.9...v1.11.0-beta.10) (2024-08-02)
2+
3+
4+
### Bug Fixes
5+
6+
* **AbstractGraph:** instantiation of Azure GPT models ([ade28fc](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/ade28fca2c3fdf40f28a80854e3b8435a52a6930)), closes [#498](https://github.com/ScrapeGraphAI/Scrapegraph-ai/issues/498)
7+
18
## [1.11.0-beta.9](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.11.0-beta.8...v1.11.0-beta.9) (2024-08-02)
29

310

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "scrapegraphai"
33

4-
version = "1.11.0b9"
4+
version = "1.11.0b10"
55

66
description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
77
authors = [

requirements-dev.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ graphviz==0.20.3
185185
# via scrapegraphai
186186
greenlet==3.0.3
187187
# via playwright
188+
# via sqlalchemy
188189
groq==0.9.0
189190
# via langchain-groq
190191
grpc-google-iam-v1==0.13.1

requirements.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ graphviz==0.20.3
133133
# via scrapegraphai
134134
greenlet==3.0.3
135135
# via playwright
136+
# via sqlalchemy
136137
groq==0.9.0
137138
# via langchain-groq
138139
grpc-google-iam-v1==0.13.1

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ semchunk>=1.0.1
2323
langchain-fireworks>=0.1.3
2424
langchain-community>=0.2.9
2525
langchain-huggingface>=0.0.3
26+
browserbase==0.3.0

scrapegraphai/graphs/abstract_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def handle_model(model_name, provider, token_key, default_token=8192):
146146
llm_params["model"] = model_name
147147
return init_chat_model(**llm_params)
148148

149+
if "azure" in llm_params["model"]:
150+
model_name = llm_params["model"].split("/")[-1]
151+
return handle_model(model_name, "azure_openai", model_name)
152+
149153
if "gpt-" in llm_params["model"]:
150154
return handle_model(llm_params["model"], "openai", llm_params["model"])
151155

@@ -154,10 +158,6 @@ def handle_model(model_name, provider, token_key, default_token=8192):
154158
token_key = llm_params["model"].split("/")[-1]
155159
return handle_model(model_name, "fireworks", token_key)
156160

157-
if "azure" in llm_params["model"]:
158-
model_name = llm_params["model"].split("/")[-1]
159-
return handle_model(model_name, "azure_openai", model_name)
160-
161161
if "gemini" in llm_params["model"]:
162162
model_name = llm_params["model"].split("/")[-1]
163163
return handle_model(model_name, "google_genai", model_name)

0 commit comments

Comments
 (0)