meshagent-openai 0.0.33__tar.gz → 0.0.35__tar.gz
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 meshagent-openai might be problematic. Click here for more details.
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/CHANGELOG.md +6 -0
- {meshagent_openai-0.0.33/meshagent_openai.egg-info → meshagent_openai-0.0.35}/PKG-INFO +8 -8
- meshagent_openai-0.0.35/meshagent/openai/proxy/proxy.py +22 -0
- meshagent_openai-0.0.35/meshagent/openai/version.py +1 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35/meshagent_openai.egg-info}/PKG-INFO +8 -8
- meshagent_openai-0.0.35/meshagent_openai.egg-info/requires.txt +7 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/pyproject.toml +7 -7
- meshagent_openai-0.0.33/meshagent/openai/proxy/proxy.py +0 -33
- meshagent_openai-0.0.33/meshagent/openai/version.py +0 -1
- meshagent_openai-0.0.33/meshagent_openai.egg-info/requires.txt +0 -7
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/LICENSE +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/MANIFEST.in +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/README.md +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/__init__.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/proxy/__init__.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/__init__.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/completions_adapter.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/responses_adapter.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/schema.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/stt.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/stt_test.py +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent_openai.egg-info/SOURCES.txt +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent_openai.egg-info/dependency_links.txt +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent_openai.egg-info/top_level.txt +0 -0
- {meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-openai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.35
|
|
4
4
|
Summary: OpenAI Building Blocks for Meshagent
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Documentation, https://docs.meshagent.com
|
|
@@ -9,13 +9,13 @@ Project-URL: Source, https://www.meshagent.com
|
|
|
9
9
|
Requires-Python: >=3.12
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
Requires-Dist: pyjwt~=2.10
|
|
13
|
-
Requires-Dist: pytest~=8.3
|
|
14
|
-
Requires-Dist: pytest-asyncio~=0.26
|
|
15
|
-
Requires-Dist: openai~=1.
|
|
16
|
-
Requires-Dist: meshagent-api~=0.0.
|
|
17
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
18
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
12
|
+
Requires-Dist: pyjwt~=2.10
|
|
13
|
+
Requires-Dist: pytest~=8.3
|
|
14
|
+
Requires-Dist: pytest-asyncio~=0.26
|
|
15
|
+
Requires-Dist: openai~=1.84
|
|
16
|
+
Requires-Dist: meshagent-api~=0.0.35
|
|
17
|
+
Requires-Dist: meshagent-agents~=0.0.35
|
|
18
|
+
Requires-Dist: meshagent-tools~=0.0.35
|
|
19
19
|
Dynamic: license-file
|
|
20
20
|
|
|
21
21
|
### Meshagent OpenAI
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from meshagent.api import RoomClient
|
|
3
|
+
from openai import AsyncOpenAI
|
|
4
|
+
|
|
5
|
+
def get_client(*, room: RoomClient) -> AsyncOpenAI:
|
|
6
|
+
|
|
7
|
+
token : str = room.protocol.token
|
|
8
|
+
url : str = room.room_url
|
|
9
|
+
|
|
10
|
+
room_proxy_url = f"{url}/v1"
|
|
11
|
+
|
|
12
|
+
if room_proxy_url.startswith("ws:") or room_proxy_url.startswith("wss:"):
|
|
13
|
+
room_proxy_url = room_proxy_url.replace("ws","http",1)
|
|
14
|
+
|
|
15
|
+
openai=AsyncOpenAI(
|
|
16
|
+
api_key=token,
|
|
17
|
+
base_url=room_proxy_url,
|
|
18
|
+
default_headers={
|
|
19
|
+
"Meshagent-Session" : room.session_id
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
return openai
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.35"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-openai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.35
|
|
4
4
|
Summary: OpenAI Building Blocks for Meshagent
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Documentation, https://docs.meshagent.com
|
|
@@ -9,13 +9,13 @@ Project-URL: Source, https://www.meshagent.com
|
|
|
9
9
|
Requires-Python: >=3.12
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
Requires-Dist: pyjwt~=2.10
|
|
13
|
-
Requires-Dist: pytest~=8.3
|
|
14
|
-
Requires-Dist: pytest-asyncio~=0.26
|
|
15
|
-
Requires-Dist: openai~=1.
|
|
16
|
-
Requires-Dist: meshagent-api~=0.0.
|
|
17
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
18
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
12
|
+
Requires-Dist: pyjwt~=2.10
|
|
13
|
+
Requires-Dist: pytest~=8.3
|
|
14
|
+
Requires-Dist: pytest-asyncio~=0.26
|
|
15
|
+
Requires-Dist: openai~=1.84
|
|
16
|
+
Requires-Dist: meshagent-api~=0.0.35
|
|
17
|
+
Requires-Dist: meshagent-agents~=0.0.35
|
|
18
|
+
Requires-Dist: meshagent-tools~=0.0.35
|
|
19
19
|
Dynamic: license-file
|
|
20
20
|
|
|
21
21
|
### Meshagent OpenAI
|
|
@@ -10,13 +10,13 @@ requires-python = ">=3.12"
|
|
|
10
10
|
license = "Apache-2.0"
|
|
11
11
|
keywords = []
|
|
12
12
|
dependencies = [
|
|
13
|
-
"pyjwt~=2.10
|
|
14
|
-
"pytest~=8.3
|
|
15
|
-
"pytest-asyncio~=0.26
|
|
16
|
-
"openai~=1.
|
|
17
|
-
"meshagent-api~=0.0.
|
|
18
|
-
"meshagent-agents~=0.0.
|
|
19
|
-
"meshagent-tools~=0.0.
|
|
13
|
+
"pyjwt~=2.10",
|
|
14
|
+
"pytest~=8.3",
|
|
15
|
+
"pytest-asyncio~=0.26",
|
|
16
|
+
"openai~=1.84",
|
|
17
|
+
"meshagent-api~=0.0.35",
|
|
18
|
+
"meshagent-agents~=0.0.35",
|
|
19
|
+
"meshagent-tools~=0.0.35"
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
[project.urls]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from meshagent.api import RoomClient
|
|
3
|
-
from openai import AsyncOpenAI
|
|
4
|
-
|
|
5
|
-
def get_client(*, room: RoomClient) -> AsyncOpenAI:
|
|
6
|
-
|
|
7
|
-
if os.getenv("MESHAGENT_API_URL") == None:
|
|
8
|
-
token : str = room.protocol.token
|
|
9
|
-
url : str = room.room_url
|
|
10
|
-
|
|
11
|
-
room_proxy_url = f"{url}/v1"
|
|
12
|
-
|
|
13
|
-
if room_proxy_url.startswith("ws:") or room_proxy_url.startswith("wss:"):
|
|
14
|
-
room_proxy_url = room_proxy_url.replace("ws","http",1)
|
|
15
|
-
|
|
16
|
-
print(room_proxy_url)
|
|
17
|
-
openai=AsyncOpenAI(
|
|
18
|
-
api_key=token,
|
|
19
|
-
base_url=room_proxy_url,
|
|
20
|
-
default_headers={
|
|
21
|
-
"Meshagent-Session" : room.session_id
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
else:
|
|
26
|
-
|
|
27
|
-
openai=AsyncOpenAI(
|
|
28
|
-
default_headers={
|
|
29
|
-
"Meshagent-Session" : room.session_id
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
return openai
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.33"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/completions_adapter.py
RENAMED
|
File without changes
|
{meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent/openai/tools/responses_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{meshagent_openai-0.0.33 → meshagent_openai-0.0.35}/meshagent_openai.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|