Fix typo in openai-chat-functions.adoc

This commit is contained in:
Cosmin Ioniță
2024-03-22 18:07:21 +02:00
committed by Christian Tzolov
parent c757eae8bf
commit 161a90e48d

View File

@@ -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 `"Whats 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: