diff --git a/packages/backend/src/managers/catalogManager.ts b/packages/backend/src/managers/catalogManager.ts index ef8bf68ab..c8db5a1e0 100644 --- a/packages/backend/src/managers/catalogManager.ts +++ b/packages/backend/src/managers/catalogManager.ts @@ -29,7 +29,6 @@ export class CatalogManager { return this.catalog.recipes; } - async loadCatalog() { const catalogPath = path.resolve(this.appUserDirectory, 'catalog.json'); try { diff --git a/packages/backend/src/studio-api-impl.ts b/packages/backend/src/studio-api-impl.ts index e978ff19c..823c249d1 100644 --- a/packages/backend/src/studio-api-impl.ts +++ b/packages/backend/src/studio-api-impl.ts @@ -20,7 +20,6 @@ import { CatalogManager } from './managers/catalogManager'; export const RECENT_CATEGORY_ID = 'recent-category'; export class StudioApiImpl implements StudioAPI { - constructor( private applicationManager: ApplicationManager, private recipeStatusRegistry: RecipeStatusRegistry, @@ -118,7 +117,6 @@ export class StudioApiImpl implements StudioAPI { } askPlayground(modelId: string, prompt: string): Promise { - const localModelInfo = this.applicationManager.getLocalModels().filter(m => m.id === modelId); if (localModelInfo.length !== 1) { throw new Error('model not found'); diff --git a/packages/backend/src/studio.ts b/packages/backend/src/studio.ts index 7067dcfcd..19358d3ff 100644 --- a/packages/backend/src/studio.ts +++ b/packages/backend/src/studio.ts @@ -101,7 +101,7 @@ export class Studio { recipeStatusRegistry, taskRegistry, this.playgroundManager, - this.catalogManager + this.catalogManager, ); await this.catalogManager.loadCatalog();