philincloud commited on
Commit
42b8aa6
·
verified ·
1 Parent(s): 58ce78c

Update langgraph_agent.py

Browse files
Files changed (1) hide show
  1. langgraph_agent.py +2 -1
langgraph_agent.py CHANGED
@@ -85,6 +85,7 @@ def arvix_search(query: str) -> dict:
85
  # HF_API_TOKEN is no longer directly needed for describe_image as that tool is removed.
86
  # But keeping InferenceClient initialization for completeness if other HF tools might be added later.
87
  HF_API_TOKEN = os.getenv("HF_API_TOKEN")
 
88
  HF_INFERENCE_CLIENT = None
89
  if HF_API_TOKEN:
90
  HF_INFERENCE_CLIENT = InferenceClient(token=HF_API_TOKEN)
@@ -187,7 +188,7 @@ sys_msg = SystemMessage(content=system_prompt)
187
  def build_graph(provider: str = "gemini"):
188
  if provider == "gemini":
189
  llm = ChatGoogleGenerativeAI(
190
- model="gemini-2.5-pro-preview-05-06",
191
  temperature=1.0,
192
  max_retries=2,
193
  api_key=GEMINI_API_KEY,
 
85
  # HF_API_TOKEN is no longer directly needed for describe_image as that tool is removed.
86
  # But keeping InferenceClient initialization for completeness if other HF tools might be added later.
87
  HF_API_TOKEN = os.getenv("HF_API_TOKEN")
88
+ MODEL = os.getenv("MODEL")
89
  HF_INFERENCE_CLIENT = None
90
  if HF_API_TOKEN:
91
  HF_INFERENCE_CLIENT = InferenceClient(token=HF_API_TOKEN)
 
188
  def build_graph(provider: str = "gemini"):
189
  if provider == "gemini":
190
  llm = ChatGoogleGenerativeAI(
191
+ model=MODEL,
192
  temperature=1.0,
193
  max_retries=2,
194
  api_key=GEMINI_API_KEY,