Skip to content

Commit 45cc1b6

Browse files
committed
code format by plugin
Signed-off-by: lambochen <[email protected]>
1 parent 8a7bb76 commit 45cc1b6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,10 @@ void testDefaultValues() {
263263
@Test
264264
void testFromOptions_webSearchOptions() {
265265
var chatOptions = OpenAiChatOptions.builder()
266-
.webSearchOptions(new OpenAiApi.ChatCompletionRequest.WebSearchOptions(
267-
MEDIUM,
268-
new OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation(
269-
"type",
270-
new OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation.Approximate("beijing", "china", "region", "UTC+8")
271-
)
272-
))
266+
.webSearchOptions(new OpenAiApi.ChatCompletionRequest.WebSearchOptions(MEDIUM,
267+
new OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation("type",
268+
new OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation.Approximate("beijing",
269+
"china", "region", "UTC+8"))))
273270
.build();
274271
var target = OpenAiChatOptions.fromOptions(chatOptions);
275272
assertThat(target.getWebSearchOptions()).isNotNull();

0 commit comments

Comments
 (0)