From e0c6c92f971046cd1f616ca5aa246dd4db8e8740 Mon Sep 17 00:00:00 2001 From: LucasTrg <47852577+LucasTrg@users.noreply.github.com> Date: Wed, 22 May 2024 09:46:04 +0200 Subject: [PATCH] Fixes typo --- .../agenta_backend/services/deployment_manager.py | 6 +++--- agenta-backend/agenta_backend/services/llm_apps_service.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agenta-backend/agenta_backend/services/deployment_manager.py b/agenta-backend/agenta_backend/services/deployment_manager.py index c17a404f35..32cf015e1b 100644 --- a/agenta-backend/agenta_backend/services/deployment_manager.py +++ b/agenta-backend/agenta_backend/services/deployment_manager.py @@ -149,15 +149,15 @@ async def validate_image(image: Image) -> bool: def get_deployment_uri(deployment: DeploymentDB) -> str: """ Builds a URI allowing the backend to access a given deployment. - In the case of a self-hosted setup, we bypass traefik and use the docker generated dns entry instead. + In the case of a self-hosted setup, we bypass traefik and use the docker generated dns entry instead. Args: deployment (DeploymentDB): The deployment to reach. Returns: - str: URI leading to the deployment + str: URI leading to the deployment. """ if "localhost" in deployment.uri: # the DNS entry automatically created by docker for the container are the first 12 characters of the container's id - return "http://"+deployment.container_id[:12] + return "http://" + deployment.container_id[:12] return deployment.uri diff --git a/agenta-backend/agenta_backend/services/llm_apps_service.py b/agenta-backend/agenta_backend/services/llm_apps_service.py index 2accbfe509..594f5a50ca 100644 --- a/agenta-backend/agenta_backend/services/llm_apps_service.py +++ b/agenta-backend/agenta_backend/services/llm_apps_service.py @@ -274,7 +274,7 @@ async def get_parameters_from_openapi(uri: str) -> List[Dict]: """ - schema = await _get_openai_json_from_uri(uri) + schema = await _get_openapi_json_from_uri(uri) try: body_schema_name = ( @@ -304,7 +304,7 @@ async def get_parameters_from_openapi(uri: str) -> List[Dict]: return parameters -async def _get_openai_json_from_uri(uri): +async def _get_openapi_json_from_uri(uri): async with aiohttp.ClientSession() as client: resp = await client.get(uri, timeout=5) resp_text = await resp.text()