From 1fd7c23fcbb19e02685263b72d97656d8eeee475 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Fri, 14 Mar 2025 21:54:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?pri=5Fin=E5=92=8Cout=E8=A2=AB=E8=AF=AF=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=B8=BAstr=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index 260f74ed2..df916d1d4 100644 --- a/webui.py +++ b/webui.py @@ -834,9 +834,9 @@ with (gr.Blocks(title="MaimBot配置文件编辑") as app): with gr.Row(): model1_provider = gr.Dropdown(choices=["SILICONFLOW","DEEP_SEEK", "CHAT_ANY_WHERE"], value=config_data['model']['llm_reasoning']['provider'], label="模型1(主要回复模型)提供商") with gr.Row(): - model1_pri_in = gr.Textbox(value=config_data['model']['llm_reasoning']['pri_in'], label="模型1(主要回复模型)的输入价格(非必填,可以记录消耗)") + model1_pri_in = gr.Number(value=config_data['model']['llm_reasoning']['pri_in'], label="模型1(主要回复模型)的输入价格(非必填,可以记录消耗)") with gr.Row(): - model1_pri_out = gr.Textbox(value=config_data['model']['llm_reasoning']['pri_out'], label="模型1(主要回复模型)的输出价格(非必填,可以记录消耗)") + model1_pri_out = gr.Number(value=config_data['model']['llm_reasoning']['pri_out'], label="模型1(主要回复模型)的输出价格(非必填,可以记录消耗)") with gr.TabItem("2-次要回复模型"): with gr.Row(): model2_name = gr.Textbox(value=config_data['model']['llm_normal']['name'], label="模型2的名称") From e13425b5884d60adb0304ea5fa30cc34fb335a0c Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Fri, 14 Mar 2025 22:01:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=B1=E4=BA=8E?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=A4=AA=E4=BD=8E=E5=AF=BC=E8=87=B4=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index df916d1d4..bd2e9ee0b 100644 --- a/webui.py +++ b/webui.py @@ -376,7 +376,7 @@ def save_group_config(t_talk_allowed_final_result, logger.info("群聊设置已保存到 bot_config.toml 文件中") return "群聊设置已保存" -with (gr.Blocks(title="MaimBot配置文件编辑") as app): +with gr.Blocks(title="MaimBot配置文件编辑") as app: gr.Markdown( value=""" 欢迎使用由墨梓柒MotricSeven编写的MaimBot配置文件编辑器\n