Skip to content

Commit 24bb858

Browse files
cowboysjtzolov
authored andcommitted
docs : correct typo from "can some" and "can can" in azure-open-ai-chat-function.adoc
1 parent 2d7b00a commit 24bb858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/azure-open-ai-chat-functions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To support the response of the chatbot, we will register our own function that t
4040

4141
When the response to the prompt to the model needs to answer a question such as `"What’s the weather like in Boston?"` the AI model will invoke the client providing the location value as an argument to be passed to the function. This RPC-like data is passed as JSON.
4242

43-
Our function can some SaaS based weather service API and returns the weather response back to the model to complete the conversation. In this example we will use a simple implementation named `MockWeatherService` that hard codes the temperature for various locations.
43+
Our function can have some SaaS based weather service API and returns the weather response back to the model to complete the conversation. In this example we will use a simple implementation named `MockWeatherService` that hard codes the temperature for various locations.
4444

4545
The following `MockWeatherService.java` represents the weather service API:
4646

@@ -154,7 +154,7 @@ ChatResponse response = chatModel.call(new Prompt(List.of(userMessage),
154154
logger.info("Response: {}", response);
155155
----
156156

157-
// NOTE: You can can have multiple functions registered in your `ChatModel` but only those enabled in the prompt request will be considered for the function calling.
157+
// NOTE: You can have multiple functions registered in your `ChatModel` but only those enabled in the prompt request will be considered for the function calling.
158158

159159
Above user question will trigger 3 calls to `CurrentWeather` function (one for each city) and the final response will be something like this:
160160

0 commit comments

Comments
 (0)