Remove deprecations from OllamApi and AnthropicApi · spring-projects/spring-ai@46be898 (original) (raw)

`@@ -95,42 +95,6 @@ public static Builder builder() {

`

95

95

``

96

96

`private final WebClient webClient;

`

97

97

``

98

``

`-

/**

`

99

``

`-

`

100

``

`-

`

101

``

`-

*/

`

102

``

`-

@Deprecated(since = "1.0.0.M8")

`

103

``

`-

public AnthropicApi(String anthropicApiKey) {

`

104

``

`-

this(DEFAULT_BASE_URL, anthropicApiKey);

`

105

``

`-

}

`

106

``

-

107

``

`-

/**

`

108

``

`-

`

109

``

`-

`

110

``

`-

`

111

``

`-

*/

`

112

``

`-

@Deprecated(since = "1.0.0.M8")

`

113

``

`-

public AnthropicApi(String baseUrl, String anthropicApiKey) {

`

114

``

`-

this(baseUrl, anthropicApiKey, DEFAULT_ANTHROPIC_VERSION, RestClient.builder(), WebClient.builder(),

`

115

``

`-

RetryUtils.DEFAULT_RESPONSE_ERROR_HANDLER);

`

116

``

`-

}

`

117

``

-

118

``

`-

/**

`

119

``

`-

`

120

``

`-

`

121

``

`-

`

122

``

`-

`

123

``

`-

`

124

``

`-

`

125

``

`-

*/

`

126

``

`-

@Deprecated(since = "1.0.0.M8")

`

127

``

`-

public AnthropicApi(String baseUrl, String anthropicApiKey, String anthropicVersion,

`

128

``

`-

RestClient.Builder restClientBuilder, WebClient.Builder webClientBuilder,

`

129

``

`-

ResponseErrorHandler responseErrorHandler) {

`

130

``

`-

this(baseUrl, DEFAULT_MESSAGE_COMPLETIONS_PATH, anthropicApiKey, anthropicVersion, restClientBuilder,

`

131

``

`-

webClientBuilder, responseErrorHandler, DEFAULT_ANTHROPIC_BETA_VERSION);

`

132

``

`-

}

`

133

``

-

134

98

`/**

`

135

99

` * Create a new client api.

`

136

100

` * @param baseUrl api base URL.

`

`@@ -142,7 +106,7 @@ public AnthropicApi(String baseUrl, String anthropicApiKey, String anthropicVers

`

142

106

` * @param responseErrorHandler Response error handler.

`

143

107

` * @param anthropicBetaFeatures Anthropic beta features.

`

144

108

` */

`

145

``

`-

public AnthropicApi(String baseUrl, String completionsPath, String anthropicApiKey, String anthropicVersion,

`

``

109

`+

private AnthropicApi(String baseUrl, String completionsPath, String anthropicApiKey, String anthropicVersion,

`

146

110

`RestClient.Builder restClientBuilder, WebClient.Builder webClientBuilder,

`

147

111

`ResponseErrorHandler responseErrorHandler, String anthropicBetaFeatures) {

`

148

112

``