meshagent-openai 0.5.6__py3-none-any.whl → 0.5.8b1__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 meshagent-openai might be problematic. Click here for more details.

@@ -1,5 +1,8 @@
1
1
  from meshagent.api import RoomClient
2
2
  from openai import AsyncOpenAI
3
+ import logging
4
+
5
+ logger = logging.getLogger("openai.client")
3
6
 
4
7
 
5
8
  def get_client(*, room: RoomClient) -> AsyncOpenAI:
@@ -8,7 +11,14 @@ def get_client(*, room: RoomClient) -> AsyncOpenAI:
8
11
  # when running inside the room pod, the room.room_url currently points to the external url
9
12
  # so we need to use url off the protocol (if available).
10
13
  # TODO: room_url should be set properly, but may need a claim in the token to be set during call to say it is local
11
- url: str = getattr(room.protocol, "url", room.room_url)
14
+ url = getattr(room.protocol, "url")
15
+ if url is None:
16
+ logger.debug(
17
+ f"protocol does not have url, openai client falling back to room url {room.room_url}"
18
+ )
19
+ url = room.room_url
20
+ else:
21
+ logger.debug(f"protocol had url, openai client will use {url}")
12
22
 
13
23
  room_proxy_url = f"{url}/v1"
14
24
 
@@ -1 +1 @@
1
- __version__ = "0.5.6"
1
+ __version__ = "0.5.8-beta.1"
@@ -1,21 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.5.6
3
+ Version: 0.5.8b1
4
4
  Summary: OpenAI Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
7
7
  Project-URL: Website, https://www.meshagent.com
8
8
  Project-URL: Source, https://www.meshagent.com
9
- Requires-Python: >=3.12
9
+ Requires-Python: >=3.13
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: pyjwt~=2.10
13
13
  Requires-Dist: pytest~=8.4
14
14
  Requires-Dist: pytest-asyncio~=0.26
15
15
  Requires-Dist: openai~=1.84
16
- Requires-Dist: meshagent-api~=0.5.6
17
- Requires-Dist: meshagent-agents~=0.5.6
18
- Requires-Dist: meshagent-tools~=0.5.6
16
+ Requires-Dist: meshagent-api~=0.5.8-beta.1
17
+ Requires-Dist: meshagent-agents~=0.5.8-beta.1
18
+ Requires-Dist: meshagent-tools~=0.5.8-beta.1
19
19
  Dynamic: license-file
20
20
 
21
21
  # [Meshagent](https://www.meshagent.com)
@@ -1,15 +1,15 @@
1
1
  meshagent/openai/__init__.py,sha256=g4RSQWfL2El6HQ8i2Aw8wwBEJVC861Z61S0GqkFnBys,369
2
- meshagent/openai/version.py,sha256=CMH34Gt1AqO7z_TqRj94XwohGoVCf8aes0djkqm45mk,22
2
+ meshagent/openai/version.py,sha256=UuWI1khJCTSIH7nHgIpNJWoeqg5GBLawnAjdq1dfb8w,29
3
3
  meshagent/openai/proxy/__init__.py,sha256=PkOCHmUptsbuX5sNlWJk5bMxnSzyg5AZhPtooEPV7XE,54
4
- meshagent/openai/proxy/proxy.py,sha256=EC9LMQ6iv8bWnoGVFx78Sx7C_oaCi8Oq4bcMagleTiY,845
4
+ meshagent/openai/proxy/proxy.py,sha256=1TX8DdFp7p1N3zoIgS-1u0JZgf9-5i1XpqnvHlmNX90,1145
5
5
  meshagent/openai/tools/__init__.py,sha256=cLXoB9CBqKbCGhZMAJTIX6-yv_UO8AxpaH8vQQ1e8VY,467
6
6
  meshagent/openai/tools/completions_adapter.py,sha256=uW1sNK9RZ1jCUq0z17zjGJ8XPh97ugXpoIGF-PGH-mY,16132
7
7
  meshagent/openai/tools/responses_adapter.py,sha256=-zdbBIV63fBsfnzEU-lFFzILw64Ui5LsBnDftSytgHo,64248
8
8
  meshagent/openai/tools/schema.py,sha256=YaP0iEL9Lf2qS4xZy8VILjr1IS52XS9LEcn_cskNreo,10079
9
9
  meshagent/openai/tools/stt.py,sha256=H3YusIjigJwxfEdkrK5qZ6DHbjQagaLNj7q_-fTfwy4,3845
10
10
  meshagent/openai/tools/stt_test.py,sha256=XE4qZBlNeEWdJW5NjBGyaJmuCKN0ZLlJ2b_GBp7MzVk,2651
11
- meshagent_openai-0.5.6.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
12
- meshagent_openai-0.5.6.dist-info/METADATA,sha256=MeaYqBSOdl4DzLbs3_9KoS4HNvuaKYioU3ybCWAivfE,2103
13
- meshagent_openai-0.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- meshagent_openai-0.5.6.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
15
- meshagent_openai-0.5.6.dist-info/RECORD,,
11
+ meshagent_openai-0.5.8b1.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
12
+ meshagent_openai-0.5.8b1.dist-info/METADATA,sha256=2NWZonLwA-OCHgYdc6STiIW_ty1QHygGR2TJwbysEcE,2126
13
+ meshagent_openai-0.5.8b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ meshagent_openai-0.5.8b1.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
15
+ meshagent_openai-0.5.8b1.dist-info/RECORD,,