Refactor code structure for improved readability and maintainability
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user