Fix key API format auth help

This commit is contained in:
fawney19
2026-04-29 17:35:16 +08:00
parent e751289dfb
commit d6de917878
2 changed files with 87 additions and 107 deletions

View File

@@ -201,3 +201,8 @@ export function sortApiFormats(formats: string[]): string[] {
return aIdx - bIdx
})
}
// openai family 格式只支持 bearerAuthorization header不允许覆盖认证方式
export function formatSupportsAuthOverride(format: string): boolean {
return parseApiFormat(normalizeApiFormatAlias(format)).family !== 'openai'
}