Update streamlit_app.py

This commit is contained in:
Vincent Zhao 2024-05-07 21:26:36 +08:00 committed by GitHub
parent a200083856
commit 752f2b33a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,9 @@ def respond_nonStream(prompt, instruction):
response = Generation.call(model="qwen-turbo",
messages=messages,
result_format='message', # 设置输出为'message'格式
)
temperature=1,
top_p=0.8,
top_k=50)
if response.status_code == HTTPStatus.OK:
return response.output.choices[0]['message']['content']
else: