Update app.py
Browse files
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/
|
| 17 |
|
| 18 |
|
| 19 |
# --- Basic Agent Definition ---
|
|
@@ -38,7 +38,7 @@ class BasicAgent:
|
|
| 38 |
model=OPENAI_MODEL,
|
| 39 |
messages=[
|
| 40 |
{
|
| 41 |
-
"role": "
|
| 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:
|