Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions lib/models/llm/google-llm-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LLM } from "@/types"

const GOOGLE_PLATORM_LINK = "https://ai.google.dev/"

// Google Models (UPDATED 12/22/23) -----------------------------
// Google Models (UPDATED 9/09/24) -----------------------------

// Gemini 1.5 Flash
const GEMINI_1_5_FLASH: LLM = {
Expand Down Expand Up @@ -31,9 +31,16 @@ const GEMINI_PRO: LLM = {
provider: "google",
hostedId: "gemini-pro",
platformLink: GOOGLE_PLATORM_LINK,
imageInput: false
imageInput: true
}
const GEMINI_1_5_PRO_EXP0827: LLM = {
modelId: "gemini-1.5-pro-exp-0827",
modelName: "Gemini 1.5 Pro Experimental 0827",
provider: "google",
hostedId: "gemini-1.5-pro-exp-0827",
platformLink: GOOGLE_PLATORM_LINK,
imageInput: true
}

// Gemini Pro Vision (UPDATED 12/22/23)
const GEMINI_PRO_VISION: LLM = {
modelId: "gemini-pro-vision",
Expand All @@ -44,4 +51,10 @@ const GEMINI_PRO_VISION: LLM = {
imageInput: true
}

export const GOOGLE_LLM_LIST: LLM[] = [GEMINI_PRO, GEMINI_PRO_VISION, GEMINI_1_5_PRO, GEMINI_1_5_FLASH]
export const GOOGLE_LLM_LIST: LLM[] = [
GEMINI_PRO,
GEMINI_1_5_PRO_EXP0827,
GEMINI_PRO_VISION,
GEMINI_1_5_PRO,
GEMINI_1_5_FLASH
]
22 changes: 20 additions & 2 deletions lib/models/llm/openai-llm-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@ import { LLM } from "@/types"

const OPENAI_PLATORM_LINK = "https://platform.openai.com/docs/overview"

// OpenAI Models (UPDATED 1/25/24) -----------------------------
// OpenAI Models (UPDATED 10/09/24) -----------------------------

const GPT4oMini: LLM = {
modelId: "gpt-4o-mini",
modelName: "GPT-4o Mini",
provider: "openai",
hostedId: "gpt-4o-mini",
platformLink: OPENAI_PLATORM_LINK,
imageInput: true,
pricing: {
currency: "USD",
unit: "1M tokens",
inputCost: 0.15,
outputCost: 0.6
}
}

const GPT4o: LLM = {
modelId: "gpt-4o",
modelName: "GPT-4o",
Expand Down Expand Up @@ -72,7 +88,7 @@ const GPT3_5Turbo: LLM = {
provider: "openai",
hostedId: "gpt-3.5-turbo",
platformLink: OPENAI_PLATORM_LINK,
imageInput: false,
imageInput: true,
pricing: {
currency: "USD",
unit: "1M tokens",
Expand All @@ -86,5 +102,7 @@ export const OPENAI_LLM_LIST: LLM[] = [
GPT4Turbo,
GPT4Vision,
GPT4,
GPT4oMini,
GPT3_5Turbo

]
3 changes: 3 additions & 0 deletions types/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type LLMID =

// OpenAI Models (UPDATED 5/13/24)
export type OpenAILLMID =
|"gpt-4o-mini" // GPT-4o Mini
| "gpt-4o" // GPT-4o
| "gpt-4-turbo-preview" // GPT-4 Turbo
| "gpt-4-vision-preview" // GPT-4 Vision
Expand All @@ -22,6 +23,8 @@ export type GoogleLLMID =
| "gemini-pro-vision" // Gemini Pro Vision
| "gemini-1.5-pro-latest" // Gemini 1.5 Pro
| "gemini-1.5-flash" // Gemini 1.5 Flash
| "gemini-1.5-pro-exp-0827" // Gemini 1.5 Pro Exp 0827


// Anthropic Models
export type AnthropicLLMID =
Expand Down