Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
119 |
agent = ToolCallingAgent(
|
120 |
tools=[search_tool, yt_tool],
|
121 |
model=OpenAIServerModel(
|
122 |
-
model_id="gpt-
|
123 |
temperature=0.0,
|
124 |
api_key=os.environ["OPENAI_API_KEY"] # ✅ securely load from environment
|
125 |
),
|
@@ -178,7 +178,6 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
178 |
If the answer is "st. petersberg" answer as "saint petersburg" (without abbreviations)
|
179 |
If the is answer "three" answer as "3".
|
180 |
If the answer is "cuba, panama" answer as "CUB, PAN" (IOC codes)
|
181 |
-
If answer is "yamasaki, uehara" answer "YAMASAKI, UEHARA"
|
182 |
"""
|
183 |
)
|
184 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|
|
|
119 |
agent = ToolCallingAgent(
|
120 |
tools=[search_tool, yt_tool],
|
121 |
model=OpenAIServerModel(
|
122 |
+
model_id="gpt-4.1", # ✅ valid OpenAI model name
|
123 |
temperature=0.0,
|
124 |
api_key=os.environ["OPENAI_API_KEY"] # ✅ securely load from environment
|
125 |
),
|
|
|
178 |
If the answer is "st. petersberg" answer as "saint petersburg" (without abbreviations)
|
179 |
If the is answer "three" answer as "3".
|
180 |
If the answer is "cuba, panama" answer as "CUB, PAN" (IOC codes)
|
|
|
181 |
"""
|
182 |
)
|
183 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|