unique_toolkit 2026.34.0.dev8__py3-none-any.whl → 2026.34.0.dev9__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.
@@ -379,7 +379,18 @@ class UniqueApi(BaseSettings):
379
379
  )
380
380
 
381
381
  @staticmethod
382
- def _legacy_base_path(hostname: str | None) -> str:
382
+ def _legacy_base_path(hostname: str | None, port: int | None = None) -> str:
383
+ # ponytail: root path inferred from unique-api hostname / local :8096;
384
+ # ceiling = service rename or non-8096 local bind; upgrade = explicit ApiType.
385
+ if hostname and "unique-api" in hostname:
386
+ return ""
387
+ if (
388
+ hostname
389
+ and port == 8096
390
+ and (hostname in ("localhost", "127.0.0.1") or "localhost" in hostname)
391
+ ):
392
+ return ""
393
+
383
394
  base_path = "/public/chat"
384
395
  if hostname and (
385
396
  "gateway.qa.unique" in hostname or "gateway.unique" in hostname
@@ -409,7 +420,7 @@ class UniqueApi(BaseSettings):
409
420
  case ApiType.INTERNAL:
410
421
  base_path = "public"
411
422
  case ApiType.LEGACY:
412
- base_path = self._legacy_base_path(parsed.hostname)
423
+ base_path = self._legacy_base_path(parsed.hostname, parsed.port)
413
424
 
414
425
  return parsed, base_path
415
426
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-toolkit
3
- Version: 2026.34.0.dev8
3
+ Version: 2026.34.0.dev9
4
4
  Summary:
5
5
  Author: Cedric Klinkert, Martin Fadler, Sadique Sheik, Fabian Schläpfer, Pascal Hauri, Ejiroghene Oki-Peter, Rami Azouz, Ricardo Visini, Sanzio Monti
6
6
  Author-email: Cedric Klinkert <cedric.klinkert@unique.ch>, Martin Fadler <martin.fadler@unique.ch>, Sadique Sheik <sadique@unique.ch>, Fabian Schläpfer <fabian@unique.ch>, Pascal Hauri <pascal@unique.ch>, Ejiroghene Oki-Peter <oki-peter.ejiroghene@unique.ai>, Rami Azouz <rami.ext@unique.ch>, Ricardo Visini <ricardo.visini@unique.ch>, Sanzio Monti <sanzio.monti@unique.ai>
@@ -16,7 +16,7 @@ Requires-Dist: sseclient>=0.0.27,<0.0.28
16
16
  Requires-Dist: openai>=1.105.0,<3
17
17
  Requires-Dist: platformdirs>=4.0.0,<5
18
18
  Requires-Dist: pillow>=12.1.1
19
- Requires-Dist: unique-sdk>=2026.34.0.dev3,<2026.34.0rc0
19
+ Requires-Dist: unique-sdk>=2026.34.0.dev4,<2026.34.0rc0
20
20
  Requires-Dist: jambo>=0.1.2,<0.2
21
21
  Requires-Dist: jinja2>=3.1.6,<4
22
22
  Requires-Dist: docxtpl>=0.20.1,<0.21
@@ -251,7 +251,7 @@ unique_toolkit/app/init_sdk.py,sha256=5_oDoETr6akwYyBCb0ivTdMNu3SVgPSkrXcDS6ELyY
251
251
  unique_toolkit/app/performance/async_tasks.py,sha256=8Xv5kEmmFDJO7YyyBxv4e7bcNgq-3z_E2_4z1Yn9EqU,1970
252
252
  unique_toolkit/app/performance/async_wrapper.py,sha256=yVVcRDkcdyfjsxro-N29SBvi-7773wnfDplef6-y8xw,1077
253
253
  unique_toolkit/app/schemas.py,sha256=_jHuLDZO9YSP0xf-1AxNVorWYg2NgWfNZ9yXpGt2DHE,18518
254
- unique_toolkit/app/unique_settings.py,sha256=-bYvxwCw_DvhSViHXgc-pYoNboxhHB8VG2L9YNPiDHU,26861
254
+ unique_toolkit/app/unique_settings.py,sha256=dfqqh1Nv2JaqL3fePndmuRAfJcARzImdwSOO1J3KS1E,27318
255
255
  unique_toolkit/app/verification.py,sha256=GxFFwcJMy25fCA_Xe89wKW7bgqOu8PAs5y8QpHF0GSc,3861
256
256
  unique_toolkit/app/webhook.py,sha256=evpxLDnvz7P3D7-TV1XBkl8WcoldXpjOkw3tvFRxHr0,2368
257
257
  unique_toolkit/chat/__init__.py,sha256=-239hRT9x8fJ5rL_qvGAhnxLO_F7gToTVVLo0wZbesU,1722
@@ -420,6 +420,6 @@ unique_toolkit/short_term_memory/service.py,sha256=2JMBEBn6GoyK-a0xvdcWpPft-3C74
420
420
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
421
421
  unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
422
422
  unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
423
- unique_toolkit-2026.34.0.dev8.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
424
- unique_toolkit-2026.34.0.dev8.dist-info/METADATA,sha256=xKbzXHZ9elQ5mo-UZHvCPfjCK1Hfr3ds0Xum8Z1v8Ns,7821
425
- unique_toolkit-2026.34.0.dev8.dist-info/RECORD,,
423
+ unique_toolkit-2026.34.0.dev9.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
424
+ unique_toolkit-2026.34.0.dev9.dist-info/METADATA,sha256=u_HrX_80XqfWG54ud1CwTxBiJF2lKD0L9Go050etA4c,7821
425
+ unique_toolkit-2026.34.0.dev9.dist-info/RECORD,,