opengradient 0.5.0a1__py3-none-any.whl → 0.5.0a2__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.
- opengradient/__init__.py +2 -1
- opengradient/llm/og_langchain.py +5 -3
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/METADATA +1 -1
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/RECORD +8 -8
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/WHEEL +0 -0
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/entry_points.txt +0 -0
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/licenses/LICENSE +0 -0
- {opengradient-0.5.0a1.dist-info → opengradient-0.5.0a2.dist-info}/top_level.txt +0 -0
opengradient/__init__.py
CHANGED
|
@@ -34,6 +34,7 @@ def new_client(
|
|
|
34
34
|
rpc_url=DEFAULT_RPC_URL,
|
|
35
35
|
api_url=DEFAULT_API_URL,
|
|
36
36
|
contract_address=DEFAULT_INFERENCE_CONTRACT_ADDRESS,
|
|
37
|
+
**kwargs,
|
|
37
38
|
) -> Client:
|
|
38
39
|
"""
|
|
39
40
|
Creates a unique OpenGradient client instance with the given authentication and network settings.
|
|
@@ -46,7 +47,7 @@ def new_client(
|
|
|
46
47
|
contract_address: Optional inference contract address
|
|
47
48
|
"""
|
|
48
49
|
|
|
49
|
-
return Client(email=email, password=password, private_key=private_key, rpc_url=rpc_url, api_url=api_url, contract_address=contract_address)
|
|
50
|
+
return Client(email=email, password=password, private_key=private_key, rpc_url=rpc_url, api_url=api_url, contract_address=contract_address, **kwargs)
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
def init(email: str, password: str, private_key: str, rpc_url=DEFAULT_RPC_URL, api_url=DEFAULT_API_URL, contract_address=DEFAULT_INFERENCE_CONTRACT_ADDRESS):
|
opengradient/llm/og_langchain.py
CHANGED
|
@@ -3,14 +3,16 @@ from typing import Any, Dict, List, Optional, Sequence, Union, Callable
|
|
|
3
3
|
from typing_extensions import override
|
|
4
4
|
|
|
5
5
|
from langchain.chat_models.base import BaseChatModel
|
|
6
|
-
from
|
|
6
|
+
from langchain_core.messages import (
|
|
7
7
|
AIMessage,
|
|
8
8
|
BaseMessage,
|
|
9
|
-
ChatGeneration,
|
|
10
|
-
ChatResult,
|
|
11
9
|
HumanMessage,
|
|
12
10
|
SystemMessage,
|
|
13
11
|
)
|
|
12
|
+
from langchain_core.outputs import (
|
|
13
|
+
ChatGeneration,
|
|
14
|
+
ChatResult,
|
|
15
|
+
)
|
|
14
16
|
from langchain_core.callbacks.manager import CallbackManagerForLLMRun
|
|
15
17
|
from langchain_core.messages import ToolCall
|
|
16
18
|
from langchain_core.messages.tool import ToolMessage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
opengradient/__init__.py,sha256=
|
|
1
|
+
opengradient/__init__.py,sha256=wVg0KTFNBl7RnZF9huR5-m_q1E7tO-YyQwY7AD9JFoc,12635
|
|
2
2
|
opengradient/account.py,sha256=5wrYpws_1lozjOFjLCTHtxgoxK-LmObDAaVy9eDcJY4,1145
|
|
3
3
|
opengradient/cli.py,sha256=QzjH_KS6TF8gm_L1otFWA-oHkJ5SSfizFoRn0xR0b70,29162
|
|
4
4
|
opengradient/client.py,sha256=mcI4xC8XnOFQdROexSJojvTlEu6HiWzVJVquOOXcDms,55278
|
|
@@ -16,7 +16,7 @@ opengradient/alphasense/run_model_tool.py,sha256=wlDqXVHa1xpqQy_hmht_wWegxtqdYgY
|
|
|
16
16
|
opengradient/alphasense/types.py,sha256=uxk4JQKbaS2cM3ZiKpdHQb234OJ5ylprNR5vi01QFzA,220
|
|
17
17
|
opengradient/bin/PriceHistoryInference.bin,sha256=nU2FZpGHIKBZ7NSK9Sr-p9lr-nXja_40ISPN9yckDq8,41276
|
|
18
18
|
opengradient/llm/__init__.py,sha256=eYFBrOf1GZr0VGbIw-gSFr8hM3Rbw74ye8l-pnBPNuA,1104
|
|
19
|
-
opengradient/llm/og_langchain.py,sha256=
|
|
19
|
+
opengradient/llm/og_langchain.py,sha256=inJmu28aWA1RAWJx8G0h8w4FGXSKMCzJVOBGUwiKqnI,4904
|
|
20
20
|
opengradient/llm/og_openai.py,sha256=26W_NDnLaICIaWbi9aou40v5ZJXLlmLdztDrdFoDGAU,3789
|
|
21
21
|
opengradient/proto/__init__.py,sha256=AhaSmrqV0TXGzCKaoPV8-XUvqs2fGAJBM2aOmDpkNbE,55
|
|
22
22
|
opengradient/proto/infer.proto,sha256=13eaEMcppxkBF8yChptsX9HooWFwJKze7oLZNl-LEb8,1217
|
|
@@ -27,9 +27,9 @@ opengradient/workflow_models/constants.py,sha256=viIkb_LGcfVprqQNaA80gBTj6cfYam0
|
|
|
27
27
|
opengradient/workflow_models/types.py,sha256=Z22hF6c8Y4D2GlzVEIBODGwsqSjSrQvUcpZ7R-mIJdI,409
|
|
28
28
|
opengradient/workflow_models/utils.py,sha256=ySfpuiOBqLTlfto6ZxZf2vc7K6RGIja0l4eaVm5AOzY,1503
|
|
29
29
|
opengradient/workflow_models/workflow_models.py,sha256=d4C_gs39DAfy4cdY9Ee6GMXpPfzwvKFpmxzK1A7LNgU,3900
|
|
30
|
-
opengradient-0.5.
|
|
31
|
-
opengradient-0.5.
|
|
32
|
-
opengradient-0.5.
|
|
33
|
-
opengradient-0.5.
|
|
34
|
-
opengradient-0.5.
|
|
35
|
-
opengradient-0.5.
|
|
30
|
+
opengradient-0.5.0a2.dist-info/licenses/LICENSE,sha256=xEcvQ3AxZOtDkrqkys2Mm6Y9diEnaSeQRKvxi-JGnNA,1069
|
|
31
|
+
opengradient-0.5.0a2.dist-info/METADATA,sha256=3eKwixp2dBZH_45rE-qS5-WUiMSjq80rvdU34X9W56M,3959
|
|
32
|
+
opengradient-0.5.0a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
opengradient-0.5.0a2.dist-info/entry_points.txt,sha256=yUKTaJx8RXnybkob0J62wVBiCp_1agVbgw9uzsmaeJc,54
|
|
34
|
+
opengradient-0.5.0a2.dist-info/top_level.txt,sha256=oC1zimVLa2Yi1LQz8c7x-0IQm92milb5ax8gHBHwDqU,13
|
|
35
|
+
opengradient-0.5.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|