紧急修复 温度 参数代码消失问题 (#1816)
This commit is contained in:
parent
115a123442
commit
38a48bc831
|
|
@ -151,6 +151,7 @@ def dialogue_page(api: ApiRequest):
|
||||||
key="prompt_template_select",
|
key="prompt_template_select",
|
||||||
)
|
)
|
||||||
prompt_template_name = st.session_state.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)
|
history_len = st.number_input("历史对话轮数:", 0, 20, HISTORY_LEN)
|
||||||
|
|
||||||
def on_kb_change():
|
def on_kb_change():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue