Skip to content

Commit 3e0641b

Browse files
committed
Fixed code formart
1 parent d46e964 commit 3e0641b

File tree

2 files changed

+7
-6
lines changed
  • auto-configurations/models/spring-ai-autoconfigure-model-anthropic/src/main/java/org/springframework/ai/model/anthropic/autoconfigure
  • models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/api

2 files changed

+7
-6
lines changed

auto-configurations/models/spring-ai-autoconfigure-model-anthropic/src/main/java/org/springframework/ai/model/anthropic/autoconfigure/AnthropicChatAutoConfiguration.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ public AnthropicApi anthropicApi(AnthropicConnectionProperties connectionPropert
7070
ObjectProvider<RestClient.Builder> restClientBuilderProvider,
7171
ObjectProvider<WebClient.Builder> webClientBuilderProvider, ResponseErrorHandler responseErrorHandler) {
7272

73-
return new AnthropicApi(connectionProperties.getBaseUrl(), connectionProperties.getCompletionsPath(), connectionProperties.getApiKey(),
74-
connectionProperties.getVersion(), restClientBuilderProvider.getIfAvailable(RestClient::builder),
73+
return new AnthropicApi(connectionProperties.getBaseUrl(), connectionProperties.getCompletionsPath(),
74+
connectionProperties.getApiKey(), connectionProperties.getVersion(),
75+
restClientBuilderProvider.getIfAvailable(RestClient::builder),
7576
webClientBuilderProvider.getIfAvailable(WebClient::builder), responseErrorHandler,
7677
connectionProperties.getBetaVersion());
7778
}

models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/api/AnthropicApi.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public AnthropicApi(String anthropicApiKey) {
104104
* @param anthropicApiKey Anthropic api Key.
105105
*/
106106
public AnthropicApi(String baseUrl, String completionsPath, String anthropicApiKey) {
107-
this(baseUrl, completionsPath, anthropicApiKey, DEFAULT_ANTHROPIC_VERSION, RestClient.builder(), WebClient.builder(),
108-
RetryUtils.DEFAULT_RESPONSE_ERROR_HANDLER);
107+
this(baseUrl, completionsPath, anthropicApiKey, DEFAULT_ANTHROPIC_VERSION, RestClient.builder(),
108+
WebClient.builder(), RetryUtils.DEFAULT_RESPONSE_ERROR_HANDLER);
109109
}
110110

111111
/**
@@ -120,8 +120,8 @@ public AnthropicApi(String baseUrl, String completionsPath, String anthropicApiK
120120
public AnthropicApi(String baseUrl, String completionsPath, String anthropicApiKey, String anthropicVersion,
121121
RestClient.Builder restClientBuilder, WebClient.Builder webClientBuilder,
122122
ResponseErrorHandler responseErrorHandler) {
123-
this(baseUrl, completionsPath, anthropicApiKey, anthropicVersion, restClientBuilder, webClientBuilder, responseErrorHandler,
124-
DEFAULT_ANTHROPIC_BETA_VERSION);
123+
this(baseUrl, completionsPath, anthropicApiKey, anthropicVersion, restClientBuilder, webClientBuilder,
124+
responseErrorHandler, DEFAULT_ANTHROPIC_BETA_VERSION);
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)