Files
recipe-app/backend/dist/ai/ai.service.d.ts
T
Nils-Johan Gynther 969dafdbc6
Test Suite / test (24.15.0) (push) Has been cancelled
Refactor code structure for improved readability and maintainability
2026-05-06 07:37:59 +02:00

15 lines
497 B
TypeScript

import { FlatCategory } from '../categories/categories.service';
export declare const AI_CATEGORIZATION_MODEL = "mistral-tiny";
export type CategorySuggestion = {
categoryId: number;
categoryName: string;
path: string;
confidence: 'high' | 'medium' | 'low';
usedFallback: boolean;
};
export declare class AiService {
private readonly logger;
suggestCategory(productName: string, categories: FlatCategory[]): Promise<CategorySuggestion>;
private fallbackToOvrigt;
}