changed model to: ministral-8b-2512
This commit is contained in:
@@ -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,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user