update llm-info

This commit is contained in:
Nate 2024-09-15 16:25:21 -07:00
parent 517a782d67
commit 874b375489
5 changed files with 49 additions and 18 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@continuedev/llm-info",
"version": "1.0.1",
"version": "1.0.2",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View file

@ -5,6 +5,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-3-5-sonnet-20240620",
displayName: "Claude 3.5 Sonnet",
contextLength: 200_000,
maxCompletionTokens: 8192,
description:
"Most intelligent model with the highest level of intelligence and capability.",
regex: /claude-3\.5-sonnet/i,
@ -13,6 +14,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-3-opus-20240229",
displayName: "Claude 3 Opus",
contextLength: 200_000,
maxCompletionTokens: 4096,
description:
"Powerful model for highly complex tasks with top-level performance, intelligence, fluency, and understanding.",
regex: /claude-3-opus/i,
@ -21,6 +23,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-3-sonnet-20240229",
displayName: "Claude 3 Sonnet",
contextLength: 200_000,
maxCompletionTokens: 4096,
description:
"Balance of intelligence and speed with strong utility, balanced for scaled deployments.",
regex: /claude-3-sonnet/i,
@ -29,6 +32,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-3-haiku-20240307",
displayName: "Claude 3 Haiku",
contextLength: 200_000,
maxCompletionTokens: 4096,
description:
"Fastest and most compact model for near-instant responsiveness with quick and accurate targeted performance.",
regex: /claude-3-haiku/i,
@ -37,6 +41,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-2.1",
displayName: "Claude 2.1",
contextLength: 200_000,
maxCompletionTokens: 4096,
description:
"Updated version of Claude 2 with improved accuracy and consistency.",
regex: /claude-2\.1/i,
@ -45,6 +50,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-2.0",
displayName: "Claude 2",
contextLength: 100_000,
maxCompletionTokens: 4096,
description:
"Predecessor to Claude 3, offering strong all-round performance.",
regex: /claude-2\.0/i,
@ -53,6 +59,7 @@ export const AnthropicLlms: LlmInfo[] = [
model: "claude-instant-1.2",
displayName: "Claude Instant 1.2",
contextLength: 100_000,
maxCompletionTokens: 4096,
description:
"Our cheapest small and fast model, a predecessor of Claude Haiku.",
regex: /claude-instant-1\.2/i,

View file

@ -5,6 +5,7 @@ export const GoogleLlms: LlmInfo[] = [
model: "gemini-1.5-flash",
displayName: "Gemini 1.5 Flash",
contextLength: 1_048_576,
maxCompletionTokens: 8192,
mediaTypes: AllMediaTypes,
regex: /gemini-1\.5-flash/i,
},
@ -12,6 +13,7 @@ export const GoogleLlms: LlmInfo[] = [
model: "gemini-1.5-pro",
displayName: "Gemini 1.5 Pro",
contextLength: 2_097_152,
maxCompletionTokens: 8192,
regex: /gemini-1\.5-pro/i,
},
{

View file

@ -4,48 +4,71 @@ export const OpenAiLlms: LlmInfo[] = [
{
model: "gpt-3.5-turbo",
displayName: "GPT-3.5 Turbo",
contextLength: 4096,
},
{
model: "gpt-3.5-turbo-0613",
displayName: "GPT-3.5 Turbo (0613)",
contextLength: 4096,
contextLength: 16_385,
maxCompletionTokens: 4096,
},
{
model: "gpt-3.5-turbo-16k",
displayName: "GPT-3.5 Turbo 16K",
contextLength: 16384,
maxCompletionTokens: 4096,
},
{
model: "gpt-35-turbo-16k",
displayName: "GPT-3.5 Turbo 16K",
contextLength: 16384,
maxCompletionTokens: 4096,
},
{
model: "gpt-35-turbo-0613",
displayName: "GPT-3.5 Turbo (0613)",
contextLength: 4096,
maxCompletionTokens: 4096,
},
{
model: "gpt-35-turbo",
displayName: "GPT-3.5 Turbo",
contextLength: 4096,
maxCompletionTokens: 4096,
},
// gpt-4
{
model: "gpt-4",
displayName: "GPT-4",
contextLength: 4096,
contextLength: 8192,
maxCompletionTokens: 8192,
},
{
model: "gpt-4-32k",
displayName: "GPT-4 32K",
contextLength: 4096,
contextLength: 32_000,
maxCompletionTokens: 8192,
},
{
model: "gpt-4-turbo-preview",
displayName: "GPT-4 Turbo Preview",
contextLength: 128_000,
maxCompletionTokens: 4096,
},
{
model: "gpt-4-vision",
displayName: "GPT-4 Vision",
contextLength: 128_000,
maxCompletionTokens: 4096,
},
{
model: "gpt-4-0125-preview",
displayName: "GPT-4 (0125 Preview)",
contextLength: 128_000,
maxCompletionTokens: 4096,
},
{
model: "gpt-4-1106-preview",
displayName: "GPT-4 (1106 Preview)",
contextLength: 128_000,
maxCompletionTokens: 4096,
},
// gpt-4o
{
model: "gpt-4o",
displayName: "GPT-4o",
@ -56,19 +79,17 @@ export const OpenAiLlms: LlmInfo[] = [
displayName: "GPT-4o Mini",
contextLength: 128_000,
},
// o1
{
model: "gpt-4-vision",
displayName: "GPT-4 Vision",
model: "o1-preview",
displayName: "o1 Preview",
contextLength: 128_000,
maxCompletionTokens: 32_768,
},
{
model: "gpt-4-0125-preview",
displayName: "GPT-4 (0125 Preview)",
contextLength: 128_000,
},
{
model: "gpt-4-1106-preview",
displayName: "GPT-4 (1106 Preview)",
model: "o1-mini",
displayName: "o1 Mini",
contextLength: 128_000,
maxCompletionTokens: 65_536,
},
];

View file

@ -3,6 +3,7 @@ export interface LlmInfo {
displayName?: string;
description?: string;
contextLength?: number;
maxCompletionTokens?: number;
regex?: RegExp;
/** If not set, assumes "text" only */