Skip to content

Commit

Permalink
Fix duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-sudre committed Oct 24, 2024
1 parent b9ea682 commit eaecce0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions app/lib/.server/llm/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit eaecce0

Please sign in to comment.