feat(auth): load model lists via /model-definitions/{channel} instead of per-file

model sources.
This commit is contained in:
hkfires
2026-01-27 14:27:26 +08:00
parent 0c53dcfa80
commit 2bf721974b
5 changed files with 114 additions and 201 deletions

View File

@@ -34,11 +34,11 @@ export interface OAuthExcludedModels {
models: string[];
}
// OAuth 模型映射
export interface OAuthModelMappingEntry {
// OAuth 模型别名
export interface OAuthModelAliasEntry {
name: string;
alias: string;
fork?: boolean;
}
export type OAuthModelMappings = Record<string, OAuthModelMappingEntry[]>;
export type OAuthModelAlias = Record<string, OAuthModelAliasEntry[]>;