diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 39b8b6f..8506a08 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -1,6 +1,5 @@ import { z } from "zod"; import { createAzure } from '@ai-sdk/azure'; -import { mistral } from '@ai-sdk/mistral'; import { convertToCoreMessages, streamText, @@ -50,7 +49,6 @@ const anthropicVertex = createAnthropicVertex({ const registry = experimental_createProviderRegistry({ anthropicVertex, azure, - mistral, }); function sanitizeUrl(url: string): string { @@ -73,7 +71,7 @@ export async function POST(req: Request) { const result = await streamText({ model: registry.languageModel(model), messages: convertToCoreMessages(messages), - temperature: provider === "azure" ? 0.72 : provider === "mistral" ? 0.5 : 0, + temperature: provider === "azure" ? 0.72 : 0, topP: 0.5, frequencyPenalty: 0, presencePenalty: 0,