fix: 紧急修复pri_in和out被误保存为str类型

This commit is contained in:
DrSmoothl
2025-03-14 21:54:45 +08:00
parent 7ab296ef17
commit 1fd7c23fcb

View File

@@ -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的名称")