From 001eca79f6d7ecf74df231ae240d34956bac9afa Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Tue, 7 Jan 2025 18:59:30 +0800 Subject: [PATCH] save api to chat template --- src/components/Settings.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index e5e0e5d..c4bff53 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -944,14 +944,6 @@ export default (props: {}) => { ctx.chatStore ); tmp.history = tmp.history.filter((h) => h.example); - tmp.apiEndpoint = ""; - tmp.apiKey = ""; - tmp.whisper_api = ""; - tmp.whisper_key = ""; - tmp.tts_api = ""; - tmp.tts_key = ""; - tmp.image_gen_api = ""; - tmp.image_gen_key = ""; // @ts-ignore tmp.name = name; ctx.templates.push(tmp as TemplateChatStore);