From 1564d42456e90cb7e27925fbb90fd1516f15abec Mon Sep 17 00:00:00 2001 From: brock Date: Sat, 2 Dec 2023 02:09:56 +0900 Subject: [PATCH 1/2] fix: parameters bug fix --- agenta-backend/agenta_backend/models/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-backend/agenta_backend/models/converters.py b/agenta-backend/agenta_backend/models/converters.py index aca21d24d5..cd93090dda 100644 --- a/agenta-backend/agenta_backend/models/converters.py +++ b/agenta-backend/agenta_backend/models/converters.py @@ -132,7 +132,7 @@ async def app_variant_db_to_output(app_variant_db: AppVariantDB) -> AppVariantOu variant_id=str(app_variant_db.id), user_id=str(app_variant_db.user.id), organization_id=str(app_variant_db.organization.id), - parameters=app_variant_db.parameters, + parameters=app_variant_db.config.parameters, previous_variant_name=app_variant_db.previous_variant_name, base_name=app_variant_db.base_name, base_id=str(app_variant_db.base.id), From 1627bf69f89ef8ff8184e527eb1ecfe1590d09ee Mon Sep 17 00:00:00 2001 From: brock Date: Sat, 2 Dec 2023 02:16:36 +0900 Subject: [PATCH 2/2] fix: parameters bug fix --- agenta-backend/agenta_backend/models/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-backend/agenta_backend/models/converters.py b/agenta-backend/agenta_backend/models/converters.py index cd93090dda..add5413dc1 100644 --- a/agenta-backend/agenta_backend/models/converters.py +++ b/agenta-backend/agenta_backend/models/converters.py @@ -107,7 +107,7 @@ def app_variant_db_to_pydantic( app_id=str(app_variant_db.app.id), app_name=app_variant_db.app.app_name, variant_name=app_variant_db.variant_name, - parameters=app_variant_db.parameters, + parameters=app_variant_db.config.parameters, previous_variant_name=app_variant_db.previous_variant_name, organization_id=str(app_variant_db.organization.id), base_name=app_variant_db.base_name,