Skip to content

Commit

Permalink
issue #957: always set jsonConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Jul 12, 2024
1 parent 21e2460 commit 79e77ea
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ public Uni<GetLLMConfigurationsResponse> getLLMConfigurations(GetLLMConfiguratio
.fetchCurrent(request.getSchemaName())
.map(llm -> {
var responseBuilder = GetLLMConfigurationsResponse.newBuilder()
.setApiUrl(llm.getApiUrl());

if (llm.getJsonConfig() != null) {
responseBuilder.setJsonConfig(StructUtils.fromJson(llm.getJsonConfig()));
}
.setApiUrl(llm.getApiUrl())
.setJsonConfig(StructUtils.fromJson(llm.getJsonConfig()));

if (llm.getApiKey() != null) {
responseBuilder.setApiKey(llm.getApiKey());
Expand Down

0 comments on commit 79e77ea

Please sign in to comment.