Skip to content

Commit

Permalink
docs(chat): update function params builder code snippet [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam authored Jun 28, 2023
1 parent e79b5ef commit 5a23841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/ChatFunctionCall.md
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -175,7 +175,7 @@ suspend fun main() {
)
)

val params = FunctionParameters.buildJson {
val params = Parameters.buildJsonObject {
put("type", "object")
putJsonObject("properties") {
putJsonObject("location") {
Expand Down Expand Up @@ -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!
This completes the guide for executing a chat completion request with a function call. Happy coding!

0 comments on commit 5a23841

Please sign in to comment.