Skip to content

Commit

Permalink
openai config update
Browse files Browse the repository at this point in the history
  • Loading branch information
robinji0 committed Jul 25, 2023
1 parent 6ca00f7 commit 418eee9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,12 @@ public DataResult<ChatGptConfig> 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;
Expand Down

0 comments on commit 418eee9

Please sign in to comment.