支持函数调用吗?
gnyuan opened this issue · comments
gnyuan commented
在/v1/chat/completions
接口中定义以下函数,它似乎不理解。
"tools": [
{
"type": "code_interpreter"
},
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA",
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"]},
},
"required": ["location"],
},
},
}
],