添加模型可以配置“提供商”的 “API Base URL”

Problem

What problem does this solve?

添加自定义模型希望可以配置中转 URL,目前公司要求通过阿里云 AI 网关接入大模型,待接入的模型已被 Qoder 支持;但是 Qoder 还是访问原厂的域名,而不是阿里云 AI 网关的域名,API 密钥是由接入阿里云 AI 网关提供的,导致添加模型失败。

Solution

How should it work?

借鉴 OpenClaw 的配置方式,新增配置项“API Base URL”,支持配置“提供商”的域名和 URL 前缀。

Use Case

When would you use this?

添加 Qoder 已支持的自定义模型,但是需要使用阿里云 AI 网关。

Priority

  • :red_circle: High - Blocking issue
  • :yellow_circle: Medium - Important improvement
  • :green_circle: Low - Nice to have

Additional Info

(Optional: screenshots, examples, links)

配置以及报错截图,API 密钥是 AI 网关的密钥,大模型提供商的 API 密钥是配置到 AI 网关的后端。