Skip to content

Commit 93342b4

Browse files
committed
Merge branch 'pre/beta' of https://github.com/VinciGit00/Scrapegraph-ai into pre/beta
2 parents 6a753f2 + 7f3b907 commit 93342b4

File tree

4 files changed

+50
-48
lines changed

4 files changed

+50
-48
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
## [1.7.0-beta.9](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.8...v1.7.0-beta.9) (2024-06-16)
1+
## [1.7.0-beta.10](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.9...v1.7.0-beta.10) (2024-06-17)
22

33

44
### Bug Fixes
55

6+
* removed duplicate from ollama dictionary ([dcd216e](https://github.com/VinciGit00/Scrapegraph-ai/commit/dcd216e3457bdbbbc7b8dc27783866b748e322fa))
7+
8+
9+
### CI
10+
11+
* **release:** 1.6.1 [skip ci] ([44fbd71](https://github.com/VinciGit00/Scrapegraph-ai/commit/44fbd71742a57a4b10f22ed33781bb67aa77e58d))
12+
13+
## [1.6.1](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.6.0...v1.6.1) (2024-06-15)
14+
=======
15+
16+
17+
### Bug Fixes
18+
19+
* removed duplicate from ollama dictionary ([dcd216e](https://github.com/VinciGit00/Scrapegraph-ai/commit/dcd216e3457bdbbbc7b8dc27783866b748e322fa))
20+
21+
## [1.6.0](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.5.7...v1.6.0) (2024-06-09)
622
* fix robot node ([2419003](https://github.com/VinciGit00/Scrapegraph-ai/commit/24190039996b9cbe04952f6734d996e0cdb15296))
723

824
## [1.7.0-beta.8](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.7...v1.7.0-beta.8) (2024-06-16)

pyproject.toml

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

44

5-
version = "1.7.0b9"
5+
version = "1.7.0b10"
66

77

88

scrapegraphai/graphs/abstract_graph.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ def _create_default_embedder(self, llm_config=None) -> object:
275275
google_api_key=llm_config["api_key"], model="models/embedding-001"
276276
)
277277
if isinstance(self.llm_model, OpenAI):
278-
return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key)
278+
return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key, base_url=self.llm_model.openai_api_base)
279+
elif isinstance(self.llm_model, DeepSeek):
280+
return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key)
281+
279282
elif isinstance(self.llm_model, AzureOpenAIEmbeddings):
280283
return self.llm_model
281284
elif isinstance(self.llm_model, AzureOpenAI):
@@ -393,4 +396,4 @@ def run(self) -> str:
393396
"""
394397
Abstract method to execute the graph and return the result.
395398
"""
396-
pass
399+
pass

scrapegraphai/helpers/models_tokens.py

Lines changed: 27 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -35,50 +35,33 @@
3535
"gemini-1.5-pro-latest":128000,
3636
"models/embedding-001": 2048
3737
},
38-
39-
"ollama": {
40-
"command-r": 12800,
41-
"command-r-plus": 12800,
42-
"codellama": 16000,
43-
"dbrx": 32768,
44-
"dbrx:instruct": 32768,
45-
"deepseek-coder:33b": 16000,
46-
"dolphin-mixtral": 32000,
47-
"llama2": 4096,
48-
"llama3": 8192,
49-
"llama3:70b-instruct": 8192,
50-
"llava": 4096,
51-
"llava:34b": 4096,
52-
"llava_next": 4096,
53-
"mistral": 8192,
54-
"falcon": 2048,
55-
"codellama": 16000,
56-
"dolphin-mixtral": 32000,
57-
"mistral-openorca": 32000,
58-
"stablelm-zephyr": 8192,
59-
"command-r-plus": 12800,
60-
"command-r": 12800,
61-
"mistral:7b-instruct": 32768,
62-
"mistral-openorca": 32000,
63-
"mixtral:8x22b-instruct": 65536,
64-
"nous-hermes2:34b": 4096,
65-
"orca-mini": 2048,
66-
"phi3:3.8b": 12800,
67-
"phi3:14b": 12800,
68-
"qwen:0.5b": 32000,
69-
"qwen:1.8b": 32000,
70-
"qwen:4b": 32000,
71-
"qwen:14b": 32000,
72-
"qwen:32b": 32000,
73-
"qwen:72b": 32000,
74-
"qwen:110b": 32000,
75-
"stablelm-zephyr": 8192,
76-
"wizardlm2:8x22b": 65536,
77-
# embedding models
78-
"nomic-embed-text": 8192,
79-
"snowflake-arctic-embed:335m": 8192,
80-
"snowflake-arctic-embed:l": 8192,
81-
"mxbai-embed-large": 512,
38+
"ollama": { "command-r": 12800,
39+
"codellama": 16000,
40+
"dbrx": 32768,
41+
"deepseek-coder:33b": 16000,
42+
"falcon": 2048,
43+
"llama2": 4096,
44+
"llama3": 8192,
45+
"scrapegraph": 8192,
46+
"llava": 4096,
47+
"mixtral:8x22b-instruct": 65536,
48+
"mistral-openorca": 32000,
49+
"nomic-embed-text": 8192,
50+
"nous-hermes2:34b": 4096,
51+
"orca-mini": 2048,
52+
"phi3:3.8b": 12800,
53+
"qwen:0.5b": 32000,
54+
"qwen:1.8b": 32000,
55+
"qwen:4b": 32000,
56+
"qwen:14b": 32000,
57+
"qwen:32b": 32000,
58+
"qwen:72b": 32000,
59+
"qwen:110b": 32000,
60+
"stablelm-zephyr": 8192,
61+
"wizardlm2:8x22b": 65536,
62+
# embedding models
63+
"snowflake-arctic-embed": 8192,
64+
"mxbai-embed-large": 512
8265
},
8366
"oneapi": {
8467
"qwen-turbo": 6000

0 commit comments

Comments
 (0)