Call updated to match the tool used in the output just below, following the example in https://github.com/ggerganov/llama.cpp/pull/9639
{
"type":"function",
"function":{
- "name":"get_current_weather",
- "description":"Get the current weather in a given location",
+ "name":"python",
+ "description":"Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.",
"parameters":{
"type":"object",
"properties":{
- "location":{
+ "code":{
"type":"string",
- "description":"The city and state, e.g. San Francisco, CA"
+ "description":"The code to run in the ipython interpreter."
}
},
- "required":["location"]
+ "required":["code"]
}
}
}
"messages": [
{
"role": "user",
- "content": "What is the weather like in Istanbul?."
+ "content": "Print a hello world message with python."
}
]
}'