langfun 0.1.2.dev202411080804__py3-none-any.whl → 0.1.2.dev202411100803__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/anthropic.py +4 -4
- langfun/core/llms/rest.py +1 -0
- {langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/RECORD +7 -7
- {langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/LICENSE +0 -0
- {langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/WHEEL +0 -0
- {langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/top_level.txt +0 -0
langfun/core/llms/anthropic.py
CHANGED
@@ -48,15 +48,15 @@ SUPPORTED_MODELS_AND_SETTINGS = {
|
|
48
48
|
# Anthropic models hosted on VertexAI.
|
49
49
|
'claude-3-5-sonnet-v2@20241022': pg.Dict(
|
50
50
|
max_tokens=8192,
|
51
|
-
rpm=
|
52
|
-
tpm=
|
51
|
+
rpm=1000,
|
52
|
+
tpm=100000,
|
53
53
|
cost_per_1k_input_tokens=0.003,
|
54
54
|
cost_per_1k_output_tokens=0.015,
|
55
55
|
),
|
56
56
|
'claude-3-5-haiku@20241022': pg.Dict(
|
57
57
|
max_tokens=8192,
|
58
|
-
rpm=
|
59
|
-
tpm=
|
58
|
+
rpm=1000,
|
59
|
+
tpm=100000,
|
60
60
|
cost_per_1k_input_tokens=0.001,
|
61
61
|
cost_per_1k_output_tokens=0.005,
|
62
62
|
),
|
langfun/core/llms/rest.py
CHANGED
@@ -98,6 +98,7 @@ class REST(lf.LanguageModel):
|
|
98
98
|
500, # Server side issue (might be bug).
|
99
99
|
502, # Bad gateway (upstream issue, might retry).
|
100
100
|
503, # Servers currently under load, retry after a brief wait.
|
101
|
+
529, # Overloaded, retry after a brief wait.
|
101
102
|
):
|
102
103
|
error_cls = lf.TemporaryLMError
|
103
104
|
else:
|
@@ -53,7 +53,7 @@ langfun/core/eval/patching_test.py,sha256=8kCd54Egjju22FMgtJuxEsrXkW8ifs-UUBHtrC
|
|
53
53
|
langfun/core/eval/scoring.py,sha256=B69IsIxiPs1xZcOBFIhZF70YmDue2Siik-CPL2bh33s,6254
|
54
54
|
langfun/core/eval/scoring_test.py,sha256=O8olHbrUEg60gMxwOkWzKBJZpZoUlmVnBANX5Se2SXM,4546
|
55
55
|
langfun/core/llms/__init__.py,sha256=ATayGMO5rQzkPBAf7zl3vfgRQ8fth33TFVXv_tvraCQ,6190
|
56
|
-
langfun/core/llms/anthropic.py,sha256=
|
56
|
+
langfun/core/llms/anthropic.py,sha256=XPQxjfe9O4b-CygCgqvQU0MPSfe1rU7uErNbo8zth7Q,13606
|
57
57
|
langfun/core/llms/anthropic_test.py,sha256=-2U4kc_pgBM7wqxu8RuxzyHPGww1EAWqKUvN4PW8Btw,8058
|
58
58
|
langfun/core/llms/fake.py,sha256=gCHBYBLvBCsC78HI1hpoqXCS-p1FMTgY1P1qh_sGBPk,3070
|
59
59
|
langfun/core/llms/fake_test.py,sha256=2h13qkwEz_JR0mtUDPxdAhQo7MueXaFSwsD2DIRDW9g,7653
|
@@ -65,7 +65,7 @@ langfun/core/llms/llama_cpp.py,sha256=9tXQntSCDtjTF3bnyJrAPCr4N6wycy5nXYvp9uduyg
|
|
65
65
|
langfun/core/llms/llama_cpp_test.py,sha256=MWO_qaOeKjRniGjcaWPDScd7HPaIJemqUZoslrt4FPs,1806
|
66
66
|
langfun/core/llms/openai.py,sha256=qrAiJxE0tS7ZqjaVzRgVJKtMtoo1Z5TYpvi5ikTwPpw,22716
|
67
67
|
langfun/core/llms/openai_test.py,sha256=_8cd3VRNEUfE0-Ko1RiM6MlC5hjalRj7nYTJNhG1p3E,18907
|
68
|
-
langfun/core/llms/rest.py,sha256=
|
68
|
+
langfun/core/llms/rest.py,sha256=sWbYUV8S3SuOg9giq7xwD-xDRfaF7NP_ig7bI52-Rj4,3442
|
69
69
|
langfun/core/llms/rest_test.py,sha256=NZ3Nf0XQVpT9kLP5cBVo_yBHLI7vWTYhWQxYEJVMGs4,3472
|
70
70
|
langfun/core/llms/vertexai.py,sha256=eUFU0JjgpTVCAvQVEWiGqZrlE3Dye-EkzZCF1P8nwc4,18866
|
71
71
|
langfun/core/llms/vertexai_test.py,sha256=7uBVOF5VF86xQ9HFAbSTh4J-0NjYLnuotBS1YRm-vgw,10529
|
@@ -119,8 +119,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
119
119
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
120
120
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
121
121
|
langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
|
122
|
-
langfun-0.1.2.
|
123
|
-
langfun-0.1.2.
|
124
|
-
langfun-0.1.2.
|
125
|
-
langfun-0.1.2.
|
126
|
-
langfun-0.1.2.
|
122
|
+
langfun-0.1.2.dev202411100803.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
123
|
+
langfun-0.1.2.dev202411100803.dist-info/METADATA,sha256=-J05xQVcefeBMc2wcnVO6th8OikK-edt-z6pjfvwLEM,8890
|
124
|
+
langfun-0.1.2.dev202411100803.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
125
|
+
langfun-0.1.2.dev202411100803.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
126
|
+
langfun-0.1.2.dev202411100803.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{langfun-0.1.2.dev202411080804.dist-info → langfun-0.1.2.dev202411100803.dist-info}/top_level.txt
RENAMED
File without changes
|