Update agent.py
Browse files
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 |
-
|
21 |
-
|
22 |
-
|
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",
|