diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java index 02ad98971..71473a8b1 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java @@ -191,8 +191,12 @@ public DataResult getChatGptSystemConfig() { case OPENAI : config.setApiKey(Objects.nonNull(apiKey.getData()) ? apiKey.getData().getContent() : null); config.setApiHost(Objects.nonNull(apiHost.getData()) ? apiHost.getData().getContent() : null); + config.setChat2dbApiKey(""); + config.setChat2dbApiHost(""); break; case CHAT2DBAI: + config.setApiKey(""); + config.setApiHost(""); config.setChat2dbApiKey(Objects.nonNull(apiKey.getData()) ? apiKey.getData().getContent() : null); config.setChat2dbApiHost(Objects.nonNull(apiHost.getData()) ? apiHost.getData().getContent() : null); break;