feat(ai): implement AI models management and configuration in admin panel

This commit is contained in:
Nils-Johan Gynther
2026-04-19 11:07:15 +02:00
parent e7c8fd8416
commit f3db5ba51a
10 changed files with 341 additions and 3 deletions
+2 -1
View File
@@ -2,7 +2,8 @@ import { Injectable, Logger, ServiceUnavailableException } from '@nestjs/common'
import { FlatCategory } from '../categories/categories.service';
const MISTRAL_API_URL = 'https://api.mistral.ai/v1/chat/completions';
const MODEL = 'mistral-small-2603';
export const AI_CATEGORIZATION_MODEL = 'mistral-small-2603';
const MODEL = AI_CATEGORIZATION_MODEL;
export type CategorySuggestion = {
categoryId: number;