Skip to content

Commit 054d123

Browse files
committed
GH-4634: Remove @ImportAutoConfiguration from AzureOpenAiChatAutoConfiguration
Signed-off-by: Willams <[email protected]>
1 parent 940bcf3 commit 054d123

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

auto-configurations/models/spring-ai-autoconfigure-model-azure-openai/src/main/java/org/springframework/ai/model/azure/openai/autoconfigure/AzureOpenAiChatAutoConfiguration.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright 2023-2024 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
package org.springframework.ai.model.azure.openai.autoconfigure;
182

193
import com.azure.ai.openai.OpenAIClientBuilder;
@@ -29,7 +13,6 @@
2913
import org.springframework.ai.model.tool.autoconfigure.ToolCallingAutoConfiguration;
3014
import org.springframework.beans.factory.ObjectProvider;
3115
import org.springframework.boot.autoconfigure.AutoConfiguration;
32-
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
3316
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3417
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
3518
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -50,7 +33,6 @@
5033
@EnableConfigurationProperties({ AzureOpenAiChatProperties.class })
5134
@ConditionalOnProperty(name = SpringAIModelProperties.CHAT_MODEL, havingValue = SpringAIModels.AZURE_OPENAI,
5235
matchIfMissing = true)
53-
@ImportAutoConfiguration(classes = { ToolCallingAutoConfiguration.class })
5436
@Import(AzureOpenAiClientBuilderConfiguration.class)
5537
public class AzureOpenAiChatAutoConfiguration {
5638

0 commit comments

Comments
 (0)