jjz5463 commited on
Commit
56e14a4
1 Parent(s): bae7d1e

fix error: Invalid type for messages[0]

Browse files
Files changed (1) hide show
  1. chatbot_simulator.py +1 -1
chatbot_simulator.py CHANGED
@@ -146,7 +146,7 @@ Example Output Format:
146
  'task_completed': 'False',
147
  }}
148
  """
149
- updated_state = self._get_openai_response([{'role': 'system', 'content': transform_prompt}])
150
  updated_state = json_repair.loads(updated_state)
151
 
152
  try:
 
146
  'task_completed': 'False',
147
  }}
148
  """
149
+ updated_state = self._get_openai_response([{"role": "system", "content": transform_prompt}])
150
  updated_state = json_repair.loads(updated_state)
151
 
152
  try: