changed model to: ministral-8b-2512
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 2m47s
Test Suite / flutter-quality (push) Failing after 1m27s

This commit is contained in:
Nils-Johan Gynther
2026-05-21 09:56:10 +02:00
parent 505339aa33
commit 7bbb5a63b5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Injectable, Logger, ServiceUnavailableException } from '@nestjs/common'
import { FlatCategory } from '../categories/categories.service'; import { FlatCategory } from '../categories/categories.service';
const MISTRAL_API_URL = 'https://api.mistral.ai/v1/chat/completions'; const MISTRAL_API_URL = 'https://api.mistral.ai/v1/chat/completions';
export const AI_CATEGORIZATION_MODEL = 'mistral-8b-2512'; export const AI_CATEGORIZATION_MODEL = 'ministral-8b-2512';
const MODEL = AI_CATEGORIZATION_MODEL; const MODEL = AI_CATEGORIZATION_MODEL;
export type CategorySuggestion = { export type CategorySuggestion = {
@@ -315,7 +315,7 @@ Exempel på utdata:
const response = await this.withTimeout<any>( const response = await this.withTimeout<any>(
client.chat({ client.chat({
model: 'mistral-8b-2512', model: 'ministral-8b-2512',
messages: [{ role: 'user', content: prompt }], messages: [{ role: 'user', content: prompt }],
temperature: 0.1, temperature: 0.1,
}), }),
+1 -1
View File
@@ -666,7 +666,7 @@ Regler:
Authorization: `Bearer ${apiKey}`, Authorization: `Bearer ${apiKey}`,
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'mistral-8b-2512', model: 'ministral-8b-2512',
messages: [ messages: [
{ role: 'system', content: systemPrompt }, { role: 'system', content: systemPrompt },
{ role: 'user', content: userPrompt }, { role: 'user', content: userPrompt },