This commit is contained in:
+2
-2
@@ -21,8 +21,8 @@ function priority(model: ModelInfo) {
|
||||
}
|
||||
|
||||
export async function discover(context: Plugin.Context, providerID: string) {
|
||||
// Native lists already apply activation, integrations, configuration, and catalog transforms.
|
||||
const { data } = await context.catalog.model.list();
|
||||
// Native lists already apply activation, integrations, configuration, and model transforms.
|
||||
const { data } = await context.model.list();
|
||||
const models = new Map<string, { model: ModelInfo; serviceTier: string | undefined }>();
|
||||
for (const model of data) {
|
||||
if (model.providerID === providerID && model.enabled)
|
||||
|
||||
Reference in New Issue
Block a user