Skip to content

Commit

Permalink
PMD
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Sep 17, 2024
1 parent 4c20146 commit ce97f0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public OpenAiClient withSystemPrompt(@Nonnull final String systemPrompt) {
@Nonnull
public OpenAiChatCompletionOutput chatCompletion(@Nonnull final String prompt)
throws OpenAiClientException {
OpenAiChatCompletionParameters parameters = new OpenAiChatCompletionParameters();
final OpenAiChatCompletionParameters parameters = new OpenAiChatCompletionParameters();
if (systemPrompt != null) {
parameters.addMessages(new OpenAiChatSystemMessage().setContent(systemPrompt));
}
Expand Down Expand Up @@ -155,7 +155,7 @@ public OpenAiChatCompletionOutput chatCompletion(
@Nonnull
public Stream<String> streamChatCompletion(@Nonnull final String prompt)
throws OpenAiClientException {
OpenAiChatCompletionParameters parameters = new OpenAiChatCompletionParameters();
final OpenAiChatCompletionParameters parameters = new OpenAiChatCompletionParameters();
if (systemPrompt != null) {
parameters.addMessages(new OpenAiChatSystemMessage().setContent(systemPrompt));
}
Expand Down

0 comments on commit ce97f0b

Please sign in to comment.