feat: Anthropic oauth/setup-token账号支持自定义转发URL

This commit is contained in:
shaw
2026-03-30 08:50:12 +08:00
parent fdd8499ffc
commit b65275235f
9 changed files with 195 additions and 4 deletions

View File

@@ -268,6 +268,14 @@ func AccountFromServiceShallow(a *service.Account) *Account {
target := a.GetCacheTTLOverrideTarget()
out.CacheTTLOverrideTarget = &target
}
// 自定义 Base URL 中继转发
if a.IsCustomBaseURLEnabled() {
enabled := true
out.CustomBaseURLEnabled = &enabled
if customURL := a.GetCustomBaseURL(); customURL != "" {
out.CustomBaseURL = &customURL
}
}
}
// 提取账号配额限制apikey / bedrock 类型有效)