supratipb commited on
Commit
bc4dd96
Β·
verified Β·
1 Parent(s): f5f36e3

Upload agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -153,7 +153,7 @@ tools = [
153
  ]
154
 
155
  # Build graph function
156
- def build_graph(provider: str = "huggingface"):
157
  """Build the graph"""
158
  # Load environment variables from .env file
159
  if provider == "google":
@@ -161,7 +161,7 @@ def build_graph(provider: str = "huggingface"):
161
  llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
162
  elif provider == "groq":
163
  # Groq https://console.groq.com/docs/models
164
- llm = ChatGroq(model="qwen-qwq-32b", temperature=0) # optional : qwen-qwq-32b gemma2-9b-it
165
  elif provider == "huggingface":
166
  # TODO: Add huggingface endpoint
167
  llm = ChatHuggingFace(
 
153
  ]
154
 
155
  # Build graph function
156
+ def build_graph(provider: str = "groq"):
157
  """Build the graph"""
158
  # Load environment variables from .env file
159
  if provider == "google":
 
161
  llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
162
  elif provider == "groq":
163
  # Groq https://console.groq.com/docs/models
164
+ llm = ChatGroq(model="qwen-qwq-32b", temperature=0, api_key=os.getenv("GROQ_API_KEY")) # optional : qwen-qwq-32b gemma2-9b-it
165
  elif provider == "huggingface":
166
  # TODO: Add huggingface endpoint
167
  llm = ChatHuggingFace(