diff --git a/api/controllers/console/explore/conversation.py b/api/controllers/console/explore/conversation.py index f6d4d84a90ef01..9848175fb5485b 100644 --- a/api/controllers/console/explore/conversation.py +++ b/api/controllers/console/explore/conversation.py @@ -73,7 +73,7 @@ def post(self, installed_app, c_id): parser = reqparse.RequestParser() parser.add_argument('name', type=str, required=False, location='json') - parser.add_argument('auto_generate', type=bool, required=False, default='False', location='json') + parser.add_argument('auto_generate', type=bool, required=False, default=False, location='json') args = parser.parse_args() try: diff --git a/api/controllers/console/universal_chat/conversation.py b/api/controllers/console/universal_chat/conversation.py index a85e392c25f837..046a6c1341dfe8 100644 --- a/api/controllers/console/universal_chat/conversation.py +++ b/api/controllers/console/universal_chat/conversation.py @@ -66,7 +66,7 @@ def post(self, universal_app, c_id): parser = reqparse.RequestParser() parser.add_argument('name', type=str, required=False, location='json') - parser.add_argument('auto_generate', type=bool, required=False, default='False', location='json') + parser.add_argument('auto_generate', type=bool, required=False, default=False, location='json') args = parser.parse_args() try: diff --git a/api/controllers/service_api/app/completion.py b/api/controllers/service_api/app/completion.py index 320ea5c74d39cb..5cd33dcd577ee2 100644 --- a/api/controllers/service_api/app/completion.py +++ b/api/controllers/service_api/app/completion.py @@ -98,7 +98,7 @@ def post(self, app_model, end_user): parser.add_argument('conversation_id', type=uuid_value, location='json') parser.add_argument('user', type=str, location='json') parser.add_argument('retriever_from', type=str, required=False, default='dev', location='json') - parser.add_argument('auto_generate_name', type=bool, required=False, default='True', location='json') + parser.add_argument('auto_generate_name', type=bool, required=False, default=True, location='json') args = parser.parse_args()