紧急修复 温度 参数代码消失问题 (#1816)

This commit is contained in:
zR 2023-10-21 01:28:34 +08:00 committed by GitHub
parent 115a123442
commit 38a48bc831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ def dialogue_page(api: ApiRequest):
key="prompt_template_select",
)
prompt_template_name = st.session_state.prompt_template_select
temperature = st.slider("Temperature", 0.0, 1.0, TEMPERATURE, 0.05)
history_len = st.number_input("历史对话轮数:", 0, 20, HISTORY_LEN)
def on_kb_change():