Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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
|