|
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 | | - |
17 | 1 | package org.springframework.ai.model.azure.openai.autoconfigure; |
18 | 2 |
|
19 | 3 | import com.azure.ai.openai.OpenAIClientBuilder; |
|
29 | 13 | import org.springframework.ai.model.tool.autoconfigure.ToolCallingAutoConfiguration; |
30 | 14 | import org.springframework.beans.factory.ObjectProvider; |
31 | 15 | import org.springframework.boot.autoconfigure.AutoConfiguration; |
32 | | -import org.springframework.boot.autoconfigure.ImportAutoConfiguration; |
33 | 16 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
34 | 17 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
35 | 18 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
50 | 33 | @EnableConfigurationProperties({ AzureOpenAiChatProperties.class }) |
51 | 34 | @ConditionalOnProperty(name = SpringAIModelProperties.CHAT_MODEL, havingValue = SpringAIModels.AZURE_OPENAI, |
52 | 35 | matchIfMissing = true) |
53 | | -@ImportAutoConfiguration(classes = { ToolCallingAutoConfiguration.class }) |
54 | 36 | @Import(AzureOpenAiClientBuilderConfiguration.class) |
55 | 37 | public class AzureOpenAiChatAutoConfiguration { |
56 | 38 |
|
|
0 commit comments