meshagent-openai 0.0.33__tar.gz → 0.0.34__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.

Files changed (25) hide show
  1. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/CHANGELOG.md +3 -0
  2. {meshagent_openai-0.0.33/meshagent_openai.egg-info → meshagent_openai-0.0.34}/PKG-INFO +4 -4
  3. meshagent_openai-0.0.34/meshagent/openai/proxy/proxy.py +22 -0
  4. meshagent_openai-0.0.34/meshagent/openai/version.py +1 -0
  5. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34/meshagent_openai.egg-info}/PKG-INFO +4 -4
  6. meshagent_openai-0.0.34/meshagent_openai.egg-info/requires.txt +7 -0
  7. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/pyproject.toml +3 -3
  8. meshagent_openai-0.0.33/meshagent/openai/proxy/proxy.py +0 -33
  9. meshagent_openai-0.0.33/meshagent/openai/version.py +0 -1
  10. meshagent_openai-0.0.33/meshagent_openai.egg-info/requires.txt +0 -7
  11. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/LICENSE +0 -0
  12. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/MANIFEST.in +0 -0
  13. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/README.md +0 -0
  14. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/__init__.py +0 -0
  15. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/proxy/__init__.py +0 -0
  16. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/__init__.py +0 -0
  17. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/completions_adapter.py +0 -0
  18. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/responses_adapter.py +0 -0
  19. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/schema.py +0 -0
  20. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/stt.py +0 -0
  21. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent/openai/tools/stt_test.py +0 -0
  22. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent_openai.egg-info/SOURCES.txt +0 -0
  23. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent_openai.egg-info/dependency_links.txt +0 -0
  24. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/meshagent_openai.egg-info/top_level.txt +0 -0
  25. {meshagent_openai-0.0.33 → meshagent_openai-0.0.34}/setup.cfg +0 -0
@@ -1,3 +1,6 @@
1
+ ## [0.0.34]
2
+ - Stability
3
+
1
4
  ## [0.0.33]
2
5
  - Stability
3
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.0.33
3
+ Version: 0.0.34
4
4
  Summary: OpenAI Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -13,9 +13,9 @@ Requires-Dist: pyjwt~=2.10.1
13
13
  Requires-Dist: pytest~=8.3.5
14
14
  Requires-Dist: pytest-asyncio~=0.26.0
15
15
  Requires-Dist: openai~=1.86.0
16
- Requires-Dist: meshagent-api~=0.0.33
17
- Requires-Dist: meshagent-agents~=0.0.33
18
- Requires-Dist: meshagent-tools~=0.0.33
16
+ Requires-Dist: meshagent-api~=0.0.34
17
+ Requires-Dist: meshagent-agents~=0.0.34
18
+ Requires-Dist: meshagent-tools~=0.0.34
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.34"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.0.33
3
+ Version: 0.0.34
4
4
  Summary: OpenAI Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -13,9 +13,9 @@ Requires-Dist: pyjwt~=2.10.1
13
13
  Requires-Dist: pytest~=8.3.5
14
14
  Requires-Dist: pytest-asyncio~=0.26.0
15
15
  Requires-Dist: openai~=1.86.0
16
- Requires-Dist: meshagent-api~=0.0.33
17
- Requires-Dist: meshagent-agents~=0.0.33
18
- Requires-Dist: meshagent-tools~=0.0.33
16
+ Requires-Dist: meshagent-api~=0.0.34
17
+ Requires-Dist: meshagent-agents~=0.0.34
18
+ Requires-Dist: meshagent-tools~=0.0.34
19
19
  Dynamic: license-file
20
20
 
21
21
  ### Meshagent OpenAI
@@ -0,0 +1,7 @@
1
+ pyjwt~=2.10.1
2
+ pytest~=8.3.5
3
+ pytest-asyncio~=0.26.0
4
+ openai~=1.86.0
5
+ meshagent-api~=0.0.34
6
+ meshagent-agents~=0.0.34
7
+ meshagent-tools~=0.0.34
@@ -14,9 +14,9 @@ dependencies = [
14
14
  "pytest~=8.3.5",
15
15
  "pytest-asyncio~=0.26.0",
16
16
  "openai~=1.86.0",
17
- "meshagent-api~=0.0.33",
18
- "meshagent-agents~=0.0.33",
19
- "meshagent-tools~=0.0.33"
17
+ "meshagent-api~=0.0.34",
18
+ "meshagent-agents~=0.0.34",
19
+ "meshagent-tools~=0.0.34"
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"
@@ -1,7 +0,0 @@
1
- pyjwt~=2.10.1
2
- pytest~=8.3.5
3
- pytest-asyncio~=0.26.0
4
- openai~=1.86.0
5
- meshagent-api~=0.0.33
6
- meshagent-agents~=0.0.33
7
- meshagent-tools~=0.0.33