Skip to content

Commit

Permalink
fix: default types (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Dec 9, 2023
1 parent bee0d12 commit 38b55d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/controllers/console/explore/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/console/universal_chat/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/service_api/app/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 38b55d2

Please sign in to comment.