agenta 0.48.6__py3-none-any.whl → 0.48.7__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 agenta might be problematic. Click here for more details.
agenta/sdk/utils/helpers.py
CHANGED
|
@@ -32,11 +32,12 @@ def parse_url(url: str) -> str:
|
|
|
32
32
|
if internal_url:
|
|
33
33
|
return internal_url
|
|
34
34
|
|
|
35
|
-
docker_network_mode = os.getenv("DOCKER_NETWORK_MODE"
|
|
36
|
-
|
|
35
|
+
docker_network_mode = os.getenv("DOCKER_NETWORK_MODE")
|
|
36
|
+
|
|
37
|
+
if docker_network_mode and docker_network_mode.lower() == "bridge":
|
|
37
38
|
return url.replace("localhost", "host.docker.internal")
|
|
38
39
|
|
|
39
|
-
if not docker_network_mode or docker_network_mode == "host":
|
|
40
|
+
if not docker_network_mode or docker_network_mode.lower() == "host":
|
|
40
41
|
return url
|
|
41
42
|
|
|
42
43
|
# For any other network mode, return the URL unchanged
|
|
@@ -245,11 +245,11 @@ agenta/sdk/utils/constants.py,sha256=zW3R4rjXOo2L5lz6q84l_zYuOM9u4mpPRHw_B1Dr_hI
|
|
|
245
245
|
agenta/sdk/utils/costs.py,sha256=i8C7ud__pThLS55XkN4YW8czXtGeXr2mx7jjcOFeiXg,5955
|
|
246
246
|
agenta/sdk/utils/exceptions.py,sha256=Dq3lh5Ug7IhF4nvYRXXlwhgxEuByOnT1w0uVMZx1eaM,1504
|
|
247
247
|
agenta/sdk/utils/globals.py,sha256=9ixKS8aI6ZWgsjT8WngvTg4dsnP2cKErNJngHxzdK9U,256
|
|
248
|
-
agenta/sdk/utils/helpers.py,sha256=
|
|
248
|
+
agenta/sdk/utils/helpers.py,sha256=nqUrTfRQfzQhP9ZuJ72MXVRtIFgAoIhzymFN2wGZYhQ,1198
|
|
249
249
|
agenta/sdk/utils/logging.py,sha256=j4NzpFk2ilOM10sRBOxCjmansDHSx6HwMV8IAEreRb8,8386
|
|
250
250
|
agenta/sdk/utils/preinit.py,sha256=1TAAHhYyYnLLwvzwnf33Qwkou7tI3iITlVt-1kcyGaM,1186
|
|
251
251
|
agenta/sdk/utils/singleton.py,sha256=17Ph7LGnnV8HkPjImruKita2ni03Ari5jr0jqm__4sc,312
|
|
252
252
|
agenta/sdk/utils/timing.py,sha256=nZR-kudVUtKFlHuBhztgSGxj7FVnCB4Uv6sfg-1dkrQ,1556
|
|
253
|
-
agenta-0.48.
|
|
254
|
-
agenta-0.48.
|
|
255
|
-
agenta-0.48.
|
|
253
|
+
agenta-0.48.7.dist-info/METADATA,sha256=n5d-_1uPyyt92NsHqNQkuzmCaTqLVeWQKxpG27VBB9M,31433
|
|
254
|
+
agenta-0.48.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
255
|
+
agenta-0.48.7.dist-info/RECORD,,
|
|
File without changes
|