unique_orchestrator 1.4.2__py3-none-any.whl → 1.4.3__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 unique_orchestrator might be problematic. Click here for more details.
- unique_orchestrator/unique_ai_builder.py +14 -3
- {unique_orchestrator-1.4.2.dist-info → unique_orchestrator-1.4.3.dist-info}/METADATA +4 -1
- {unique_orchestrator-1.4.2.dist-info → unique_orchestrator-1.4.3.dist-info}/RECORD +5 -5
- {unique_orchestrator-1.4.2.dist-info → unique_orchestrator-1.4.3.dist-info}/LICENSE +0 -0
- {unique_orchestrator-1.4.2.dist-info → unique_orchestrator-1.4.3.dist-info}/WHEEL +0 -0
|
@@ -217,7 +217,18 @@ def _build_common(
|
|
|
217
217
|
)
|
|
218
218
|
|
|
219
219
|
|
|
220
|
-
def
|
|
220
|
+
def _prepare_base_url(url: str, use_v1: bool) -> str:
|
|
221
|
+
url = url.rstrip("/") + "/openai"
|
|
222
|
+
|
|
223
|
+
if use_v1:
|
|
224
|
+
url += "/v1"
|
|
225
|
+
|
|
226
|
+
return url
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def _get_openai_client_from_env(
|
|
230
|
+
config: UniqueAIConfig, use_v1: bool = False
|
|
231
|
+
) -> AsyncOpenAI:
|
|
221
232
|
use_direct_azure_client = (
|
|
222
233
|
config.agent.experimental.responses_api_config.use_direct_azure_client
|
|
223
234
|
)
|
|
@@ -228,7 +239,7 @@ def _get_openai_client_from_env(config: UniqueAIConfig) -> AsyncOpenAI:
|
|
|
228
239
|
# TODO: (for testing only), remove when v1 endpoint is working
|
|
229
240
|
return AsyncOpenAI(
|
|
230
241
|
api_key=os.environ[api_key_env_var],
|
|
231
|
-
base_url=os.environ[api_base_env_var],
|
|
242
|
+
base_url=_prepare_base_url(os.environ[api_base_env_var], use_v1=use_v1),
|
|
232
243
|
)
|
|
233
244
|
else:
|
|
234
245
|
return get_async_openai_client().copy(
|
|
@@ -245,7 +256,7 @@ async def _build_responses(
|
|
|
245
256
|
common_components: _CommonComponents,
|
|
246
257
|
debug_info_manager: DebugInfoManager,
|
|
247
258
|
) -> UniqueAIResponsesApi:
|
|
248
|
-
client = _get_openai_client_from_env(config)
|
|
259
|
+
client = _get_openai_client_from_env(config, use_v1=True)
|
|
249
260
|
builtin_tool_manager = OpenAIBuiltInToolManager(
|
|
250
261
|
uploaded_files=common_components.uploaded_documents,
|
|
251
262
|
chat_id=event.payload.chat_id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_orchestrator
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.3
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Andreas Hauri
|
|
@@ -33,6 +33,9 @@ All notable changes to this project will be documented in this file.
|
|
|
33
33
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
34
34
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
35
35
|
|
|
36
|
+
## [1.4.3] - 2025-10-16
|
|
37
|
+
- Fix issue with openai base url
|
|
38
|
+
|
|
36
39
|
## [1.4.2] - 2025-10-16
|
|
37
40
|
- Update debug info for better tool call tracking
|
|
38
41
|
|
|
@@ -4,8 +4,8 @@ unique_orchestrator/prompts/system_prompt.jinja2,sha256=YXFdx3PG2p4TKfjEpz7guIw2
|
|
|
4
4
|
unique_orchestrator/prompts/user_message_prompt.jinja2,sha256=BQokpBh3H2J-rFk8i-PRph3jy4T1gAJPPb1mxxRWNuM,878
|
|
5
5
|
unique_orchestrator/tests/test_unique_ai_reference_order.py,sha256=8mZeVP1k8neH4qrFW3oa3zwIdaq2c7R1VvurC7kjBU8,4445
|
|
6
6
|
unique_orchestrator/unique_ai.py,sha256=PqeDaXtr2krqQ_xqhr1Kb9j0A3rPaCT0BqIvnJlFVbU,18845
|
|
7
|
-
unique_orchestrator/unique_ai_builder.py,sha256=
|
|
8
|
-
unique_orchestrator-1.4.
|
|
9
|
-
unique_orchestrator-1.4.
|
|
10
|
-
unique_orchestrator-1.4.
|
|
11
|
-
unique_orchestrator-1.4.
|
|
7
|
+
unique_orchestrator/unique_ai_builder.py,sha256=FGBXHArizCfp2JYlD8wX3PLPVhe5sQJEFO07EFskelE,16196
|
|
8
|
+
unique_orchestrator-1.4.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
9
|
+
unique_orchestrator-1.4.3.dist-info/METADATA,sha256=KnHQZA1Jd5OQSflrVrKp-3RgepVup_0zVNl6tLcZj3w,2836
|
|
10
|
+
unique_orchestrator-1.4.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
11
|
+
unique_orchestrator-1.4.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|