Spaces:
Sleeping
Sleeping
Commit
·
fecd16e
1
Parent(s):
764338a
update: si bug for system prompt
Browse files
app.py
CHANGED
@@ -363,15 +363,15 @@ Format requirements:
|
|
363 |
"""
|
364 |
print(user_prompt)
|
365 |
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
|
376 |
collected_messages = []
|
377 |
# Iterate through the stream
|
|
|
363 |
"""
|
364 |
print(user_prompt)
|
365 |
|
366 |
+
completion = client.chat.completions.create(
|
367 |
+
model="gpt-4o",
|
368 |
+
messages=[
|
369 |
+
{"role": "system", "content": system_prompt},
|
370 |
+
{"role": "user", "content": user_prompt},
|
371 |
+
],
|
372 |
+
stream=True,
|
373 |
+
temperature=0.1,
|
374 |
+
)
|
375 |
|
376 |
collected_messages = []
|
377 |
# Iterate through the stream
|