Skip to content

Commit cf9be98

Browse files
committed
fix: apply spotless formatting
1 parent 1f97bc1 commit cf9be98

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/AzureOpenAIChatModelConnection.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ public AzureOpenAIChatModelConnection(
141141
.map(Number::intValue)
142142
.orElse(OpenAIChatCompletionsUtils.DEFAULT_MAX_RETRIES);
143143
if (this.maxRetries < 0) {
144-
throw new IllegalArgumentException(
145-
"max_retries must be >= 0, got: " + this.maxRetries);
144+
throw new IllegalArgumentException("max_retries must be >= 0, got: " + this.maxRetries);
146145
}
147146
clientBuilder.maxRetries(this.maxRetries);
148147

integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAICompletionsConnection.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ public OpenAICompletionsConnection(
115115
.map(Number::intValue)
116116
.orElse(OpenAIChatCompletionsUtils.DEFAULT_MAX_RETRIES);
117117
if (this.maxRetries < 0) {
118-
throw new IllegalArgumentException(
119-
"max_retries must be >= 0, got: " + this.maxRetries);
118+
throw new IllegalArgumentException("max_retries must be >= 0, got: " + this.maxRetries);
120119
}
121120
builder.maxRetries(this.maxRetries);
122121

integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAIResponsesModelConnection.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ public OpenAIResponsesModelConnection(
121121
.map(Number::intValue)
122122
.orElse(OpenAIChatCompletionsUtils.DEFAULT_MAX_RETRIES);
123123
if (this.maxRetries < 0) {
124-
throw new IllegalArgumentException(
125-
"max_retries must be >= 0, got: " + this.maxRetries);
124+
throw new IllegalArgumentException("max_retries must be >= 0, got: " + this.maxRetries);
126125
}
127126
builder.maxRetries(this.maxRetries);
128127

integrations/chat-models/openai/src/test/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAIResponsesModelConnectionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class OpenAIResponsesModelConnectionTest {
3636
private static final ResourceContext NOOP = ResourceContext.fromGetResource((a, b) -> null);
3737

3838
private static ResourceDescriptor.Builder connectionDescriptor() {
39-
return ResourceDescriptor.Builder.newBuilder(OpenAIResponsesModelConnection.class.getName());
39+
return ResourceDescriptor.Builder.newBuilder(
40+
OpenAIResponsesModelConnection.class.getName());
4041
}
4142

4243
@Test

0 commit comments

Comments
 (0)