Skip to content

Commit 9777171

Browse files
committed
Test fix
1 parent d420919 commit 9777171

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

models/spring-ai-azure-openai/src/test/java/org/springframework/ai/azure/openai/MockAzureOpenAiTestConfiguration.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 - 2024 the original author or authors.
2+
* Copyright 2023-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.ai.azure.openai;
1718

1819
import com.azure.ai.openai.OpenAIClient;
@@ -40,8 +41,9 @@
4041
* {@link Dispatcher} to integrate with Spring {@link MockMvc}.
4142
*
4243
* @author John Blum
44+
* @author Soby Chacko
4345
* @see org.springframework.boot.SpringBootConfiguration
44-
* @see org.springframework.ai.test.config.MockAiTestConfiguration
46+
* @see org.springframework.ai.azure.openai.MockAiTestConfiguration
4547
* @since 0.7.0
4648
*/
4749
@SpringBootConfiguration
@@ -51,11 +53,9 @@
5153
public class MockAzureOpenAiTestConfiguration {
5254

5355
@Bean
54-
OpenAIClient microsoftAzureOpenAiClient(MockWebServer webServer) {
55-
56+
OpenAIClientBuilder microsoftAzureOpenAiClient(MockWebServer webServer) {
5657
HttpUrl baseUrl = webServer.url(MockAiTestConfiguration.SPRING_AI_API_PATH);
57-
58-
return new OpenAIClientBuilder().endpoint(baseUrl.toString()).buildClient();
58+
return new OpenAIClientBuilder().endpoint(baseUrl.toString());
5959
}
6060

6161
@Bean

0 commit comments

Comments
 (0)