langfun 0.1.2.dev202505090804__py3-none-any.whl → 0.1.2.dev202505100803__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.
- langfun/core/llms/vertexai_test.py +6 -1
- {langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/RECORD +6 -6
- {langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/WHEEL +1 -1
- {langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/licenses/LICENSE +0 -0
- {langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,7 @@ import os
|
|
17
17
|
import unittest
|
18
18
|
from unittest import mock
|
19
19
|
|
20
|
+
from google import auth
|
20
21
|
from google.auth import exceptions
|
21
22
|
import langfun.core as lf
|
22
23
|
from langfun.core.llms import rest
|
@@ -61,7 +62,11 @@ class VertexAITest(unittest.TestCase):
|
|
61
62
|
lf.concurrent.RetryError,
|
62
63
|
'Failed to refresh Google authentication credentials'
|
63
64
|
):
|
64
|
-
with
|
65
|
+
with (
|
66
|
+
mock.patch.object(auth, 'default') as mock_auth,
|
67
|
+
mock.patch.object(rest.REST, '_sample_single') as mock_sample_single
|
68
|
+
):
|
69
|
+
mock_auth.return_value = mock.MagicMock(), None
|
65
70
|
mock_sample_single.side_effect = _auth_refresh_error
|
66
71
|
model = vertexai.VertexAIGemini15Pro(
|
67
72
|
project='abc', location='us-central1', max_attempts=1
|
@@ -107,7 +107,7 @@ langfun/core/llms/openai_test.py,sha256=gwuO6aoa296iM2welWV9ua4KF8gEVGsEPakgbtkW
|
|
107
107
|
langfun/core/llms/rest.py,sha256=MCybcHApJcf49lubLnDzScN9Oc2IWY_JnMHIGdbDOuU,4474
|
108
108
|
langfun/core/llms/rest_test.py,sha256=_zM7nV8DEVyoXNiQOnuwJ917mWjki0614H88rNmDboE,5020
|
109
109
|
langfun/core/llms/vertexai.py,sha256=nPWwv1C-wVpWpE4Vyl4vJoAEMB519-XNzPjyLY4N3tM,18816
|
110
|
-
langfun/core/llms/vertexai_test.py,sha256=
|
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
|
113
113
|
langfun/core/llms/cache/in_memory.py,sha256=i58oiQL28RDsq37dwqgVpC2mBETJjIEFS20yHiV5MKU,5185
|
@@ -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.
|
160
|
-
langfun-0.1.2.
|
161
|
-
langfun-0.1.2.
|
162
|
-
langfun-0.1.2.
|
163
|
-
langfun-0.1.2.
|
159
|
+
langfun-0.1.2.dev202505100803.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
160
|
+
langfun-0.1.2.dev202505100803.dist-info/METADATA,sha256=M52b_XjFPeZNK9ZFRbXrVjBPlT9LyI3NThMyeLjKaQ4,8178
|
161
|
+
langfun-0.1.2.dev202505100803.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
162
|
+
langfun-0.1.2.dev202505100803.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
163
|
+
langfun-0.1.2.dev202505100803.dist-info/RECORD,,
|
{langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{langfun-0.1.2.dev202505090804.dist-info → langfun-0.1.2.dev202505100803.dist-info}/top_level.txt
RENAMED
File without changes
|