From 161a90e48dcf78d22efa83bade2857deecbca916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20Ioni=C8=9B=C4=83?= Date: Fri, 22 Mar 2024 18:07:21 +0200 Subject: [PATCH] Fix typo in openai-chat-functions.adoc --- .../ROOT/pages/api/chat/functions/openai-chat-functions.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/openai-chat-functions.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/openai-chat-functions.adoc index 8c7de0774..d3cf341bf 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/openai-chat-functions.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/openai-chat-functions.adoc @@ -42,7 +42,7 @@ To support the response of the chatbot, we will register our own function that t 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. -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. +Our function calls 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. The following `MockWeatherService.java` represents the weather service API: