LinkLoomAI Editorial

Simon Willison's Weblog

大咖博客训推与基建昨天 06:49精选

70

Score

So you want to use OpenRouter?

AI 摘要

模型生成,可能有偏差;请以原文为准

Simon Willison 发文探讨 OpenRouter 聚合路由机制在实际落地中的潜在隐患。由于不同底层后端采用不同的 Serving 软件与推理参数配置,同一接口可能出现视觉能力缺失或思考参数处理不一致等行为差异。开发者可通过设置 provider.only 参数或调用 /endpoints 接口精确控制指定后端,避免因自动回退导致请求结果不稳定。

正文

So you want to use OpenRouter?

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.

Via Hacker News

Tags: ai, generative-ai, llms, openrouter

部署·工程教程·实践
So you want to use OpenRouter? · LinkLoom