From 75b9b99b1c1eaf6f6e6bdcf59a327853c8f3ed6c Mon Sep 17 00:00:00 2001 From: Juan Pablo Vega Date: Tue, 26 Nov 2024 19:54:49 +0100 Subject: [PATCH 1/3] bump --- agenta-cli/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-cli/pyproject.toml b/agenta-cli/pyproject.toml index fd116463ca..1f87fcd90c 100644 --- a/agenta-cli/pyproject.toml +++ b/agenta-cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "agenta" -version = "0.27.6" +version = "0.28.0a2" description = "The SDK for agenta is an open-source LLMOps platform." readme = "README.md" authors = ["Mahmoud Mabrouk "] From d37f3597da481fdb5e56bd5d1bcb320efd28db25 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vega Date: Tue, 26 Nov 2024 20:16:22 +0100 Subject: [PATCH 2/3] fix project_id from query params --- agenta-cli/agenta/sdk/middleware/auth.py | 3 ++- agenta-cli/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/agenta-cli/agenta/sdk/middleware/auth.py b/agenta-cli/agenta/sdk/middleware/auth.py index c51e0614f7..c02e46322a 100644 --- a/agenta-cli/agenta/sdk/middleware/auth.py +++ b/agenta-cli/agenta/sdk/middleware/auth.py @@ -63,7 +63,6 @@ async def dispatch( self, request: Request, call_next: Callable, - project_id: Optional[UUID] = None, ): if AGENTA_UNAUTHORIZED_EXECUTION_ALLOWED: return await call_next(request) @@ -85,6 +84,8 @@ async def dispatch( "resource_id": self.resource_id, } + project_id = request.query_params.get("project_id") + if project_id: params["project_id"] = project_id diff --git a/agenta-cli/pyproject.toml b/agenta-cli/pyproject.toml index 1f87fcd90c..4a40dc31e4 100644 --- a/agenta-cli/pyproject.toml +++ b/agenta-cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "agenta" -version = "0.28.0a2" +version = "0.28.0a3" description = "The SDK for agenta is an open-source LLMOps platform." readme = "README.md" authors = ["Mahmoud Mabrouk "] From 053de52852772061c4e37d362d6d80478d0bc8d8 Mon Sep 17 00:00:00 2001 From: jp-agenta Date: Tue, 26 Nov 2024 20:18:04 +0100 Subject: [PATCH 3/3] Update pyproject.toml --- agenta-cli/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-cli/pyproject.toml b/agenta-cli/pyproject.toml index 4a40dc31e4..fd116463ca 100644 --- a/agenta-cli/pyproject.toml +++ b/agenta-cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "agenta" -version = "0.28.0a3" +version = "0.27.6" description = "The SDK for agenta is an open-source LLMOps platform." readme = "README.md" authors = ["Mahmoud Mabrouk "]