diff --git a/frontend/src/components/ai/aisetting.vue b/frontend/src/components/ai/aisetting.vue index b89fd02..bce5867 100644 --- a/frontend/src/components/ai/aisetting.vue +++ b/frontend/src/components/ai/aisetting.vue @@ -25,20 +25,20 @@ const modelStore = useModelStore(); // top_p 与top-k一起工作。较高的值(例如,0.95)将产生更多样化的文本,而较低的值(例如,0.5)将生成更集中且保守的文本。默认值:0.9 float top_p 0.9 const hoverTxt = { - dataDir: t('setting.tips_dataDir'), - apiUrl: t('setting.tips_apiUrl'), + dataDir: t('aisetting.tips_dataDir'), + apiUrl: t('aisetting.tips_apiUrl'), contextLength: t("setting.tips_contextLength"), - top_k: t('setting.tips_top_k'), - top_p: t('setting.tips_top_p'), - temperature: t('setting.tips_temperature'), - frequency_penalty: t('setting.tips_frequency_penalty'), - presence_penalty: t('setting.tips_presence_penalty'), - num_predict: t('setting.tips_num_predict'), - num_keep: t('setting.tips_num_keep'), + top_k: t('aisetting.tips_top_k'), + top_p: t('aisetting.tips_top_p'), + temperature: t('aisetting.tips_temperature'), + frequency_penalty: t('aisetting.tips_frequency_penalty'), + presence_penalty: t('aisetting.tips_presence_penalty'), + num_predict: t('aisetting.tips_num_predict'), + num_keep: t('aisetting.tips_num_keep'), }; // const systemStore = useSystemStore(); const config: any = ref({}); -const chatConfig: any = ref({}); +//const chatConfig: any = ref({}); const currentsModel: any = ref({}); const modelList = ref([]); const pageLoading = ref(true); @@ -70,7 +70,7 @@ const saveConfig = async () => { if (config.value.IpList.trim() != "") { postData.push({ name: "dataDir", - value: config.value.IpList.trim().split("\n").map((line:string) => line.trim()), + value: config.value.IpList.trim().split("\n").map((line: string) => line.trim()), }) } if (postData.length > 0) { @@ -96,10 +96,7 @@ const saveConfig = async () => { //modelStore.updateCurrentModels(modelList.value); notifySuccess(t('common.saveSuccess')); }; -const saveChatConfig = () => { - //setChatConfig(chatConfig.value); - notifySuccess(t('common.saveSuccess')); -}; + const changeConfig = async () => { //console.log(v) //setSystemKey('llmType',v) @@ -125,12 +122,12 @@ async function changeDir() {