oocana 0.15.0__py3-none-any.whl → 0.15.2__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.
- oocana/context.py +4 -0
- oocana/mainframe.py +4 -1
- oocana/throtter.py +2 -2
- {oocana-0.15.0.dist-info → oocana-0.15.2.dist-info}/METADATA +1 -1
- {oocana-0.15.0.dist-info → oocana-0.15.2.dist-info}/RECORD +7 -7
- {oocana-0.15.0.dist-info → oocana-0.15.2.dist-info}/WHEEL +0 -0
- {oocana-0.15.0.dist-info → oocana-0.15.2.dist-info}/entry_points.txt +0 -0
oocana/context.py
CHANGED
@@ -20,6 +20,9 @@ class OnlyEqualSelf:
|
|
20
20
|
|
21
21
|
class OOMOL_LLM_ENV(TypedDict):
|
22
22
|
base_url: str
|
23
|
+
"""{basUrl}/v1 openai compatible endpoint
|
24
|
+
"""
|
25
|
+
base_url_v1: str
|
23
26
|
api_key: str
|
24
27
|
models: list[str]
|
25
28
|
|
@@ -105,6 +108,7 @@ class Context:
|
|
105
108
|
"""
|
106
109
|
return {
|
107
110
|
"base_url": os.getenv("OOMOL_LLM_BASE_URL", ""),
|
111
|
+
"base_url_v1": os.getenv("OOMOL_LLM_BASE_URL_V1", ""),
|
108
112
|
"api_key": os.getenv("OOMOL_LLM_API_KEY", ""),
|
109
113
|
"models": os.getenv("OOMOL_LLM_MODELS", "").split(","),
|
110
114
|
}
|
oocana/mainframe.py
CHANGED
@@ -10,6 +10,8 @@ from typing import Optional
|
|
10
10
|
|
11
11
|
__all__ = ["Mainframe"]
|
12
12
|
|
13
|
+
|
14
|
+
|
13
15
|
class Mainframe:
|
14
16
|
address: str
|
15
17
|
client: mqtt.Client
|
@@ -72,12 +74,13 @@ class Mainframe:
|
|
72
74
|
def report(self, block_info: BlockDict, msg: dict) -> mqtt.MQTTMessageInfo:
|
73
75
|
return self.client.publish("report", dumps({**block_info, **msg}), qos=1)
|
74
76
|
|
75
|
-
def notify_executor_ready(self, session_id: str, executor_name: str, package: str | None) -> None:
|
77
|
+
def notify_executor_ready(self, session_id: str, executor_name: str, package: str | None, identifier: str | None) -> None:
|
76
78
|
self.client.publish(f"session/{session_id}", dumps({
|
77
79
|
"type": "ExecutorReady",
|
78
80
|
"session_id": session_id,
|
79
81
|
"executor_name": executor_name,
|
80
82
|
"package": package,
|
83
|
+
"identifier": identifier,
|
81
84
|
}), qos=1)
|
82
85
|
|
83
86
|
def notify_block_ready(self, session_id: str, job_id: str) -> dict:
|
oocana/throtter.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
oocana-0.15.
|
2
|
-
oocana-0.15.
|
3
|
-
oocana-0.15.
|
1
|
+
oocana-0.15.2.dist-info/METADATA,sha256=lzDe9JFcSExgsYQUELII5rtPbwVYZVhQ92EIgr8cZmo,287
|
2
|
+
oocana-0.15.2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
oocana-0.15.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
4
|
oocana/__init__.py,sha256=zMrQ1asZoRE91-BShf1v2ibdThaMc07YtZt5iNbbxsg,281
|
5
|
-
oocana/context.py,sha256=
|
5
|
+
oocana/context.py,sha256=S4SNHjJouOenll7gLvHS4HWYqyGKvI2u6kwOZberSaY,11764
|
6
6
|
oocana/data.py,sha256=ex042cqPHxqyRI8nuQBCguL1aLKX-7GGDughc-EAPqY,2939
|
7
7
|
oocana/handle_data.py,sha256=p0iEvdsVV3BqcelM8rvq0a_VPI52SeahaGCszfhZ0TI,1927
|
8
|
-
oocana/mainframe.py,sha256=
|
8
|
+
oocana/mainframe.py,sha256=VwqvjLlxLKqzzRjqPjWS-rsqRI5jiaq73l90hVBUu8g,5164
|
9
9
|
oocana/preview.py,sha256=sAKcVUFmOMvrzYLrvqAxd26SppSvK1qJqRTHdAS-KDc,1959
|
10
10
|
oocana/schema.py,sha256=8LwMaW4eXa3EmKxR4kzyTOpZiClMRMMsMA6f9CXodW4,4332
|
11
11
|
oocana/service.py,sha256=dPCcScQfMBlEjIodFnKU17-HlbBzrQbQK6CNRw7SmOE,2442
|
12
|
-
oocana/throtter.py,sha256=
|
13
|
-
oocana-0.15.
|
12
|
+
oocana/throtter.py,sha256=xTldm2OZ5uYPiyC6Aatug4FJAoMylPjtXftxHvSr_50,1104
|
13
|
+
oocana-0.15.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|