Closed gnyuan closed 4 months ago
在/v1/chat/completions接口中定义以下函数,它似乎不理解。
/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"], }, }, } ],
@gnyuan free-api系列目前不支持function call。
后面有支持计划吗?
在
/v1/chat/completions
接口中定义以下函数,它似乎不理解。