MrArray22 commited on
Commit
0575916
·
verified ·
1 Parent(s): 6dfcc3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,7 +13,7 @@ load_dotenv()
13
  # (Keep Constants as is)
14
  # --- Constants ---
15
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
16
- OPENAI_MODEL = "openai/gpt-4.1" # or "gpt-3.5-turbo" based on your preference
17
 
18
 
19
  # --- Basic Agent Definition ---
@@ -38,7 +38,7 @@ class BasicAgent:
38
  model=OPENAI_MODEL,
39
  messages=[
40
  {
41
- "role": "system",
42
  "content": """You are a Expert AI assistant designed to answer questions from the GAIA benchmark dataset.
43
  Follow these guidelines:
44
  1. Provide clear, concise, and accurate answers
@@ -50,8 +50,8 @@ class BasicAgent:
50
  },
51
  {"role": "user", "content": prompt},
52
  ],
53
- temperature=0.5, # Lower temperature for more consistent outputs
54
- max_tokens=1000,
55
  )
56
  return response.choices[0].message.content.strip()
57
  except Exception as e:
 
13
  # (Keep Constants as is)
14
  # --- Constants ---
15
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
16
+ OPENAI_MODEL = "openai/o3-mini" # or "gpt-3.5-turbo" based on your preference
17
 
18
 
19
  # --- Basic Agent Definition ---
 
38
  model=OPENAI_MODEL,
39
  messages=[
40
  {
41
+ "role": "developer",
42
  "content": """You are a Expert AI assistant designed to answer questions from the GAIA benchmark dataset.
43
  Follow these guidelines:
44
  1. Provide clear, concise, and accurate answers
 
50
  },
51
  {"role": "user", "content": prompt},
52
  ],
53
+ # temperature=0.5, # Lower temperature for more consistent outputs
54
+ # max_tokens=1000,
55
  )
56
  return response.choices[0].message.content.strip()
57
  except Exception as e: