langfun 0.1.2.dev202505190805__py3-none-any.whl → 0.1.2.dev202505210804__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.

Potentially problematic release.


This version of langfun might be problematic. Click here for more details.

@@ -40,6 +40,7 @@ from langfun.core.llms.azure_openai import AzureOpenAI
40
40
 
41
41
  # Gemini models.
42
42
  from langfun.core.llms.google_genai import GenAI
43
+ from langfun.core.llms.google_genai import Gemini25FlashPreview_20250520
43
44
  from langfun.core.llms.google_genai import Gemini25ProPreview_20250506
44
45
  from langfun.core.llms.google_genai import Gemini25FlashPreview_20250417
45
46
  from langfun.core.llms.google_genai import Gemini25ProPreview_20250325
@@ -79,6 +80,7 @@ from langfun.core.llms.vertexai import VertexAIGemini25ProExp_20250325
79
80
  from langfun.core.llms.vertexai import VertexAIGemini25ProPreview_20250325
80
81
  from langfun.core.llms.vertexai import VertexAIGemini25FlashPreview_20250417
81
82
  from langfun.core.llms.vertexai import VertexAIGemini25ProPreview_20250506
83
+ from langfun.core.llms.vertexai import VertexAIGemini25FlashPreview_20250520
82
84
 
83
85
  # For backward compatibility.
84
86
  GeminiPro1_5 = Gemini15Pro
@@ -151,6 +151,29 @@ SUPPORTED_MODELS = [
151
151
  #
152
152
  # Production models.
153
153
  #
154
+ # Gemini 2.5 Flash Preview 0520
155
+ GeminiModelInfo(
156
+ model_id='gemini-2.5-flash-preview-05-20',
157
+ in_service=True,
158
+ provider=pg.oneof(['Google GenAI', 'VertexAI']),
159
+ model_type='instruction-tuned',
160
+ description='Gemini 2.5 Flash.',
161
+ release_date=datetime.datetime(2025, 5, 20),
162
+ input_modalities=GeminiModelInfo.ALL_SUPPORTED_INPUT_TYPES,
163
+ context_length=lf.ModelInfo.ContextLength(
164
+ max_input_tokens=1_048_576,
165
+ max_output_tokens=65_536,
166
+ ),
167
+ pricing=GeminiModelInfo.Pricing(
168
+ cost_per_1m_cached_input_tokens=0.15,
169
+ cost_per_1m_input_tokens=0.15,
170
+ cost_per_1m_output_tokens=0.6,
171
+ ),
172
+ rate_limits=lf.ModelInfo.RateLimits(
173
+ max_requests_per_minute=2000,
174
+ max_tokens_per_minute=4_000_000,
175
+ ),
176
+ ),
154
177
  # Gemini 2.5 Pro Preview
155
178
  GeminiModelInfo(
156
179
  model_id='gemini-2.5-pro-preview-05-06',
@@ -106,6 +106,11 @@ class GeminiExp_20241206(GenAI):
106
106
  #
107
107
  # Production models.
108
108
  #
109
+ class Gemini25FlashPreview_20250520(GenAI):
110
+ """Gemini 2.5 Flash model launched on 05/20/2025."""
111
+ model = 'gemini-2.5-flash-preview-05-20'
112
+
113
+
109
114
  class Gemini25ProPreview_20250506(GenAI):
110
115
  """Gemini 2.5 Pro model launched on 05/06/2025."""
111
116
 
@@ -177,6 +177,11 @@ class VertexAIGemini(VertexAI, gemini.Gemini):
177
177
  #
178
178
  # Production models.
179
179
  #
180
+ class VertexAIGemini25FlashPreview_20250520(VertexAIGemini): # pylint: disable=invalid-name
181
+ """Gemini 2.5 Flash model launched on 05/20/2025."""
182
+ model = 'gemini-2.5-flash-preview-05-20'
183
+
184
+
180
185
  class VertexAIGemini25ProPreview_20250506(VertexAIGemini): # pylint: disable=invalid-name
181
186
  """Gemini 2.5 Pro model launched on 05/06/2025."""
182
187
  model = 'gemini-2.5-pro-preview-05-06'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langfun
3
- Version: 0.1.2.dev202505190805
3
+ Version: 0.1.2.dev202505210804
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -81,7 +81,7 @@ langfun/core/eval/v2/reporting.py,sha256=yUIPCAMnp7InIzpv1DDWrcLO-75iiOUTpscj7sm
81
81
  langfun/core/eval/v2/reporting_test.py,sha256=hcPJJaMtPulqERvHYTpId83WXdqDKnnexmULtK7WKwk,5686
82
82
  langfun/core/eval/v2/runners.py,sha256=iqbH4jMtnNMhfuv1eHaxJmk1Vvsrz-sAJJFP8U44-tA,16758
83
83
  langfun/core/eval/v2/runners_test.py,sha256=DO3xV0sBNB6n65j41xx2i7gqUCJcPF37DFZLEjrmISg,11987
84
- langfun/core/llms/__init__.py,sha256=QWxRhzVn_vgJvdmW_xs5PcPuDbHsUxTU94YyV4Ofl34,8684
84
+ langfun/core/llms/__init__.py,sha256=tYMsdEiCJCDGQK8fF2PTZgOQylVTHyPnqP8ytonh2YY,8834
85
85
  langfun/core/llms/anthropic.py,sha256=dCkTYvwb_wWWeKQNzMtRfA6kno1E_bO9PBHSNqL0wiw,22080
86
86
  langfun/core/llms/anthropic_test.py,sha256=qA9vByp_cwwXNlXzcwHpPWFnO9lfFo8NKfDi5nBNqgI,9052
87
87
  langfun/core/llms/azure_openai.py,sha256=-KkSLaR54MlsIqz_XIwv0TnsBnvNTAxnjA2Q2O2u5KM,2733
@@ -92,9 +92,9 @@ langfun/core/llms/deepseek.py,sha256=jvTxdXPr-vH6HNakn_Ootx1heDg8Fen2FUkUW36bpCs
92
92
  langfun/core/llms/deepseek_test.py,sha256=DvROWPlDuow5E1lfoSkhyGt_ELA19JoQoDsTnRgDtTg,1847
93
93
  langfun/core/llms/fake.py,sha256=xmgCkk9y0I4x0IT32SZ9_OT27aLadXH8PRiYNo5VTd4,3265
94
94
  langfun/core/llms/fake_test.py,sha256=2h13qkwEz_JR0mtUDPxdAhQo7MueXaFSwsD2DIRDW9g,7653
95
- langfun/core/llms/gemini.py,sha256=JCxwTDdOBBhtME_s-wxV3-fOREIkQ-uMOVYFg09RmfQ,25589
95
+ langfun/core/llms/gemini.py,sha256=kAhW6KfGhjk6S6_n915Tqdxr6Xv9Z2BGvTNcWNahP6E,26459
96
96
  langfun/core/llms/gemini_test.py,sha256=Ve9X2Wvwu9wVFHpKZDP-qoM1_hzB4kgt6_HR9wxtNkg,7592
97
- langfun/core/llms/google_genai.py,sha256=YjvyasibmXYPFr_sxdrIdHDPHfaNzMCiJjWJs0iQyms,5188
97
+ langfun/core/llms/google_genai.py,sha256=L7cevWaD69xMpo5GtaVP0yEomRwbapKBrUPTClrEuPw,5332
98
98
  langfun/core/llms/google_genai_test.py,sha256=NKNtpebArQ9ZR7Qsnhd2prFIpMjleojy6o6VMXkJ1zY,1502
99
99
  langfun/core/llms/groq.py,sha256=S9V10kFo3cgX89qPgt_umq-SpRnxEDLTt_hJmpERfbo,12066
100
100
  langfun/core/llms/groq_test.py,sha256=P4EgexCqsh4K2x11w0UL_vz-YYNaPdQU0WsDAdnTRQ8,2045
@@ -106,7 +106,7 @@ langfun/core/llms/openai_compatible_test.py,sha256=KwOMA7tsmOxFBjezltkBDSU77AvOQ
106
106
  langfun/core/llms/openai_test.py,sha256=gwuO6aoa296iM2welWV9ua4KF8gEVGsEPakgbtkWkFQ,2687
107
107
  langfun/core/llms/rest.py,sha256=MCybcHApJcf49lubLnDzScN9Oc2IWY_JnMHIGdbDOuU,4474
108
108
  langfun/core/llms/rest_test.py,sha256=_zM7nV8DEVyoXNiQOnuwJ917mWjki0614H88rNmDboE,5020
109
- langfun/core/llms/vertexai.py,sha256=nPWwv1C-wVpWpE4Vyl4vJoAEMB519-XNzPjyLY4N3tM,18816
109
+ langfun/core/llms/vertexai.py,sha256=PVUMcxLNgYfbKOS2pw4M8aqb0Jq7bn-bOw-VsxQqOf0,19009
110
110
  langfun/core/llms/vertexai_test.py,sha256=_e-acnNBAf9C3WO6i1b2J_mhRzdDdYQTorD9hIVZKOg,5034
111
111
  langfun/core/llms/cache/__init__.py,sha256=QAo3InUMDM_YpteNnVCSejI4zOsnjSMWKJKzkb3VY64,993
112
112
  langfun/core/llms/cache/base.py,sha256=rt3zwmyw0y9jsSGW-ZbV1vAfLxQ7_3AVk0l2EySlse4,3918
@@ -156,8 +156,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
156
156
  langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
157
157
  langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
158
158
  langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
159
- langfun-0.1.2.dev202505190805.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
160
- langfun-0.1.2.dev202505190805.dist-info/METADATA,sha256=Od2m1ntzT0dDBzmbZXxRrKNJIBgt8ztF8uvXl1KQ2lU,8178
161
- langfun-0.1.2.dev202505190805.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
162
- langfun-0.1.2.dev202505190805.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
163
- langfun-0.1.2.dev202505190805.dist-info/RECORD,,
159
+ langfun-0.1.2.dev202505210804.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
160
+ langfun-0.1.2.dev202505210804.dist-info/METADATA,sha256=A7O0C4eWmx6GYJILxp3F9_p2s12WCiqcRlIVqDr8Mbc,8178
161
+ langfun-0.1.2.dev202505210804.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
162
+ langfun-0.1.2.dev202505210804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
163
+ langfun-0.1.2.dev202505210804.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5