From d1f590aa7b319307fdec3d0e201892ca3a97698a Mon Sep 17 00:00:00 2001 From: huanghejian Date: Sat, 27 Sep 2025 15:19:54 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/channel/volcengine/adaptor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relay/channel/volcengine/adaptor.go b/relay/channel/volcengine/adaptor.go index 5bea7d46..21d6e170 100644 --- a/relay/channel/volcengine/adaptor.go +++ b/relay/channel/volcengine/adaptor.go @@ -9,6 +9,7 @@ import ( "mime/multipart" "net/http" "net/textproto" + channelconstant "one-api/constant" "one-api/dto" "one-api/relay/channel" "one-api/relay/channel/openai" @@ -191,7 +192,7 @@ func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) { // 支持自定义域名,如果未设置则使用默认域名 baseUrl := info.ChannelBaseUrl if baseUrl == "" { - baseUrl = "https://ark.cn-beijing.volces.com" + baseUrl = channelconstant.ChannelBaseURLs[channelconstant.ChannelTypeVolcEngine] } switch info.RelayMode {