Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: default types (#1728)

crazywoola38b55d21864c
diff --git a/api/controllers/console/explore/conversation.py b/api/controllers/console/explore/conversation.py
index f6d4d84a90e..9848175fb54 100644
--- a/api/controllers/console/explore/conversation.py
+++ b/api/controllers/console/explore/conversation.py
@@ -73,7 +73,7 @@ class ConversationRenameApi(InstalledAppResource):
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 a85e392c25f..046a6c1341d 100644
--- a/api/controllers/console/universal_chat/conversation.py
+++ b/api/controllers/console/universal_chat/conversation.py
@@ -66,7 +66,7 @@ class UniversalChatConversationRenameApi(UniversalChatResource):
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 320ea5c74d3..5cd33dcd577 100644
--- a/api/controllers/service_api/app/completion.py
+++ b/api/controllers/service_api/app/completion.py
@@ -98,7 +98,7 @@ class ChatApi(AppApiResource):
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()