Commit ·
688c808
1
Parent(s): 8c145de
Switch to Groq llama-3.1-8b-instant via LiteLLM
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ from smolagents import (
|
|
| 8 |
DuckDuckGoSearchTool,
|
| 9 |
InferenceClientModel,
|
| 10 |
tool,
|
|
|
|
| 11 |
)
|
| 12 |
|
| 13 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
@@ -67,11 +68,10 @@ CRITICAL RULES:
|
|
| 67 |
"""
|
| 68 |
|
| 69 |
def build_agent():
|
| 70 |
-
model =
|
| 71 |
-
model_id="
|
| 72 |
-
|
| 73 |
max_tokens=1024,
|
| 74 |
-
temperature=0.1,
|
| 75 |
)
|
| 76 |
agent = CodeAgent(
|
| 77 |
model=model,
|
|
|
|
| 8 |
DuckDuckGoSearchTool,
|
| 9 |
InferenceClientModel,
|
| 10 |
tool,
|
| 11 |
+
LiteLLMModel,
|
| 12 |
)
|
| 13 |
|
| 14 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 68 |
"""
|
| 69 |
|
| 70 |
def build_agent():
|
| 71 |
+
model = InferenceClientModel(
|
| 72 |
+
model_id="meta-llama/Llama-3.1-8B-Instruct",
|
| 73 |
+
token=os.getenv("HF"),
|
| 74 |
max_tokens=1024,
|
|
|
|
| 75 |
)
|
| 76 |
agent = CodeAgent(
|
| 77 |
model=model,
|