Simon Willison 介绍使用 OpenRouter 的供应商路由陷阱与对策

Simon Willison 博客·2026-09-12 06:49·40分钟前
AI 导读

Simon Willison 转述 Mohamed Moustafa 对 OpenRouter 自动路由的问题分析。不同供应商的推理软件、优化设置不同,同一端点可能行为不一致,部分供应商的视觉模型缺少视觉能力,reasoning effort 参数的处理方式也有差异。可用 provider.only 指定供应商,并通过 /endpoints 方法查询某模型可用供应商列表。

Simon Willison 博客
59AI 编辑部评分,满分 100

Simon Willison 介绍使用 OpenRouter 的供应商路由陷阱与对策

2026-09-12 06:49· 40分钟前
AI 导读

Simon Willison 转述 Mohamed Moustafa 对 OpenRouter 自动路由的问题分析。不同供应商的推理软件、优化设置不同,同一端点可能行为不一致,部分供应商的视觉模型缺少视觉能力,reasoning effort 参数的处理方式也有差异。可用 provider.only 指定供应商,并通过 /endpoints 方法查询某模型可用供应商列表。

One of OpenRouter's selling points is that it "handles fallbacks automatically and picks the most cost-effective option for each request", so you can call a single API endpoint for a model and get routed to the best available backend provider.

Mohamed Moustafa points out a whole set of ways that this can cause you problems. Different providers run different serving software with different optimizations and settings, which means that the same OpenRouter endpoint can serve model requests that behave in different ways.

Some providers even lack vision capability for vision models, and the way the reasoning effort option is processed can differ as well.

Thankfully you can control which provider is routed to using the provider.only option. The /endpoints method returns the list of available providers for a specific model ID.

来源:Simon Willison 博客· simonwillison.net