allinaigc commited on
Commit
d6daac4
1 Parent(s): db5d091

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=2048, temperature=0.9):
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()