File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 }'
You can’t perform that action at this time.
0 commit comments