Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -154,13 +154,13 @@ tools = [
|
|
| 154 |
def build_graph(provider: str = "groq"):
|
| 155 |
"""Build the graph"""
|
| 156 |
# Load environment variables from .env file
|
| 157 |
-
if provider == "google":
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
elif provider == "groq":
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
llm = ChatOpenAI(model="gpt-4",temperature=0)
|
| 165 |
elif provider == "huggingface":
|
| 166 |
# TODO: Add huggingface endpoint
|
|
|
|
| 154 |
def build_graph(provider: str = "groq"):
|
| 155 |
"""Build the graph"""
|
| 156 |
# Load environment variables from .env file
|
| 157 |
+
# if provider == "google":
|
| 158 |
+
# # Google Gemini
|
| 159 |
+
# llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
|
| 160 |
+
# elif provider == "groq":
|
| 161 |
+
# # Groq https://console.groq.com/docs/models
|
| 162 |
+
# llm = ChatGroq(model="qwen-qwq-32b", temperature=0) # optional : qwen-qwq-32b gemma2-9b-it
|
| 163 |
+
if provider == "openai":
|
| 164 |
llm = ChatOpenAI(model="gpt-4",temperature=0)
|
| 165 |
elif provider == "huggingface":
|
| 166 |
# TODO: Add huggingface endpoint
|