merge dev from master hotfix: no temperature in webui

This commit is contained in:
liunux4odoo 2023-10-21 07:17:18 +08:00
commit 4aa16d1c7b
2 changed files with 3 additions and 2 deletions

View File

@ -139,10 +139,10 @@ $ python startup.py -a
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white "langchain-chatglm")](https://t.me/+RjliQ3jnJ1YyN2E9) [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white "langchain-chatglm")](https://t.me/+RjliQ3jnJ1YyN2E9)
### 项目交流群 ### 项目交流群
<img src="img/qr_code_67.jpg" alt="二维码" width="300" height="300" /> <img src="img/qr_code_67.jpg" alt="二维码" width="300" />
🎉 Langchain-Chatchat 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。 🎉 Langchain-Chatchat 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
### 公众号 ### 公众号
<img src="img/official_wechat_mp_account.png" alt="图片" width="900" height="300" /> ![](img/official_wechat_mp_account.png)
🎉 Langchain-Chatchat 项目官方公众号,欢迎扫码关注。 🎉 Langchain-Chatchat 项目官方公众号,欢迎扫码关注。

View File

@ -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():