Coool2 commited on
Commit
8f142a7
·
verified ·
1 Parent(s): fc55018

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +6 -4
agent.py CHANGED
@@ -16,13 +16,15 @@ from llama_index.tools.arxiv import ArxivToolSpec
16
  import duckduckgo_search as ddg
17
  import re
18
  from llama_index.core.agent.workflow import ReActAgent
 
19
 
20
- # LLM definitions
21
- multimodal_llm = HuggingFaceInferenceAPI(
22
- model_name="microsoft/Phi-3.5-vision-instruct",
23
- token=os.getenv("HUGGINGFACEHUB_API_TOKEN"),
24
  )
25
 
 
 
26
  # Replace your current text_llm with:
27
  text_llm = HuggingFaceInferenceAPI(
28
  model_name="Qwen/Qwen2.5-72B-Instruct",
 
16
  import duckduckgo_search as ddg
17
  import re
18
  from llama_index.core.agent.workflow import ReActAgent
19
+ from llama_index.llms.gemini import Gemini
20
 
21
+ text_llm = Gemini(
22
+ model="models/gemini-2.5-flash",
23
+ api_key=os.environ.get("GOOGLE_API_KEY")
 
24
  )
25
 
26
+ multimodal_llm = text_llm
27
+
28
  # Replace your current text_llm with:
29
  text_llm = HuggingFaceInferenceAPI(
30
  model_name="Qwen/Qwen2.5-72B-Instruct",