Skip to content

Commit

Permalink
add support for GeminiExp_20241206.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704360193
  • Loading branch information
imxj authored and langfun authors committed Dec 9, 2024
1 parent bcf7697 commit aa8c79c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions langfun/core/llms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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 GeminiExp_20241206
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
8 changes: 8 additions & 0 deletions langfun/core/llms/google_genai.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class GenAI(lf.LanguageModel):
'gemini-1.5-pro-latest',
'gemini-1.5-flash-latest',
'gemini-exp-1114',
'gemini-exp-1206',
],
'Model name.',
]
Expand Down Expand Up @@ -345,6 +346,13 @@ def get(
]


class GeminiExp_20241206(GenAI): # pylint: disable=invalid-name
"""Gemini Experimental model launched on 12/06/2024."""

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


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

Expand Down

0 comments on commit aa8c79c

Please sign in to comment.