Skip to content

Commit c1f958c

Browse files
server : (docs) Update wrong tool calling example (#11809)
Call updated to match the tool used in the output just below, following the example in #9639
1 parent c48f630 commit c1f958c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/server/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1437,25 +1437,25 @@ curl http://localhost:8080/v1/chat/completions \
14371437
{
14381438
"type":"function",
14391439
"function":{
1440-
"name":"get_current_weather",
1441-
"description":"Get the current weather in a given location",
1440+
"name":"python",
1441+
"description":"Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.",
14421442
"parameters":{
14431443
"type":"object",
14441444
"properties":{
1445-
"location":{
1445+
"code":{
14461446
"type":"string",
1447-
"description":"The city and state, e.g. San Francisco, CA"
1447+
"description":"The code to run in the ipython interpreter."
14481448
}
14491449
},
1450-
"required":["location"]
1450+
"required":["code"]
14511451
}
14521452
}
14531453
}
14541454
],
14551455
"messages": [
14561456
{
14571457
"role": "user",
1458-
"content": "What is the weather like in Istanbul?."
1458+
"content": "Print a hello world message with python."
14591459
}
14601460
]
14611461
}'

0 commit comments

Comments
 (0)