Skip to content

Commit 0f6bca4

Browse files
ngocnhan-tran1996namsoo2
authored andcommitted
Fix typos
Signed-off-by: Tran Ngoc Nhan <[email protected]> Signed-off-by: minsoo.nam <[email protected]>
1 parent b886462 commit 0f6bca4

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

auto-configurations/models/spring-ai-autoconfigure-model-vertex-ai/src/test/java/org/springframework/ai/model/vertexai/autoconfigure/gemini/tool/FunctionCallWithFunctionBeanIT.java

Lines changed: 3 additions & 3 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-2025 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.
@@ -65,7 +65,7 @@ void functionCallTest() {
6565
var userMessage = new UserMessage("""
6666
What's the weather like in San Francisco, Paris and in Tokyo?
6767
Return the temperature in Celsius.
68-
Perform multiple funciton execution if necessary.
68+
Perform multiple function execution if necessary.
6969
""");
7070

7171
ChatResponse response = chatModel.call(new Prompt(List.of(userMessage),
@@ -105,7 +105,7 @@ void functionCallWithPortableFunctionCallingOptions() {
105105
var userMessage = new UserMessage("""
106106
What's the weather like in San Francisco, Paris and in Tokyo?
107107
Return the temperature in Celsius.
108-
Perform multiple funciton execution if necessary.
108+
Perform multiple function execution if necessary.
109109
""");
110110

111111
ChatResponse response = chatModel.call(new Prompt(List.of(userMessage),

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/client/AnthropicChatClientMethodInvokingFunctionCallbackIT.java

Lines changed: 2 additions & 2 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-2025 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.
@@ -335,7 +335,7 @@ enum LightColor {
335335
public void changeRoomLightColor(String roomName, LightColor color) {
336336
arguments.put("roomName", roomName);
337337
arguments.put("color", color);
338-
logger.info("Change light colur in room: {} to color: {}", roomName, color);
338+
logger.info("Change light color in room: {} to color: {}", roomName, color);
339339
}
340340

341341
}

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/client/ChatClientToolsWithGenericArgumentTypesIT.java

Lines changed: 4 additions & 4 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-2025 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.
@@ -59,8 +59,8 @@ void beforeEach() {
5959
void toolWithGenericArgumentTypes() {
6060
// @formatter:off
6161
String response = ChatClient.create(this.chatModel).prompt()
62-
.user("Turn light red in the living room and the kitchen. Please group the romms with the same color in a single tool call.")
63-
.tools(new TestToolProvider())
62+
.user("Turn light red in the living room and the kitchen. Please group the rooms with the same color in a single tool call.")
63+
.tools(new TestToolProvider())
6464
.call()
6565
.content();
6666
// @formatter:on
@@ -86,7 +86,7 @@ public static class TestToolProvider {
8686

8787
@Tool(description = "Change the lamp color in a room.")
8888
public void changeRoomLightColor(
89-
@ToolParam(description = "List of rooms to change the ligth color for") List<Room> rooms,
89+
@ToolParam(description = "List of rooms to change the light color for") List<Room> rooms,
9090
@ToolParam(description = "light color to change to") LightColor color) {
9191

9292
logger.info("Change light color in rooms: {} to color: {}", rooms, color);

models/spring-ai-bedrock-converse/src/test/java/org/springframework/ai/bedrock/converse/client/BedrockNovaChatClientIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void toolAnnotationWeatherForecast() {
184184
ChatClient chatClient = ChatClient.builder(this.chatModel).build();
185185

186186
String response = chatClient.prompt()
187-
.tools(new DummyWeatherForcastTools())
187+
.tools(new DummyWeatherForecastTools())
188188
.user("Get current weather in Amsterdam")
189189
.call()
190190
.content();
@@ -199,7 +199,7 @@ void toolAnnotationWeatherForecastStreaming() {
199199
ChatClient chatClient = ChatClient.builder(this.chatModel).build();
200200

201201
Flux<ChatResponse> responses = chatClient.prompt()
202-
.tools(new DummyWeatherForcastTools())
202+
.tools(new DummyWeatherForecastTools())
203203
.user("Get current weather in Amsterdam")
204204
.stream()
205205
.chatResponse();
@@ -214,11 +214,11 @@ void toolAnnotationWeatherForecastStreaming() {
214214
assertThat(content).contains("20 degrees");
215215
}
216216

217-
public static class DummyWeatherForcastTools {
217+
public static class DummyWeatherForecastTools {
218218

219-
@Tool(description = "Get the current weather forcast in Amsterdam")
219+
@Tool(description = "Get the current weather forecast in Amsterdam")
220220
String getCurrentDateTime() {
221-
return "Weahter is hot and sunny wiht a temperature of 20 degrees";
221+
return "Weather is hot and sunny with a temperature of 20 degrees";
222222
}
223223

224224
}

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client/ChatClientToolsWithGenericArgumentTypesIT.java

Lines changed: 3 additions & 3 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-2025 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.
@@ -61,7 +61,7 @@ void beforeEach() {
6161
void toolWithGenericArgumentTypes() {
6262
// @formatter:off
6363
String response = ChatClient.create(this.chatModel).prompt()
64-
.user("Turn light red in the living room and the kitchen. Please group the romms with the same color in a single tool call.")
64+
.user("Turn light red in the living room and the kitchen. Please group the rooms with the same color in a single tool call.")
6565
.tools(new TestToolProvider())
6666
.call()
6767
.content();
@@ -88,7 +88,7 @@ public static class TestToolProvider {
8888

8989
@Tool(description = "Change the lamp color in a room.")
9090
public void changeRoomLightColor(
91-
@ToolParam(description = "List of rooms to change the ligth color for") List<Room> rooms,
91+
@ToolParam(description = "List of rooms to change the light color for") List<Room> rooms,
9292
@ToolParam(description = "light color to change to") LightColor color) {
9393

9494
logger.info("Change light color in rooms: {} to color: {}", rooms, color);

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock-converse.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ The Bedrock Converse API has the following high-level features:
1010
* System Messages: Support for system-level instructions and context setting
1111
1212
TIP: The Bedrock Converse API provides a unified interface across multiple model providers while handling AWS-specific authentication and infrastructure concerns.
13-
Currently, the Converse API link:https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html[Supported Models] inlcude:
13+
Currently, the Converse API link:https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html[Supported Models] include:
1414
`Amazon Titan`, `Amazon Nova`, `AI21 Labs`, `Anthropic Claude`, `Cohere Command`, `Meta Llama`, `Mistral AI`.
1515

1616
[NOTE]
1717
====
18-
Following the Bedrock recommendations, Spring AI is transitioning to using Amazon Bedrock's Converse API for all chat conversation implementations in Spring AI.
18+
Following the Bedrock recommendations, Spring AI is transitioning to using Amazon Bedrock's Converse API for all chat conversation implementations in Spring AI.
1919
While the existing xref:api/bedrock-chat.adoc[InvokeModel API] supports conversation applications, we strongly recommend adopting the Converse API for all Chat conversation models.
2020
2121
The Converse API does not support embedding operations, so these will remain in the current API and the embedding model functionality in the existing `InvokeModel API` will be maintained
@@ -135,7 +135,7 @@ String response = ChatClient.create(this.chatModel)
135135

136136
== Tool Calling
137137

138-
The Bedrock Converse API supports tool calling capabilities, allowing models to use tools during conversations.
138+
The Bedrock Converse API supports tool calling capabilities, allowing models to use tools during conversations.
139139
Here's an example of how to define and use @Tool based tools:
140140

141141
[source,java]
@@ -150,7 +150,7 @@ public class WeatherService {
150150
}
151151
152152
String response = ChatClient.create(this.chatModel)
153-
.prompt("What's the weather like in Boston?")
153+
.prompt("What's the weather like in Boston?")
154154
.tools(new WeatherService())
155155
.call()
156156
.content();
@@ -167,7 +167,7 @@ public Function<Request, Response> weatherFunction() {
167167
}
168168
169169
String response = ChatClient.create(this.chatModel)
170-
.prompt("What's the weather like in Boston?")
170+
.prompt("What's the weather like in Boston?")
171171
.tools("weatherFunction")
172172
.inputType(Request.class)
173173
.call()
@@ -178,7 +178,7 @@ Find more in xref:api/tools.adoc[Tools] documentation.
178178

179179
== Multimodal
180180

181-
Multimodality refers to a model's ability to simultaneously understand and process information from various sources, including text, images, video, pdf, doc, html, md and more data formats.
181+
Multimodality refers to a model's ability to simultaneously understand and process information from various sources, including text, images, video, pdf, doc, html, md and more data formats.
182182

183183
The Bedrock Converse API supports multimodal inputs, including text and image inputs, and can generate a text response based on the combined input.
184184

@@ -248,13 +248,13 @@ image::test.video.jpeg[Multimodal Test Video, 200, 200, align="left"]
248248
along with the text message "Explain what do you see in this video?", and generates a response something like:
249249

250250
----
251-
The video shows a group of baby chickens, also known as chicks, huddled together on a surface
251+
The video shows a group of baby chickens, also known as chicks, huddled together on a surface
252252
...
253253
----
254254

255255
=== Documents
256256

257-
For some models, Bedrock allows you to include documents in the payload through Converse API document support, which can be provided in bytes.
257+
For some models, Bedrock allows you to include documents in the payload through Converse API document support, which can be provided in bytes.
258258
The document support has two different variants as explained below:
259259

260260
- **Text document types** (txt, csv, html, md, and so on), where the emphasis is on text understanding. These use case include answering based on textual elements of the document.

vector-stores/spring-ai-couchbase-store/src/test/java/org/springframework/ai/vectorstore/CouchbaseSearchVectorStoreIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public CouchbaseSearchVectorStore vectorStore(EmbeddingModel embeddingModel) {
293293
CouchbaseSearchVectorStore.Builder builder = CouchbaseSearchVectorStore.builder(cluster, embeddingModel)
294294
.bucketName("springBucket")
295295
.scopeName("springScope")
296-
.collectionName("sprtingcollection");
296+
.collectionName("springCollection");
297297

298298
return builder.initializeSchema(true).build();
299299
}

0 commit comments

Comments
 (0)