diff --git a/guides/ChatFunctionCall.md b/guides/ChatFunctionCall.md index d2fcf803..e1212876 100644 --- a/guides/ChatFunctionCall.md +++ b/guides/ChatFunctionCall.md @@ -53,7 +53,7 @@ fun currentWeather(location: String, unit: String): String { Define the parameters for the function the model might call. ```kotlin -val params = FunctionParameters.buildJson { +val params = Parameters.buildJsonObject { put("type", "object") putJsonObject("properties") { putJsonObject("location") { @@ -175,7 +175,7 @@ suspend fun main() { ) ) - val params = FunctionParameters.buildJson { + val params = Parameters.buildJsonObject { put("type", "object") putJsonObject("properties") { putJsonObject("location") { @@ -254,4 +254,4 @@ fun currentWeather(location: String, unit: String): String { } ``` -This completes the guide for executing a chat completion request with a function call. Happy coding! \ No newline at end of file +This completes the guide for executing a chat completion request with a function call. Happy coding!