Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 发现了一个官方与非官方调用url的问题 #5533

Closed
alltobebetter opened this issue Sep 26, 2024 · 3 comments
Closed

[Bug] 发现了一个官方与非官方调用url的问题 #5533

alltobebetter opened this issue Sep 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@alltobebetter
Copy link

📦 部署方式

Vercel

📌 软件版本

2.15.3

💻 系统环境

Other Linux

📌 系统版本

vercel

🌐 浏览器

Chrome, Edge

📌 浏览器版本

all

🐛 问题描述

假设我们在vercel上部署,并且使用某些以openai的url格式的镜像(或者说是代理)站点来使用的话,claude-3-5-sonnet-20240620 是无法正常使用的,因为claude-3-5-sonnet-20240620使用的是anthropic的url来调用,纯小白,不知道怎么改调用的url
另外,用环境变量只改动claude的baseurl也没用,因为调用方式是openai

📷 复现步骤

部署环境变量的时候用非官方的站点。

🚦 期望结果

了解修改哪些文件可以修改调用url

📝 补充信息

No response

@alltobebetter alltobebetter added the bug Something isn't working label Sep 26, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Found a problem between official and unofficial calling URLs

📦 Deployment method

Vercel

📌 Software version

2.15.3

💻 System environment

Other Linux

📌 System version

vercel

🌐 Browser

Chrome, Edge

📌 Browser version

all

🐛 Problem description

Suppose we deploy on vercel and use some mirror (or proxy) sites in openai's url format, claude-3-5-sonnet-20240620 cannot be used normally because claude-3-5 -sonnet-20240620 uses the anthropopic url to call. I am a novice and don’t know how to change the calling url.
In addition, it is useless to use environment variables to only change claude's baseurl, because the calling method is openai

📷 Steps to reproduce

Use unofficial sites when deploying environment variables.

🚦 Expected results

Understand which files can be modified to modify the calling URL

📝 Supplementary information

No response

@lloydzhou
Copy link
Member

see #5001

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


see #5001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants