Update streamlit_app.py
This commit is contained in:
parent
a200083856
commit
752f2b33a0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user