Skip to content

Commit 418eee9

Browse files
committed
openai config update
1 parent 6ca00f7 commit 418eee9

File tree

1 file changed

+4
-0
lines changed
  • chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config

1 file changed

+4
-0
lines changed

chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java

+4
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,12 @@ public DataResult<ChatGptConfig> getChatGptSystemConfig() {
191191
case OPENAI :
192192
config.setApiKey(Objects.nonNull(apiKey.getData()) ? apiKey.getData().getContent() : null);
193193
config.setApiHost(Objects.nonNull(apiHost.getData()) ? apiHost.getData().getContent() : null);
194+
config.setChat2dbApiKey("");
195+
config.setChat2dbApiHost("");
194196
break;
195197
case CHAT2DBAI:
198+
config.setApiKey("");
199+
config.setApiHost("");
196200
config.setChat2dbApiKey(Objects.nonNull(apiKey.getData()) ? apiKey.getData().getContent() : null);
197201
config.setChat2dbApiHost(Objects.nonNull(apiHost.getData()) ? apiHost.getData().getContent() : null);
198202
break;

0 commit comments

Comments
 (0)