langfun 0.1.2.dev202411200804__py3-none-any.whl → 0.1.2.dev202411220804__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.
@@ -51,6 +51,7 @@ from langfun.core.llms.openai import GptO1Mini_20240912
51
51
  from langfun.core.llms.openai import Gpt4oMini
52
52
  from langfun.core.llms.openai import Gpt4oMini_20240718
53
53
  from langfun.core.llms.openai import Gpt4o
54
+ from langfun.core.llms.openai import Gpt4o_20241120
54
55
  from langfun.core.llms.openai import Gpt4o_20240806
55
56
  from langfun.core.llms.openai import Gpt4o_20240513
56
57
 
@@ -102,6 +102,13 @@ SUPPORTED_MODELS_AND_SETTINGS = {
102
102
  cost_per_1k_input_tokens=0.0025,
103
103
  cost_per_1k_output_tokens=0.01,
104
104
  ),
105
+ 'gpt-4o-2024-11-20': pg.Dict(
106
+ in_service=True,
107
+ rpm=10000,
108
+ tpm=5000000,
109
+ cost_per_1k_input_tokens=0.0025,
110
+ cost_per_1k_output_tokens=0.01,
111
+ ),
105
112
  'gpt-4o-2024-08-06': pg.Dict(
106
113
  in_service=True,
107
114
  rpm=10000,
@@ -718,6 +725,12 @@ class Gpt4o(OpenAI):
718
725
  multimodal = True
719
726
 
720
727
 
728
+ class Gpt4o_20241120(OpenAI): # pylint:disable=invalid-name
729
+ """GPT-4o version 2024-11-20."""
730
+ model = 'gpt-4o-2024-11-20'
731
+ multimodal = True
732
+
733
+
721
734
  class Gpt4o_20240806(OpenAI): # pylint:disable=invalid-name
722
735
  """GPT-4o version 2024-08-06."""
723
736
  model = 'gpt-4o-2024-08-06'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langfun
3
- Version: 0.1.2.dev202411200804
3
+ Version: 0.1.2.dev202411220804
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -38,6 +38,9 @@ Requires-Dist: python-docx>=0.8.11; extra == "all"
38
38
  Requires-Dist: pillow>=10.0.0; extra == "all"
39
39
  Requires-Dist: openpyxl>=3.1.0; extra == "all"
40
40
  Requires-Dist: pandas>=2.0.3; extra == "all"
41
+ Provides-Extra: ui
42
+ Requires-Dist: termcolor==1.1.0; extra == "ui"
43
+ Requires-Dist: tqdm>=4.64.1; extra == "ui"
41
44
  Provides-Extra: llm
42
45
  Requires-Dist: google-cloud-aiplatform>=1.5.0; extra == "llm"
43
46
  Requires-Dist: google-generativeai>=0.3.2; extra == "llm"
@@ -45,10 +48,10 @@ Requires-Dist: openai>=0.27.2; extra == "llm"
45
48
  Provides-Extra: llm-google
46
49
  Requires-Dist: google-cloud-aiplatform>=1.5.0; extra == "llm-google"
47
50
  Requires-Dist: google-generativeai>=0.3.2; extra == "llm-google"
48
- Provides-Extra: llm-google-genai
49
- Requires-Dist: google-generativeai>=0.3.2; extra == "llm-google-genai"
50
51
  Provides-Extra: llm-google-vertex
51
52
  Requires-Dist: google-cloud-aiplatform>=1.5.0; extra == "llm-google-vertex"
53
+ Provides-Extra: llm-google-genai
54
+ Requires-Dist: google-generativeai>=0.3.2; extra == "llm-google-genai"
52
55
  Provides-Extra: llm-openai
53
56
  Requires-Dist: openai>=0.27.2; extra == "llm-openai"
54
57
  Provides-Extra: mime
@@ -66,9 +69,6 @@ Requires-Dist: pillow>=10.0.0; extra == "mime-pil"
66
69
  Provides-Extra: mime-xlsx
67
70
  Requires-Dist: openpyxl>=3.1.0; extra == "mime-xlsx"
68
71
  Requires-Dist: pandas>=2.0.3; extra == "mime-xlsx"
69
- Provides-Extra: ui
70
- Requires-Dist: termcolor==1.1.0; extra == "ui"
71
- Requires-Dist: tqdm>=4.64.1; extra == "ui"
72
72
 
73
73
  <div align="center">
74
74
  <img src="https://raw.githubusercontent.com/google/langfun/main/docs/_static/logo.svg" width="520px" alt="logo"></img>
@@ -79,7 +79,7 @@ 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=AXVEgT1aMCwYiMlkHZw3bBXssgRhufLRLGB1ymIXO68,6408
82
+ langfun/core/llms/__init__.py,sha256=tM9LjVQDFFG7Et2vjUr45GlYNEu73LAcWsd_1DO0KcQ,6460
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
@@ -92,7 +92,7 @@ langfun/core/llms/groq.py,sha256=dCnR3eAECEKuKKAAj-PDTs8NRHl6CQPdf57m1f6a79U,103
92
92
  langfun/core/llms/groq_test.py,sha256=GYF_Qtq5S1H1TrKH38t6_lkdroqT7v-joYLDKnmS9e0,5274
93
93
  langfun/core/llms/llama_cpp.py,sha256=9tXQntSCDtjTF3bnyJrAPCr4N6wycy5nXYvp9uduygE,2843
94
94
  langfun/core/llms/llama_cpp_test.py,sha256=MWO_qaOeKjRniGjcaWPDScd7HPaIJemqUZoslrt4FPs,1806
95
- langfun/core/llms/openai.py,sha256=qrAiJxE0tS7ZqjaVzRgVJKtMtoo1Z5TYpvi5ikTwPpw,22716
95
+ langfun/core/llms/openai.py,sha256=HVJct35hWwer7iq_1ZfTy0F20ZXSB2X-H4CVwStR0rg,23054
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
@@ -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.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,,
151
+ langfun-0.1.2.dev202411220804.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
152
+ langfun-0.1.2.dev202411220804.dist-info/METADATA,sha256=f5DijAAIHYvvi_y1jVeE8oW_4GvlvN4mEVnCuKIH7bc,8890
153
+ langfun-0.1.2.dev202411220804.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
154
+ langfun-0.1.2.dev202411220804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
155
+ langfun-0.1.2.dev202411220804.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5