rishabhpr commited on
Commit
67d6f98
·
verified ·
1 Parent(s): 91243d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ for message in st.session_state.messages[1:]: # Skip the system message
23
  # Function to generate response using OpenAI API
24
  def generate_response(prompt):
25
  response = client.chat.completions.create(
26
- model="gpt4o",
27
  messages=st.session_state.messages + [{"role": "system", "content": prompt}]
28
  )
29
  return response.choices[0].message.content
 
23
  # Function to generate response using OpenAI API
24
  def generate_response(prompt):
25
  response = client.chat.completions.create(
26
+ model="gpt-4o",
27
  messages=st.session_state.messages + [{"role": "system", "content": prompt}]
28
  )
29
  return response.choices[0].message.content