Skip to content

Commit bee4480

Browse files
committed
refactor(spring-ai-openai): fix style check
Signed-off-by: SenreySong <[email protected]>
1 parent 331837f commit bee4480

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/OpenAiChatOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public void setParallelToolCalls(Boolean parallelToolCalls) {
506506
}
507507

508508
public Map<String, Object> getExtraBody() {
509-
return extraBody;
509+
return this.extraBody;
510510
}
511511

512512
public void setExtraBody(Map<String, Object> extraBody) {

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ public record ChatCompletionRequest(// @formatter:off
11651165
public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model, Double temperature) {
11661166
this(messages, model, null, null, null, null, null, null, null, null, null, null, null, null, null,
11671167
null, null, null, false, null, temperature, null,
1168-
null, null, null, null, null, null, null,null);
1168+
null, null, null, null, null, null, null, null);
11691169
}
11701170

11711171
/**
@@ -1179,7 +1179,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
11791179
this(messages, model, null, null, null, null, null, null,
11801180
null, null, null, List.of(OutputModality.AUDIO, OutputModality.TEXT), audio, null, null,
11811181
null, null, null, stream, null, null, null,
1182-
null, null, null, null, null, null, null,null);
1182+
null, null, null, null, null, null, null, null);
11831183
}
11841184

11851185
/**
@@ -1194,7 +1194,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
11941194
public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model, Double temperature, boolean stream) {
11951195
this(messages, model, null, null, null, null, null, null, null, null, null,
11961196
null, null, null, null, null, null, null, stream, null, temperature, null,
1197-
null, null, null, null, null, null, null,null);
1197+
null, null, null, null, null, null, null, null);
11981198
}
11991199

12001200
/**
@@ -1210,7 +1210,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
12101210
List<FunctionTool> tools, Object toolChoice) {
12111211
this(messages, model, null, null, null, null, null, null, null, null, null,
12121212
null, null, null, null, null, null, null, false, null, 0.8, null,
1213-
tools, toolChoice, null, null, null, null, null,null);
1213+
tools, toolChoice, null, null, null, null, null, null);
12141214
}
12151215

12161216
/**
@@ -1236,7 +1236,7 @@ public ChatCompletionRequest streamOptions(StreamOptions streamOptions) {
12361236
return new ChatCompletionRequest(this.messages, this.model, this.store, this.metadata, this.frequencyPenalty, this.logitBias, this.logprobs,
12371237
this.topLogprobs, this.maxTokens, this.maxCompletionTokens, this.n, this.outputModalities, this.audioParameters, this.presencePenalty,
12381238
this.responseFormat, this.seed, this.serviceTier, this.stop, this.stream, streamOptions, this.temperature, this.topP,
1239-
this.tools, this.toolChoice, this.parallelToolCalls, this.user, this.reasoningEffort, this.webSearchOptions, this.verbosity,this.extraBody);
1239+
this.tools, this.toolChoice, this.parallelToolCalls, this.user, this.reasoningEffort, this.webSearchOptions, this.verbosity, this.extraBody);
12401240
}
12411241

12421242
/**

0 commit comments

Comments
 (0)