Skip to content

Commit

Permalink
Mistral: update pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed May 16, 2024
1 parent 6afb61d commit 05aa4b5
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions src/modules/llms/server/openai/models.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ export function localAIModelToModelDescription(modelId: string): ModelDescriptio


// [Mistral]
// updated from the models on: https://docs.mistral.ai/getting-started/models/
// and the pricing available on: https://mistral.ai/technology/#pricing

const _knownMistralChatModels: ManualMappings = [
// Large
Expand All @@ -385,7 +387,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Top-tier reasoning for high-complexity tasks.',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
pricing: { chatIn: 8, chatOut: 24 },
pricing: { chatIn: 4, chatOut: 12 },
benchmark: { cbaElo: 1159 },
},
{
Expand All @@ -397,17 +399,9 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Top-tier reasoning for high-complexity tasks.',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
pricing: { chatIn: 8, chatOut: 24 },
pricing: { chatIn: 4, chatOut: 12 },
benchmark: { cbaElo: 1159 },
},
{
idPrefix: 'mistral-large',
label: 'Mistral Large (?)',
description: 'Top-tier reasoning for high-complexity tasks.',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat],
hidden: true,
},

// Open Mixtral (8x22B)
{
Expand All @@ -416,7 +410,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Mixtral 8x22B model',
contextWindow: 65536,
interfaces: [LLM_IF_OAI_Chat],
pricing: { chatIn: 1.5, chatOut: 4.5 },
pricing: { chatIn: 2, chatOut: 6 },
},
{
idPrefix: 'open-mixtral-8x22b',
Expand All @@ -427,7 +421,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Mixtral 8x22B model',
contextWindow: 65536,
interfaces: [LLM_IF_OAI_Chat],
pricing: { chatIn: 1.5, chatOut: 4.5 },
pricing: { chatIn: 2, chatOut: 6 },
},
// Medium (Deprecated)
{
Expand Down Expand Up @@ -468,7 +462,7 @@ const _knownMistralChatModels: ManualMappings = [
hidden: true,
},

// Open Mixtral (8x7B) -> currenty points to `mistral-small-2312` (as per the docs)
// Open Mixtral (8x7B) -> currently points to `mistral-small-2312` (as per the docs)
{
idPrefix: 'open-mixtral-8x7b',
label: 'Open Mixtral (8x7B)',
Expand All @@ -484,7 +478,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Suitable for simple tasks that one can do in bulk (Classification, Customer Support, or Text Generation)',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
pricing: { chatIn: 2, chatOut: 6 },
pricing: { chatIn: 1, chatOut: 3 },
hidden: true,
isLegacy: true,
},
Expand All @@ -496,7 +490,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Suitable for simple tasks that one can do in bulk (Classification, Customer Support, or Text Generation)',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
pricing: { chatIn: 2, chatOut: 6 },
pricing: { chatIn: 1, chatOut: 3 },
hidden: true,
isLegacy: true,
},
Expand All @@ -506,7 +500,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Aka open-mixtral-8x7b. Suitable for simple tasks that one can do in bulk (Classification, Customer Support, or Text Generation)',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat],
pricing: { chatIn: 2, chatOut: 6 },
pricing: { chatIn: 1, chatOut: 3 },
hidden: true,
isLegacy: true,
},
Expand All @@ -518,7 +512,7 @@ const _knownMistralChatModels: ManualMappings = [
description: 'Aka open-mixtral-8x7b. Suitable for simple tasks that one can do in bulk (Classification, Customer Support, or Text Generation)',
contextWindow: 32768,
interfaces: [LLM_IF_OAI_Chat],
pricing: { chatIn: 2, chatOut: 6 },
pricing: { chatIn: 1, chatOut: 3 },
hidden: true,
isLegacy: true,
},
Expand Down Expand Up @@ -555,14 +549,14 @@ const _knownMistralChatModels: ManualMappings = [
isLegacy: true,
},


{
idPrefix: 'mistral-embed',
label: 'Mistral Embed',
description: 'A model that converts text into numerical vectors of embeddings in 1024 dimensions. Embedding models enable retrieval and retrieval-augmented generation applications.',
maxCompletionTokens: 1024, // HACK - it's 1024 dimensions, but those are not 'completion tokens'
contextWindow: 8192, // Updated context window
interfaces: [],
pricing: { chatIn: 0.1, chatOut: 0.1 },
hidden: true,
},
];
Expand Down

0 comments on commit 05aa4b5

Please sign in to comment.