mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
Fix key API format auth help
This commit is contained in:
@@ -201,3 +201,8 @@ export function sortApiFormats(formats: string[]): string[] {
|
||||
return aIdx - bIdx
|
||||
})
|
||||
}
|
||||
|
||||
// openai family 格式只支持 bearer(Authorization header),不允许覆盖认证方式
|
||||
export function formatSupportsAuthOverride(format: string): boolean {
|
||||
return parseApiFormat(normalizeApiFormatAlias(format)).family !== 'openai'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user