meshagent-openai 0.5.8b5__py3-none-any.whl → 0.5.13__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.
- meshagent/openai/proxy/proxy.py +1 -11
- meshagent/openai/tools/responses_adapter.py +1 -1
- meshagent/openai/version.py +1 -1
- {meshagent_openai-0.5.8b5.dist-info → meshagent_openai-0.5.13.dist-info}/METADATA +5 -5
- meshagent_openai-0.5.13.dist-info/RECORD +15 -0
- meshagent_openai-0.5.8b5.dist-info/RECORD +0 -15
- {meshagent_openai-0.5.8b5.dist-info → meshagent_openai-0.5.13.dist-info}/WHEEL +0 -0
- {meshagent_openai-0.5.8b5.dist-info → meshagent_openai-0.5.13.dist-info}/licenses/LICENSE +0 -0
- {meshagent_openai-0.5.8b5.dist-info → meshagent_openai-0.5.13.dist-info}/top_level.txt +0 -0
meshagent/openai/proxy/proxy.py
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
from meshagent.api import RoomClient
|
|
2
2
|
from openai import AsyncOpenAI
|
|
3
|
-
import logging
|
|
4
|
-
|
|
5
|
-
logger = logging.getLogger("openai.client")
|
|
6
3
|
|
|
7
4
|
|
|
8
5
|
def get_client(*, room: RoomClient) -> AsyncOpenAI:
|
|
@@ -11,14 +8,7 @@ def get_client(*, room: RoomClient) -> AsyncOpenAI:
|
|
|
11
8
|
# when running inside the room pod, the room.room_url currently points to the external url
|
|
12
9
|
# so we need to use url off the protocol (if available).
|
|
13
10
|
# 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
|
|
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}")
|
|
11
|
+
url: str = getattr(room.protocol, "url", room.room_url)
|
|
22
12
|
|
|
23
13
|
room_proxy_url = f"{url}/v1"
|
|
24
14
|
|
|
@@ -275,7 +275,7 @@ class OpenAIResponsesToolResponseAdapter(ToolResponseAdapter):
|
|
|
275
275
|
class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
|
|
276
276
|
def __init__(
|
|
277
277
|
self,
|
|
278
|
-
model: str = os.getenv("OPENAI_MODEL", "gpt-
|
|
278
|
+
model: str = os.getenv("OPENAI_MODEL", "gpt-4.1"),
|
|
279
279
|
parallel_tool_calls: Optional[bool] = None,
|
|
280
280
|
client: Optional[AsyncOpenAI] = None,
|
|
281
281
|
response_options: Optional[dict] = None,
|
meshagent/openai/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.5.
|
|
1
|
+
__version__ = "0.5.13"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-openai
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.13
|
|
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.
|
|
9
|
+
Requires-Python: >=3.12
|
|
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.
|
|
17
|
-
Requires-Dist: meshagent-agents~=0.5.
|
|
18
|
-
Requires-Dist: meshagent-tools~=0.5.
|
|
16
|
+
Requires-Dist: meshagent-api~=0.5.13
|
|
17
|
+
Requires-Dist: meshagent-agents~=0.5.13
|
|
18
|
+
Requires-Dist: meshagent-tools~=0.5.13
|
|
19
19
|
Dynamic: license-file
|
|
20
20
|
|
|
21
21
|
# [Meshagent](https://www.meshagent.com)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
meshagent/openai/__init__.py,sha256=g4RSQWfL2El6HQ8i2Aw8wwBEJVC861Z61S0GqkFnBys,369
|
|
2
|
+
meshagent/openai/version.py,sha256=jEM-pQV3SLNuNue5fxlBM8hWNuJydsyqi_WBzC1VQaM,23
|
|
3
|
+
meshagent/openai/proxy/__init__.py,sha256=PkOCHmUptsbuX5sNlWJk5bMxnSzyg5AZhPtooEPV7XE,54
|
|
4
|
+
meshagent/openai/proxy/proxy.py,sha256=EC9LMQ6iv8bWnoGVFx78Sx7C_oaCi8Oq4bcMagleTiY,845
|
|
5
|
+
meshagent/openai/tools/__init__.py,sha256=cLXoB9CBqKbCGhZMAJTIX6-yv_UO8AxpaH8vQQ1e8VY,467
|
|
6
|
+
meshagent/openai/tools/completions_adapter.py,sha256=uW1sNK9RZ1jCUq0z17zjGJ8XPh97ugXpoIGF-PGH-mY,16132
|
|
7
|
+
meshagent/openai/tools/responses_adapter.py,sha256=-zdbBIV63fBsfnzEU-lFFzILw64Ui5LsBnDftSytgHo,64248
|
|
8
|
+
meshagent/openai/tools/schema.py,sha256=YaP0iEL9Lf2qS4xZy8VILjr1IS52XS9LEcn_cskNreo,10079
|
|
9
|
+
meshagent/openai/tools/stt.py,sha256=H3YusIjigJwxfEdkrK5qZ6DHbjQagaLNj7q_-fTfwy4,3845
|
|
10
|
+
meshagent/openai/tools/stt_test.py,sha256=XE4qZBlNeEWdJW5NjBGyaJmuCKN0ZLlJ2b_GBp7MzVk,2651
|
|
11
|
+
meshagent_openai-0.5.13.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
12
|
+
meshagent_openai-0.5.13.dist-info/METADATA,sha256=9nDr_CzgI6nXD-v5FMGZRl1icrzVqACqzl8t_TimUOQ,2107
|
|
13
|
+
meshagent_openai-0.5.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
meshagent_openai-0.5.13.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
15
|
+
meshagent_openai-0.5.13.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
meshagent/openai/__init__.py,sha256=g4RSQWfL2El6HQ8i2Aw8wwBEJVC861Z61S0GqkFnBys,369
|
|
2
|
-
meshagent/openai/version.py,sha256=cnkAixOtKNU4Eo4_iFGOBcSwj8iNkorkKr1m7S2tXFQ,24
|
|
3
|
-
meshagent/openai/proxy/__init__.py,sha256=PkOCHmUptsbuX5sNlWJk5bMxnSzyg5AZhPtooEPV7XE,54
|
|
4
|
-
meshagent/openai/proxy/proxy.py,sha256=1TX8DdFp7p1N3zoIgS-1u0JZgf9-5i1XpqnvHlmNX90,1145
|
|
5
|
-
meshagent/openai/tools/__init__.py,sha256=cLXoB9CBqKbCGhZMAJTIX6-yv_UO8AxpaH8vQQ1e8VY,467
|
|
6
|
-
meshagent/openai/tools/completions_adapter.py,sha256=uW1sNK9RZ1jCUq0z17zjGJ8XPh97ugXpoIGF-PGH-mY,16132
|
|
7
|
-
meshagent/openai/tools/responses_adapter.py,sha256=L35mV6_-9RnqbhneAo9YmNDSXNGAkUV4Q750lE4gg2U,64246
|
|
8
|
-
meshagent/openai/tools/schema.py,sha256=YaP0iEL9Lf2qS4xZy8VILjr1IS52XS9LEcn_cskNreo,10079
|
|
9
|
-
meshagent/openai/tools/stt.py,sha256=H3YusIjigJwxfEdkrK5qZ6DHbjQagaLNj7q_-fTfwy4,3845
|
|
10
|
-
meshagent/openai/tools/stt_test.py,sha256=XE4qZBlNeEWdJW5NjBGyaJmuCKN0ZLlJ2b_GBp7MzVk,2651
|
|
11
|
-
meshagent_openai-0.5.8b5.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
12
|
-
meshagent_openai-0.5.8b5.dist-info/METADATA,sha256=oWwpgDLCQYq-JI653Tz9HAasH886yxXu5ua2o3KVMj8,2111
|
|
13
|
-
meshagent_openai-0.5.8b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
-
meshagent_openai-0.5.8b5.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
15
|
-
meshagent_openai-0.5.8b5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|