Skip to content

Commit add5466

Browse files
committed
docs(examples/server): Update wrong tool calling example
Call updated to match the tool used in the output just below, following the example in #9639
1 parent a18f481 commit add5466

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/server/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,25 +1236,25 @@ curl http://localhost:8080/v1/chat/completions \
12361236
{
12371237
"type":"function",
12381238
"function":{
1239-
"name":"get_current_weather",
1240-
"description":"Get the current weather in a given location",
1239+
"name":"python",
1240+
"description":"Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.",
12411241
"parameters":{
12421242
"type":"object",
12431243
"properties":{
1244-
"location":{
1244+
"code":{
12451245
"type":"string",
1246-
"description":"The city and state, e.g. San Francisco, CA"
1246+
"description":"The code to run in the ipython interpreter."
12471247
}
12481248
},
1249-
"required":["location"]
1249+
"required":["code"]
12501250
}
12511251
}
12521252
}
12531253
],
12541254
"messages": [
12551255
{
12561256
"role": "user",
1257-
"content": "What is the weather like in Istanbul?."
1257+
"content": "Print a hello world message with python."
12581258
}
12591259
]
12601260
}'

0 commit comments

Comments
 (0)