ArielShadrac commited on
Commit
688c808
·
1 Parent(s): 8c145de

Switch to Groq llama-3.1-8b-instant via LiteLLM

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = LiteLLMModel(
71
- model_id="groq/llama-3.1-8b-instant",
72
- api_key=os.getenv("HF"),
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,