Skip to content

Commit 4dea972

Browse files
authored
Merge pull request #583 from ScrapeGraphAI/anthropic-refactoring
Anthropic refactoring
2 parents 132ee5b + 9df4b14 commit 4dea972

19 files changed

+28
-23
lines changed

examples/anthropic/csv_scraper_haiku.py renamed to examples/anthropic/csv_scraper_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
graph_config = {
3333
"llm": {
3434
"api_key": os.getenv("ANTHROPIC_API_KEY"),
35-
"model": "claude-3-haiku-20240307",
35+
"model": "anthropic/claude-3-haiku-20240307",
3636
"max_tokens": 4000
3737
},
3838
}

examples/anthropic/csv_scraper_graph_multi_haiku.py renamed to examples/anthropic/csv_scraper_graph_multi_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
graph_config = {
2727
"llm": {
2828
"api_key": os.getenv("ANTHROPIC_API_KEY"),
29-
"model": "claude-3-haiku-20240307",
29+
"model": "anthropic/claude-3-haiku-20240307",
3030
"max_tokens": 4000},
3131
}
3232

examples/anthropic/custom_graph_haiku.py renamed to examples/anthropic/custom_graph_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
graph_config = {
1919
"llm": {
2020
"api_key": os.getenv("ANTHROPIC_API_KEY"),
21-
"model": "claude-3-haiku-20240307",
21+
"model": "anthropic/claude-3-haiku-20240307",
2222
"max_tokens": 4000
2323
},
2424
}

examples/anthropic/json_scraper_haiku.py renamed to examples/anthropic/json_scraper_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
graph_config = {
2727
"llm": {
2828
"api_key": os.getenv("ANTHROPIC_API_KEY"),
29-
"model": "claude-3-haiku-20240307",
29+
"model": "anthropic/claude-3-haiku-20240307",
3030
"max_tokens": 4000
3131
},
3232
}

examples/anthropic/json_scraper_multi_haiku.py renamed to examples/anthropic/json_scraper_multi_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
graph_config = {
1212
"llm": {
1313
"api_key": os.getenv("ANTHROPIC_API_KEY"),
14-
"model": "claude-3-haiku-20240307",
14+
"model": "anthropic/claude-3-haiku-20240307",
1515
"max_tokens": 4000
1616
},
1717
}

examples/anthropic/pdf_scraper_graph_haiku.py renamed to examples/anthropic/pdf_scraper_graph_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
graph_config = {
1515
"llm": {
1616
"api_key": os.getenv("ANTHROPIC_API_KEY"),
17-
"model": "claude-3-haiku-20240307",
17+
"model": "anthropic/claude-3-haiku-20240307",
1818
"max_tokens": 4000
1919
},
2020
}

examples/anthropic/pdf_scraper_multi_haiku.py renamed to examples/anthropic/pdf_scraper_multi_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
graph_config = {
1212
"llm": {
1313
"api_key": os.getenv("ANTHROPIC_API_KEY"),
14-
"model": "claude-3-haiku-20240307",
14+
"model": "anthropic/claude-3-haiku-20240307",
1515
"max_tokens": 4000
1616
},
1717
}

examples/anthropic/scrape_plain_text_haiku.py renamed to examples/anthropic/scrape_plain_text_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
graph_config = {
2929
"llm": {
3030
"api_key": os.getenv("ANTHROPIC_API_KEY"),
31-
"model": "claude-3-haiku-20240307",
31+
"model": "anthropic/claude-3-haiku-20240307",
3232
"max_tokens": 4000
3333
},
3434
}

examples/anthropic/script_generator_haiku.py renamed to examples/anthropic/script_generator_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
graph_config = {
1717
"llm": {
1818
"api_key": os.getenv("ANTHROPIC_API_KEY"),
19-
"model": "claude-3-haiku-20240307",
19+
"model": "anthropic/claude-3-haiku-20240307",
2020
"max_tokens": 4000
2121
},
2222
}

examples/anthropic/script_multi_generator_haiku.py renamed to examples/anthropic/script_multi_generator_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
graph_config = {
1717
"llm": {
1818
"api_key": os.getenv("ANTHROPIC_API_KEY"),
19-
"model": "claude-3-haiku-20240307",
19+
"model": "anthropic/claude-3-haiku-20240307",
2020
"max_tokens": 4000
2121
},
2222
"library": "beautifulsoup"

0 commit comments

Comments
 (0)