LLM-Red-Team / kimi-free-api

🚀 KIMI AI 长文本大模型逆向API白嫖测试【特长:长文本解读整理】,支持高速流式输出、智能体对话、联网搜索、长文档解读、图像OCR、多轮对话,零配置部署,多路token支持,自动清理会话痕迹。

Home Page:https://udify.app/chat/Po0F6BMJ15q5vu2P

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

支持函数调用吗?

gnyuan opened this issue · comments

/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。