[Bug] Anthropic AI 配置 API 代理地址出错 #4497
-
📦 部署环境Docker 📌 软件版本v1.24.1 💻 系统环境Ubuntu 🌐 浏览器Chrome 🐛 问题描述在环境变量下配置 Anthropic AI 的 API 代理地址为 📷 复现步骤配置 Anthropic AI 的 API 代理地址为 🚦 期望结果如果配置了一个含有 📝 补充信息这在很多 API 代理或者聚合平台上是非常常见的,他们会提供一个 OpenAI 的兼容模式,而不是为每个模型单独适配 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
📦 Deployment environmentDocker 📌 Software versionv1.24.1 💻 System environmentUbuntu 🌐 BrowserChrome 🐛 Problem descriptionWhen configuring Anthropic AI's API proxy addresses as 📷 Steps to reproduceConfigure Anthropic AI’s API proxy addresses as 🚦 Expected resultsIf an API proxy address containing 📝 Supplementary informationThis is very common on many API proxies or aggregation platforms. They will provide an OpenAI compatibility mode instead of adapting each model individually |
Beta Was this translation helpful? Give feedback.
-
👀 @Oniokey Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hello @Oniokey! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together! The issue you're encountering is related to the automatic appending of To address this, you might need to modify the code responsible for constructing the API URL to check if the base URL already contains a path segment and prevent appending additional segments in such cases. This would require a code change in the URL construction logic to meet your specific needs. |
Beta Was this translation helpful? Give feedback.
-
第三方API代理的直接放到opanai那里面就好了 |
Beta Was this translation helpful? Give feedback.
-
Just put the third-party API proxy directly into opanai. |
Beta Was this translation helpful? Give feedback.
-
既然提供了 OpenAI 兼容模式,那就应该把代理地址填到 OpenAI 的provider 配置项下。你把 OpenAI 的转发地址填到 Anthropic 里自然就没法用。 |
Beta Was this translation helpful? Give feedback.
既然提供了 OpenAI 兼容模式,那就应该把代理地址填到 OpenAI 的provider 配置项下。你把 OpenAI 的转发地址填到 Anthropic 里自然就没法用。