跳到正文
原文
OpenRouter Blog·· 2026-08-12AI 评分38

OpenRouter 指南:写一次工具调用循环,换模型字符串即可跨 Claude、GPT 与开源模型

Tool Calling Across Any Model: Write the Loop Once, Swap the Model String

AI 导读

OpenRouter 发布工具调用指南,用同一套 OpenAI 兼容 JSON schema 定义 get_weather(location, unit),只需改 model 字符串就能在 Claude、GPT 和开源权重模型间切换。

来源:OpenRouter Blog · openrouter.ai