Commit
·
a0dd90c
1
Parent(s):
6c4253b
commit
Browse files- __pycache__/tools_agent.cpython-310.pyc +0 -0
- app.py +4 -3
__pycache__/tools_agent.cpython-310.pyc
CHANGED
Binary files a/__pycache__/tools_agent.cpython-310.pyc and b/__pycache__/tools_agent.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -36,6 +36,7 @@ class BasicAgent:
|
|
36 |
# Load OpenAI token from environment
|
37 |
gemini_api = os.getenv("GEMINI_API")
|
38 |
openai_token = os.getenv("HF_TOKEN")
|
|
|
39 |
|
40 |
if not openai_token:
|
41 |
raise ValueError("Missing OpenAI API token!")
|
@@ -48,9 +49,9 @@ class BasicAgent:
|
|
48 |
# Initialize model and tools
|
49 |
model = OpenAIServerModel(
|
50 |
#api_base="openai",
|
51 |
-
api_key=
|
52 |
-
model_id="
|
53 |
-
api_base="https://
|
54 |
)
|
55 |
search_tool = DuckDuckGoSearchTool()
|
56 |
final_answer_tool = FinalAnswerTool()
|
|
|
36 |
# Load OpenAI token from environment
|
37 |
gemini_api = os.getenv("GEMINI_API")
|
38 |
openai_token = os.getenv("HF_TOKEN")
|
39 |
+
grok_api = os.getenv("GROK_API")
|
40 |
|
41 |
if not openai_token:
|
42 |
raise ValueError("Missing OpenAI API token!")
|
|
|
49 |
# Initialize model and tools
|
50 |
model = OpenAIServerModel(
|
51 |
#api_base="openai",
|
52 |
+
api_key=grok_api,
|
53 |
+
model_id="grok-3",
|
54 |
+
api_base="https://api.x.ai/v1",
|
55 |
)
|
56 |
search_tool = DuckDuckGoSearchTool()
|
57 |
final_answer_tool = FinalAnswerTool()
|