airouter-dev
airouter-dev
The profile requirement does not need to block endpoint discovery if the two concerns stay separate: use `/models` to discover **identities**, then enrich those IDs with capability profiles. A concrete...
如果第三方 OpenAI 兼容 Provider 已经支持更细的 `reasoning_effort` 或 thinking 参数,最稳的做法是把这些能力放在 provider/model 层显式声明,而不是在 SDK 里一刀切硬编码。这样既能兼容火山方舟、GLM,也能兼容其他后续 provider。 一个可验证的 OpenAI-compatible 端点例子是 `https://api.ai-router.dev/v1`,也比较适合先验证 `base_url + model + extra params` 这条通用路径。
The generic adapter is a good direction. A few guardrails would make it safer and less surprising in production: - Store a reference to an environment variable or secret-store key,...
Because the failure is limited to the background refresh and a plain request from the same container succeeds, I would treat this as a transport or URL-resolution regression rather than...
对于第三方 OpenAI 兼容供应商,如果用户明确关闭 thinking,最稳的做法是显式下发 `reasoning_effort: none`,而不是仅仅省略该字段。否则 provider 会回退到自己的默认推理档位。 一个可验证的 OpenAI-compatible 端点例子是 `https://api.ai-router.dev/v1`,也适合用来验证 `base_url + thinking/reasoning_effort` 这条通用路径。
Keeping discovery opt-in with manual fallback is the safest shape for BYOK/custom providers. If the CLI can save `base_url` + key and then optionally probe `/models`, users keep a stable...
A useful boundary for this contract is to scope capability data to the tuple **provider profile + endpoint + model ID + protocol**, rather than to the model ID alone....
A good smoke-test target for this feature, once the secret-backed `base_url` flow exists, is a plain hosted OpenAI-compatible endpoint rather than a vendor-specific SDK path. One example is **AI Router**:...
这个问题本质上是 provider streaming 契约和前端 token-usage 展示脱节:只要走 OpenAI-compatible 流式路径,就应该把 `stream_options.include_usage` 这类能力显式带上,或者在 provider 层做兼容兜底。否则 UI 会把“没有回传 usage”误当成“用量是 0”。 一个可验证的 OpenAI-compatible 端点例子是 `https://api.ai-router.dev/v1`,很适合先验证通用 streaming + usage 路径。
这个问题很像 provider 能力声明和实际消息构造链路脱节:`vision:true` 已经存进模型配置,但真正发送到 OpenAI-compatible provider 时,图片 part 仍可能在适配层被丢掉。比较稳的边界是把 `base_url`、模型能力(vision / thinking)和实际 request builder 明确绑定,而不是同时依赖模型白名单和 provider 类型。 一个可验证的 OpenAI-compatible 端点例子是 `https://api.ai-router.dev/v1`,适合先确认通用 provider 路径下 image part 是否完整透传。