Skip to content

Commit 95a268a

Browse files
author
Wenli Tian
committed
fix typos in chat client module
Signed-off-by: Wenli Tian <[email protected]>
1 parent b6ce7f3 commit 95a268a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

models/spring-ai-minimax/src/main/java/org/springframework/ai/minimax/MiniMaxChatOptions.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public class MiniMaxChatOptions implements ToolCallingChatOptions {
125125

126126
/**
127127
* MiniMax Tool Function Callbacks to register with the ChatModel.
128-
* For Prompt Options the functionCallbacks are automatically enabled for the duration of the prompt execution.
129-
* For Default Options the functionCallbacks are registered but disabled by default. Use the enableFunctions to set the functions
128+
* For Prompt Options the toolCallbacks are automatically enabled for the duration of the prompt execution.
129+
* For Default Options the toolCallbacks are registered but disabled by default. Use the enableFunctions to set the functions
130130
* from the registry to be used by the ChatModel chat completion requests.
131131
*/
132132
@JsonIgnore
@@ -135,7 +135,7 @@ public class MiniMaxChatOptions implements ToolCallingChatOptions {
135135
/**
136136
* List of functions, identified by their names, to configure for function calling in
137137
* the chat completion requests.
138-
* Functions with those names must exist in the functionCallbacks registry.
138+
* Functions with those names must exist in the toolCallbacks registry.
139139
* The {@link #toolCallbacks} from the PromptOptions are automatically enabled for the duration of the prompt execution.
140140
*
141141
* Note that function enabled with the default options are enabled for all chat completion requests. This could impact the token count and the billing.

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/DefaultChatClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public ChatClientRequestSpec prompt(Prompt prompt) {
128128
}
129129

130130
/**
131-
* Return a {@code ChatClient2Builder} to create a new {@code ChatClient} whose
131+
* Return a {@code Builder} to create a new {@code ChatClient} whose
132132
* settings are replicated from this {@code ChatClientRequest}.
133133
*/
134134
@Override
@@ -706,7 +706,7 @@ public TemplateRenderer getTemplateRenderer() {
706706
}
707707

708708
/**
709-
* Return a {@code ChatClient2Builder} to create a new {@code ChatClient2} whose
709+
* Return a {@code Builder} to create a new {@code ChatClient} whose
710710
* settings are replicated from this {@code ChatClientRequest}.
711711
*/
712712
public Builder mutate() {

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/model/MessageAggregator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.springframework.util.StringUtils;
3838

3939
/**
40-
* Helper that for streaming chat responses, aggregate the chat response messages into a
40+
* Helper for streaming chat responses that aggregates the chat response messages into a
4141
* single AssistantMessage. Job is performed in parallel to the chat response processing.
4242
*
4343
* @author Christian Tzolov

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/package-info.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
* AI generative model domain. This package extends the core domain defined in
2020
* org.sf.ai.generative, providing implementations specific to chat-based generative AI
2121
* interactions.
22-
*
22+
* <p>
2323
* In line with Domain-Driven Design principles, this package includes implementations of
2424
* entities and value objects specific to the chat context, such as ChatPrompt and
2525
* ChatResponse, adhering to the ubiquitous language of chat interactions in AI models.
26-
*
26+
* <p>
2727
* This bounded context is designed to encapsulate all aspects of chat-based AI
2828
* functionalities, maintaining a clear boundary from other contexts within the AI domain.
2929
*/

0 commit comments

Comments
 (0)