nadeemtafazzul commited on
Commit
e98676e
·
verified ·
1 Parent(s): 6a3084d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
23
  def respond(history):
24
 
25
  if len(history) == 1:
26
- history.insert(0,{"role": "assistant", "content": "You are a helpful assistant."})
27
  # messages = history.copy()
28
  response = client.chat.completions.create(
29
  model="gpt-4o-mini",
 
23
  def respond(history):
24
 
25
  if len(history) == 1:
26
+ history.insert(0,{"role": "system", "content": "You are a helpful assistant."})
27
  # messages = history.copy()
28
  response = client.chat.completions.create(
29
  model="gpt-4o-mini",