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