merge: pull request #2837 from gitlawb specialty validators

This commit is contained in:
diegosouzapw
2026-05-29 09:20:01 -03:00
137 changed files with 40418 additions and 0 deletions

View File

@@ -701,6 +701,22 @@ const PROVIDER_MODELS_CONFIG: Record<string, ProviderModelsConfigEntry> = {
authPrefix: "Bearer ",
parseResponse: (data) => data.data || data.models || [],
},
gitlawb: {
url: "https://opengateway.gitlawb.com/v1/xiaomi-mimo/models",
method: "GET",
headers: { "Content-Type": "application/json" },
authHeader: "Authorization",
authPrefix: "Bearer ",
parseResponse: (data) => data.data || data.models || [],
},
"gitlawb-gmi": {
url: "https://opengateway.gitlawb.com/v1/gmi-cloud/models",
method: "GET",
headers: { "Content-Type": "application/json" },
authHeader: "Authorization",
authPrefix: "Bearer ",
parseResponse: (data) => data.data || data.models || [],
},
};
/**
@@ -1950,6 +1966,8 @@ export async function GET(
});
}
const localCatalog = mergeLocalCatalogModels(registryCatalogModels, specialtyCatalogModels);
if (!config && localCatalog.length > 0) {
return buildResponse({