Timothy J. Baek 11 月之前
父節點
當前提交
bdcfbfeb11
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/lib/components/chat/Settings/Connections.svelte

+ 4 - 0
src/lib/components/chat/Settings/Connections.svelte

@@ -54,6 +54,8 @@
 				pipelineUrls[OPENAI_API_BASE_URLS[idx]] = true;
 				pipelineUrls[OPENAI_API_BASE_URLS[idx]] = true;
 			}
 			}
 		}
 		}
+
+		await models.set(await getModels());
 	};
 	};
 
 
 	const verifyOllamaHandler = async (idx) => {
 	const verifyOllamaHandler = async (idx) => {
@@ -67,6 +69,8 @@
 		if (res) {
 		if (res) {
 			toast.success($i18n.t('Server connection verified'));
 			toast.success($i18n.t('Server connection verified'));
 		}
 		}
+
+		await models.set(await getModels());
 	};
 	};
 
 
 	const updateOpenAIHandler = async () => {
 	const updateOpenAIHandler = async () => {