langfun 0.0.2.dev20240620__py3-none-any.whl → 0.0.2.dev20240623__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.

@@ -80,6 +80,7 @@ from langfun.core.llms.openai import Gpt3Babbage
80
80
  from langfun.core.llms.openai import Gpt3Ada
81
81
 
82
82
  from langfun.core.llms.anthropic import Anthropic
83
+ from langfun.core.llms.anthropic import Claude35Sonnet
83
84
  from langfun.core.llms.anthropic import Claude3Opus
84
85
  from langfun.core.llms.anthropic import Claude3Sonnet
85
86
  from langfun.core.llms.anthropic import Claude3Haiku
@@ -28,6 +28,9 @@ SUPPORTED_MODELS_AND_SETTINGS = {
28
28
  # Rate limits from https://docs.anthropic.com/claude/reference/rate-limits
29
29
  # RPM/TPM for Claude-2.1, Claude-2.0, and Claude-Instant-1.2 estimated
30
30
  # as RPM/TPM of the largest-available model (Claude-3-Opus).
31
+ 'claude-3-5-sonnet-20240620': pg.Dict(
32
+ max_tokens=4096, rpm=4000, tpm=400000
33
+ ),
31
34
  'claude-3-opus-20240229': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
32
35
  'claude-3-sonnet-20240229': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
33
36
  'claude-3-haiku-20240307': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
@@ -194,6 +197,12 @@ class Claude3(Anthropic):
194
197
  multimodal = True
195
198
 
196
199
 
200
+ class Claude35Sonnet(Claude3):
201
+ """A balance between between Opus and Haiku."""
202
+
203
+ model = 'claude-3-5-sonnet-20240620'
204
+
205
+
197
206
  class Claude3Opus(Claude3):
198
207
  """Anthropic's most powerful model."""
199
208
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langfun
3
- Version: 0.0.2.dev20240620
3
+ Version: 0.0.2.dev20240623
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -52,8 +52,8 @@ langfun/core/eval/patching.py,sha256=R0s2eAd1m97exQt06dmUL0V_MBG0W2Hxg7fhNB7cXW0
52
52
  langfun/core/eval/patching_test.py,sha256=8kCd54Egjju22FMgtJuxEsrXkW8ifs-UUBHtrCG1L6w,4775
53
53
  langfun/core/eval/scoring.py,sha256=1J7IATo-8FXUR0SBqk9icztHiM0lWkBFcWUo-vUURgQ,6376
54
54
  langfun/core/eval/scoring_test.py,sha256=O8olHbrUEg60gMxwOkWzKBJZpZoUlmVnBANX5Se2SXM,4546
55
- langfun/core/llms/__init__.py,sha256=3G7pJISeClgHGV34Gy2t_Nih4N08UhGbWe6uAff8TnA,4364
56
- langfun/core/llms/anthropic.py,sha256=pBYe8dVwswxKaqhNjA_jtZbyfvOaXtEo399Zty242iA,7097
55
+ langfun/core/llms/__init__.py,sha256=GDarEQZlDFIxpEW_6Hz969NLmsT7AnRChhnx8uCtDy4,4419
56
+ langfun/core/llms/anthropic.py,sha256=Gon3fOi31RhZFgNd0ijyTnKnUdp9hrWrCoSXyO4UaLw,7316
57
57
  langfun/core/llms/anthropic_test.py,sha256=T-swuMkfnlgs8Fpif4rtXs579exGk0TsbLMirXDZCkg,5533
58
58
  langfun/core/llms/fake.py,sha256=Dd7-6ka9pFf3fcWZyczamjOqQ91MOI-m7We3Oc9Ffmo,2927
59
59
  langfun/core/llms/fake_test.py,sha256=ipKfdOcuqVcJ8lDXVpnBVb9HHG0hAVkFkMoHpWjC2cI,7212
@@ -117,8 +117,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
117
117
  langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
118
118
  langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
119
119
  langfun/core/templates/selfplay_test.py,sha256=rBW2Qr8yi-aWYwoTwRR-n1peKyMX9QXPZXURjLgoiRs,2264
120
- langfun-0.0.2.dev20240620.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
121
- langfun-0.0.2.dev20240620.dist-info/METADATA,sha256=wOyuqLNKoxVfebo58Go_PT-HwtFKNKJaUub7tzM_pqM,3550
122
- langfun-0.0.2.dev20240620.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
123
- langfun-0.0.2.dev20240620.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
124
- langfun-0.0.2.dev20240620.dist-info/RECORD,,
120
+ langfun-0.0.2.dev20240623.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
121
+ langfun-0.0.2.dev20240623.dist-info/METADATA,sha256=5FvMUzkKylvxlayIvm5EFglgrBD-fTfX2Nf5YQnAt_Q,3550
122
+ langfun-0.0.2.dev20240623.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
123
+ langfun-0.0.2.dev20240623.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
124
+ langfun-0.0.2.dev20240623.dist-info/RECORD,,