langfun 0.1.2.dev202411170804__py3-none-any.whl → 0.1.2.dev202411200804__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langfun/core/llms/__init__.py +1 -0
- langfun/core/llms/google_genai.py +9 -1
- langfun/core/llms/vertexai.py +4 -2
- {langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/RECORD +8 -8
- {langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/LICENSE +0 -0
- {langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/WHEEL +0 -0
- {langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/top_level.txt +0 -0
langfun/core/llms/__init__.py
CHANGED
@@ -32,6 +32,7 @@ from langfun.core.llms.rest import REST
|
|
32
32
|
|
33
33
|
# Gemini models.
|
34
34
|
from langfun.core.llms.google_genai import GenAI
|
35
|
+
from langfun.core.llms.google_genai import GeminiExp_20241114
|
35
36
|
from langfun.core.llms.google_genai import GeminiFlash1_5
|
36
37
|
from langfun.core.llms.google_genai import GeminiPro
|
37
38
|
from langfun.core.llms.google_genai import GeminiPro1_5
|
@@ -52,7 +52,8 @@ class GenAI(lf.LanguageModel):
|
|
52
52
|
'text-bison-001',
|
53
53
|
'chat-bison-001',
|
54
54
|
'gemini-1.5-pro-latest',
|
55
|
-
'gemini-1.5-flash-latest'
|
55
|
+
'gemini-1.5-flash-latest',
|
56
|
+
'gemini-exp-1114',
|
56
57
|
],
|
57
58
|
'Model name.',
|
58
59
|
]
|
@@ -344,6 +345,13 @@ _PDF = [
|
|
344
345
|
]
|
345
346
|
|
346
347
|
|
348
|
+
class GeminiExp_20241114(GenAI): # pylint: disable=invalid-name
|
349
|
+
"""Gemini Experimental model launched on 11/14/2024."""
|
350
|
+
|
351
|
+
model = 'gemini-exp-1114'
|
352
|
+
supported_modalities = _PDF + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
353
|
+
|
354
|
+
|
347
355
|
class GeminiPro1_5(GenAI): # pylint: disable=invalid-name
|
348
356
|
"""Gemini Pro latest model."""
|
349
357
|
|
langfun/core/llms/vertexai.py
CHANGED
@@ -530,7 +530,7 @@ _DOCUMENT_TYPES = [
|
|
530
530
|
class VertexAIGemini1_5(VertexAI): # pylint: disable=invalid-name
|
531
531
|
"""Vertex AI Gemini 1.5 model."""
|
532
532
|
|
533
|
-
supported_modalities =
|
533
|
+
supported_modalities: pg.typing.List(str).freeze( # pytype: disable=invalid-annotation
|
534
534
|
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
535
535
|
)
|
536
536
|
|
@@ -611,7 +611,9 @@ class VertexAIGeminiPro1Vision(VertexAI): # pylint: disable=invalid-name
|
|
611
611
|
"""Vertex AI Gemini 1.0 Pro model."""
|
612
612
|
|
613
613
|
model = 'gemini-1.0-pro-vision'
|
614
|
-
supported_modalities
|
614
|
+
supported_modalities: pg.typing.List(str).freeze( # pytype: disable=invalid-annotation
|
615
|
+
_IMAGE_TYPES + _VIDEO_TYPES
|
616
|
+
)
|
615
617
|
|
616
618
|
|
617
619
|
class VertexAIPalm2(VertexAI): # pylint: disable=invalid-name
|
@@ -79,14 +79,14 @@ langfun/core/eval/v2/reporting_test.py,sha256=JxffbUPWInUyLjo-AQVFrllga884Mdfm05
|
|
79
79
|
langfun/core/eval/v2/runners.py,sha256=zJmu-amUiYv1g0Ek4c3mXkBgp-AFvSF7WpXVZCCf7Y4,14245
|
80
80
|
langfun/core/eval/v2/runners_test.py,sha256=UeiUNygux_U6iGVG18rhp68ZE4hoWeoT6XsXvSjxNQg,11620
|
81
81
|
langfun/core/eval/v2/test_helper.py,sha256=pDpZTBnWRR5xjJv3Uy3NWEzArqlL8FTMOgeR4C53F5M,2348
|
82
|
-
langfun/core/llms/__init__.py,sha256=
|
82
|
+
langfun/core/llms/__init__.py,sha256=AXVEgT1aMCwYiMlkHZw3bBXssgRhufLRLGB1ymIXO68,6408
|
83
83
|
langfun/core/llms/anthropic.py,sha256=uJXVgaFONL8okOSVQ4VGMGht_VZ30m1hoLzmDbIjmks,13990
|
84
84
|
langfun/core/llms/anthropic_test.py,sha256=-2U4kc_pgBM7wqxu8RuxzyHPGww1EAWqKUvN4PW8Btw,8058
|
85
85
|
langfun/core/llms/compositional.py,sha256=csW_FLlgL-tpeyCOTVvfUQkMa_zCN5Y2I-YbSNuK27U,2872
|
86
86
|
langfun/core/llms/compositional_test.py,sha256=4eTnOer-DncRKGaIJW2ZQQMLnt5r2R0UIx_DYOvGAQo,2027
|
87
87
|
langfun/core/llms/fake.py,sha256=gCHBYBLvBCsC78HI1hpoqXCS-p1FMTgY1P1qh_sGBPk,3070
|
88
88
|
langfun/core/llms/fake_test.py,sha256=2h13qkwEz_JR0mtUDPxdAhQo7MueXaFSwsD2DIRDW9g,7653
|
89
|
-
langfun/core/llms/google_genai.py,sha256=
|
89
|
+
langfun/core/llms/google_genai.py,sha256=t0eEuJxqYZZrSJg27_OKD5ZXh1-zj7XMYrDvM9Gd6xg,11195
|
90
90
|
langfun/core/llms/google_genai_test.py,sha256=zw14sgWmk0P_irHyb7vpPy1WAuLEE0PmyfiFElu03sA,7686
|
91
91
|
langfun/core/llms/groq.py,sha256=dCnR3eAECEKuKKAAj-PDTs8NRHl6CQPdf57m1f6a79U,10312
|
92
92
|
langfun/core/llms/groq_test.py,sha256=GYF_Qtq5S1H1TrKH38t6_lkdroqT7v-joYLDKnmS9e0,5274
|
@@ -96,7 +96,7 @@ langfun/core/llms/openai.py,sha256=qrAiJxE0tS7ZqjaVzRgVJKtMtoo1Z5TYpvi5ikTwPpw,2
|
|
96
96
|
langfun/core/llms/openai_test.py,sha256=_8cd3VRNEUfE0-Ko1RiM6MlC5hjalRj7nYTJNhG1p3E,18907
|
97
97
|
langfun/core/llms/rest.py,sha256=sWbYUV8S3SuOg9giq7xwD-xDRfaF7NP_ig7bI52-Rj4,3442
|
98
98
|
langfun/core/llms/rest_test.py,sha256=NZ3Nf0XQVpT9kLP5cBVo_yBHLI7vWTYhWQxYEJVMGs4,3472
|
99
|
-
langfun/core/llms/vertexai.py,sha256
|
99
|
+
langfun/core/llms/vertexai.py,sha256=sl8TIhTuz8ZZFSGo97K6zqXcJQNgF2CVAOLTEiMuiDA,19006
|
100
100
|
langfun/core/llms/vertexai_test.py,sha256=I8gEHLRXZZGq_d2VDtJAkAIzf-lNSCoB8y2lwFckY-w,10885
|
101
101
|
langfun/core/llms/cache/__init__.py,sha256=QAo3InUMDM_YpteNnVCSejI4zOsnjSMWKJKzkb3VY64,993
|
102
102
|
langfun/core/llms/cache/base.py,sha256=rt3zwmyw0y9jsSGW-ZbV1vAfLxQ7_3AVk0l2EySlse4,3918
|
@@ -148,8 +148,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
148
148
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
149
149
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
150
150
|
langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
|
151
|
-
langfun-0.1.2.
|
152
|
-
langfun-0.1.2.
|
153
|
-
langfun-0.1.2.
|
154
|
-
langfun-0.1.2.
|
155
|
-
langfun-0.1.2.
|
151
|
+
langfun-0.1.2.dev202411200804.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
152
|
+
langfun-0.1.2.dev202411200804.dist-info/METADATA,sha256=W-AqNBrhGz_G13iocaHcybaMGIOeo6H-wqFonOEgVkc,8890
|
153
|
+
langfun-0.1.2.dev202411200804.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
154
|
+
langfun-0.1.2.dev202411200804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
155
|
+
langfun-0.1.2.dev202411200804.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{langfun-0.1.2.dev202411170804.dist-info → langfun-0.1.2.dev202411200804.dist-info}/top_level.txt
RENAMED
File without changes
|