fix: 紧急修复pri_in和out被误保存为str类型
This commit is contained in:
4
webui.py
4
webui.py
@@ -834,9 +834,9 @@ with (gr.Blocks(title="MaimBot配置文件编辑") as app):
|
|||||||
with gr.Row():
|
with gr.Row():
|
||||||
model1_provider = gr.Dropdown(choices=["SILICONFLOW","DEEP_SEEK", "CHAT_ANY_WHERE"], value=config_data['model']['llm_reasoning']['provider'], label="模型1(主要回复模型)提供商")
|
model1_provider = gr.Dropdown(choices=["SILICONFLOW","DEEP_SEEK", "CHAT_ANY_WHERE"], value=config_data['model']['llm_reasoning']['provider'], label="模型1(主要回复模型)提供商")
|
||||||
with gr.Row():
|
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():
|
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.TabItem("2-次要回复模型"):
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
model2_name = gr.Textbox(value=config_data['model']['llm_normal']['name'], label="模型2的名称")
|
model2_name = gr.Textbox(value=config_data['model']['llm_normal']['name'], label="模型2的名称")
|
||||||
|
|||||||
Reference in New Issue
Block a user