From eaecce03aaa288b5c09dfa472c1cae788e1a993f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Sudre?= Date: Thu, 24 Oct 2024 23:27:56 +0200 Subject: [PATCH] Fix duplicate --- app/lib/.server/llm/model.ts | 9 --------- package.json | 1 - 2 files changed, 10 deletions(-) diff --git a/app/lib/.server/llm/model.ts b/app/lib/.server/llm/model.ts index af47dd065..3cc75ecc9 100644 --- a/app/lib/.server/llm/model.ts +++ b/app/lib/.server/llm/model.ts @@ -4,7 +4,6 @@ import { getAPIKey, getBaseURL } from '~/lib/.server/llm/api-key'; import { createAnthropic } from '@ai-sdk/anthropic'; import { createOpenAI } from '@ai-sdk/openai'; import { createGoogleGenerativeAI } from '@ai-sdk/google'; -import { createMistral } from '@ai-sdk/mistral'; import { ollama } from 'ollama-ai-provider'; import { createOpenRouter } from '@openrouter/ai-sdk-provider'; import { mistral } from '@ai-sdk/mistral'; @@ -33,14 +32,6 @@ export function getOpenAIModel(apiKey: string, model: string) { return openai(model); } -export function getMistralModel(apiKey: string, model: string) { - const mistral = createMistral({ - apiKey, - }); - - return mistral(model); -} - export function getGoogleModel(apiKey: string, model: string) { const google = createGoogleGenerativeAI(apiKey); diff --git a/package.json b/package.json index 96a61f8ac..173c385f9 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "@ai-sdk/google": "^0.0.52", "@ai-sdk/mistral": "^0.0.44", "@ai-sdk/openai": "^0.0.66", - "@ai-sdk/mistral": "^0.0.43", "@codemirror/autocomplete": "^6.17.0", "@codemirror/commands": "^6.6.0", "@codemirror/lang-cpp": "^6.0.2",