mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
chore(examples): update provider names to match tokens dictionary
This commit is contained in:
parent
cb6b35397e
commit
ee078cb102
@ -25,7 +25,7 @@ text = pd.read_csv(file_path)
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -25,7 +25,7 @@ text = pd.read_csv(file_path)
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -23,7 +23,7 @@ with open(file_path, 'r', encoding="utf-8") as file:
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -12,7 +12,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -10,7 +10,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -28,7 +28,7 @@ with open(file_path, 'r', encoding="utf-8") as file:
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -15,7 +15,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -16,7 +16,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -22,7 +22,7 @@ with open(file_path, 'r', encoding="utf-8") as file:
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -30,7 +30,7 @@ class Dishes(BaseModel):
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -15,7 +15,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -26,7 +26,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -14,7 +14,7 @@ load_dotenv()
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -28,7 +28,7 @@ class Projects(BaseModel):
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -24,7 +24,7 @@ with open(file_path, 'r', encoding="utf-8") as file:
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -25,7 +25,7 @@ with open(file_path, 'r', encoding="utf-8") as file:
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": os.environ["AZURE_OPENAI_KEY"],
|
||||
"model": "azure/gpt-3.5-turbo",
|
||||
"model": "azure_openai/gpt-3.5-turbo",
|
||||
},
|
||||
"verbose": True,
|
||||
"headless": False
|
||||
|
||||
@ -24,7 +24,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
"temperature": 0,
|
||||
"streaming": True
|
||||
},
|
||||
|
||||
@ -28,7 +28,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
"library": "beautifulsoup"
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
"library": "beautifulsoup"
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
"temperature": 0,
|
||||
"streaming": True
|
||||
},
|
||||
|
||||
@ -29,7 +29,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
"temperature": 0,
|
||||
"streaming": True
|
||||
},
|
||||
|
||||
@ -19,7 +19,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
"library": "beautifoulsoup"
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
"library": "beautifoulsoup"
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
"temperature": 0,
|
||||
"streaming": True
|
||||
},
|
||||
|
||||
@ -32,7 +32,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
# ************************************************
|
||||
|
||||
@ -18,7 +18,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
@ -54,4 +54,3 @@ print(result)
|
||||
|
||||
graph_exec_info = smart_scraper_graph.get_execution_info()
|
||||
print(prettify_exec_info(graph_exec_info))
|
||||
```
|
||||
@ -28,7 +28,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
# ************************************************
|
||||
|
||||
@ -28,7 +28,7 @@ gemini_key = os.getenv("GOOGLE_APIKEY")
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"api_key": gemini_key,
|
||||
"model": "gemini-pro",
|
||||
"model": "google_genai/gemini-pro",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user