feat(auth-files): add auth-file model suggestions for OAuth mappings

This commit is contained in:
LTbinglingfeng
2026-01-24 15:30:45 +08:00
parent 2715f44a5e
commit c89bbd5098
6 changed files with 257 additions and 42 deletions

View File

@@ -20,7 +20,7 @@ const normalizeBaseUrl = (baseUrl: string): string => {
const buildModelsEndpoint = (baseUrl: string): string => {
const normalized = normalizeBaseUrl(baseUrl);
if (!normalized) return '';
return normalized.endsWith('/v1') ? `${normalized}/models` : `${normalized}/v1/models`;
return `${normalized}/models`;
};
export const modelsApi = {