Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def chatbot(input, choice):
|
|
93 |
# messages.append({"role": "assistant", "content": reply})
|
94 |
|
95 |
## streaming version. typewriter effect, word by word output.
|
96 |
-
for resp in openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=messages, stream=True, max_tokens=
|
97 |
|
98 |
# sys.stdout.write(str(resp['choices'][0]['delta'].get('content'))) ## 这个方式仅在terminal中是working的。
|
99 |
# sys.stdout.flush()
|
|
|
93 |
# messages.append({"role": "assistant", "content": reply})
|
94 |
|
95 |
## streaming version. typewriter effect, word by word output.
|
96 |
+
for resp in openai.ChatCompletion.create(model="gpt-3.5-turbo-16k", messages=messages, stream=True, max_tokens=8048, temperature=0.9):
|
97 |
|
98 |
# sys.stdout.write(str(resp['choices'][0]['delta'].get('content'))) ## 这个方式仅在terminal中是working的。
|
99 |
# sys.stdout.flush()
|