Kackle commited on
Commit
778bba1
·
verified ·
1 Parent(s): 3dfc349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -205,9 +205,13 @@ Instructions:
205
 
206
  Be precise and thorough in your analysis."""
207
 
208
- system_message = "You are an expert at solving complex and trick questions. Always think step by step and be very careful about the exact wording of questions."
 
 
 
 
209
 
210
- result = model([{"role": "system", "content": system_message}, {"role": "user", "content": enhanced_prompt}])
211
 
212
  if result:
213
  # Step 4: Validate the answer
 
205
 
206
  Be precise and thorough in your analysis."""
207
 
208
+ # Fix: Use proper message format for OpenAIServerModel
209
+ messages = [
210
+ {"role": "system", "content": "You are an expert at solving complex and trick questions. Always think step by step and be very careful about the exact wording of questions."},
211
+ {"role": "user", "content": enhanced_prompt}
212
+ ]
213
 
214
+ result = model(messages)
215
 
216
  if result:
217
  # Step 4: Validate the answer