Skip to content

Commit

Permalink
OPIK-610 pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
idoberko2 committed Dec 25, 2024
1 parent d469df6 commit 05c74ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public LlmProviderFactory(

public LlmProviderService getService(@NonNull String workspaceId, @NonNull String model) {
var llmProvider = getLlmProvider(model);
var apiKey = EncryptionUtils.decrypt(getEncryptedApiKey(workspaceId, llmProvider));

if (llmProvider == LlmProvider.OPEN_AI) {
var apiKey = EncryptionUtils.decrypt(getEncryptedApiKey(workspaceId, llmProvider));
return new OpenAi(llmProviderClientConfig, apiKey);
}

Expand Down

0 comments on commit 05c74ff

Please sign in to comment.