Skip to content

Commit

Permalink
Merge PR #340: Add Gemini-exp-20241114.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698218488
  • Loading branch information
daiyip authored and langfun authors committed Nov 20, 2024
1 parent ee0917c commit 9934bbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions langfun/core/llms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

# Gemini models.
from langfun.core.llms.google_genai import GenAI
from langfun.core.llms.google_genai import GeminiExp_20241114
from langfun.core.llms.google_genai import GeminiFlash1_5
from langfun.core.llms.google_genai import GeminiPro
from langfun.core.llms.google_genai import GeminiPro1_5
Expand Down
10 changes: 9 additions & 1 deletion langfun/core/llms/google_genai.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class GenAI(lf.LanguageModel):
'text-bison-001',
'chat-bison-001',
'gemini-1.5-pro-latest',
'gemini-1.5-flash-latest'
'gemini-1.5-flash-latest',
'gemini-exp-1114',
],
'Model name.',
]
Expand Down Expand Up @@ -344,6 +345,13 @@ def get(
]


class GeminiExp_20241114(GenAI): # pylint: disable=invalid-name
"""Gemini Experimental model launched on 11/14/2024."""

model = 'gemini-exp-1114'
supported_modalities = _PDF + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES


class GeminiPro1_5(GenAI): # pylint: disable=invalid-name
"""Gemini Pro latest model."""

Expand Down

0 comments on commit 9934bbf

Please sign in to comment.