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] =?UTF-8?q?fix:=20=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8Dpri?= =?UTF-8?q?=5Fin=E5=92=8Cout=E8=A2=AB=E8=AF=AF=E4=BF=9D=E5=AD=98=E4=B8=BAs?= =?UTF-8?q?tr=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的名称")