Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,6 @@ class BasicAgent:
|
|
26 |
api_key="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",
|
27 |
base_url="https://models.github.ai/inference",
|
28 |
)
|
29 |
-
if not os.getenv("OPENAI_API_KEY"):
|
30 |
-
raise ValueError("OPENAI_API_KEY environment variable is not set")
|
31 |
print("BasicAgent initialized successfully.")
|
32 |
|
33 |
@retry(
|
@@ -41,7 +39,7 @@ class BasicAgent:
|
|
41 |
messages=[
|
42 |
{
|
43 |
"role": "system",
|
44 |
-
"content": """You are a Expert
|
45 |
Follow these guidelines:
|
46 |
1. Provide clear, concise, and accurate answers
|
47 |
2. If a question requires specific steps or calculations, show them clearly
|
|
|
26 |
api_key="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",
|
27 |
base_url="https://models.github.ai/inference",
|
28 |
)
|
|
|
|
|
29 |
print("BasicAgent initialized successfully.")
|
30 |
|
31 |
@retry(
|
|
|
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
|
45 |
2. If a question requires specific steps or calculations, show them clearly
|