Skip to content

Commit

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

# 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
from langfun.core.llms.google_genai import GeminiProVision
from langfun.core.llms.google_genai import Palm2
from langfun.core.llms.google_genai import Palm2_IT
from langfun.core.llms.google_genai import GeminiExp_20241114

# OpenAI models.
from langfun.core.llms.openai import OpenAI
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 6d55d1d

Please sign in to comment.