mirror of
https://github.com/yuruotong1/autoMate.git
synced 2025-12-26 05:16:21 +08:00
修复配置项更换大模型后提交数据重复的问题
This commit is contained in:
parent
db262c2e5e
commit
ab0565b033
@ -27,8 +27,8 @@ export const config = {
|
||||
id: 0,
|
||||
options: {
|
||||
initShow: true,
|
||||
width: 800,
|
||||
height: 650,
|
||||
width: 830,
|
||||
height: 670,
|
||||
openDevTools: false,
|
||||
frame: true,
|
||||
transparent: false,
|
||||
|
||||
@ -19,10 +19,12 @@ export function Setting(){
|
||||
const onModelChange = (value: string) => {
|
||||
switch (value) {
|
||||
case 'openai':
|
||||
form.setFieldsValue({ model: 'gpt-4-turbo', base_url:"https://api.openai.com/v1"});
|
||||
form.resetFields(['llm'])
|
||||
form.setFieldsValue({"llm": {model: 'gpt-4-turbo', base_url:"https://api.openai.com/v1"}});
|
||||
break;
|
||||
case 'ollama':
|
||||
form.setFieldsValue({ model: 'ollama/llama2',api_base: "http://localhost:11434" });
|
||||
form.resetFields(['llm'])
|
||||
form.setFieldsValue({"llm": {model: 'ollama/llama2',api_base: "http://localhost:11434" }});
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user