Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ if st.button("Generate Response"):
|
|
14 |
if user_input:
|
15 |
# Create a chat completion
|
16 |
completion = openai.ChatCompletion.create(
|
17 |
-
model="gpt-
|
18 |
messages=[
|
19 |
{"role": "system", "content": "You are a helpful assistant."},
|
20 |
{"role": "user", "content": user_input}
|
|
|
14 |
if user_input:
|
15 |
# Create a chat completion
|
16 |
completion = openai.ChatCompletion.create(
|
17 |
+
model="gpt-4o-mini", # Or use "gpt-4" if available to you
|
18 |
messages=[
|
19 |
{"role": "system", "content": "You are a helpful assistant."},
|
20 |
{"role": "user", "content": user_input}
|