Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Gemini 1.5 Pro EXP 0801 #1826

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
8 changes: 7 additions & 1 deletion lib/chat-setting-limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ export const CHAT_SETTING_LIMITS: Record<LLMID, ChatSettingLimits> = {
},

// GOOGLE MODELS

"gemini-1.5-flash": {
MIN_TEMPERATURE: 0.0,
MAX_TEMPERATURE: 1.0,
MAX_TOKEN_OUTPUT_LENGTH: 8192,
MAX_CONTEXT_LENGTH: 1040384
},
"gemini-1.5-pro-exp-0801": {
MIN_TEMPERATURE: 0.0,
MAX_TEMPERATURE: 1.0,
MAX_TOKEN_OUTPUT_LENGTH: 8192,
MAX_CONTEXT_LENGTH: 1040384
},
"gemini-1.5-pro-latest": {
MIN_TEMPERATURE: 0.0,
MAX_TEMPERATURE: 1.0,
Expand Down
17 changes: 16 additions & 1 deletion lib/models/llm/google-llm-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ const GOOGLE_PLATORM_LINK = "https://ai.google.dev/"

// Google Models (UPDATED 12/22/23) -----------------------------

const GEMINI_1_5_PRO_EXP0801: LLM = {
modelId: "gemini-1.5-pro-exp-0801",
modelName: "Gemini 1.5 Pro Exp 0801",
provider: "google",
hostedId: "gemini-1.5-pro-exp-0801",
platformLink: GOOGLE_PLATORM_LINK,
imageInput: true
}

// Gemini 1.5 Flash
const GEMINI_1_5_FLASH: LLM = {
modelId: "gemini-1.5-flash",
Expand Down Expand Up @@ -44,4 +53,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_1_5_PRO_EXP0801,
GEMINI_PRO,
GEMINI_PRO_VISION,
GEMINI_1_5_PRO,
GEMINI_1_5_FLASH
]
1 change: 1 addition & 0 deletions types/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ 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-0801"

// Anthropic Models
export type AnthropicLLMID =
Expand Down