Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
38b55d21
Unverified
Commit
38b55d21
authored
Dec 09, 2023
by
crazywoola
Committed by
GitHub
Dec 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: default types (#1728)
parent
bee0d124
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
conversation.py
api/controllers/console/explore/conversation.py
+1
-1
conversation.py
api/controllers/console/universal_chat/conversation.py
+1
-1
completion.py
api/controllers/service_api/app/completion.py
+1
-1
No files found.
api/controllers/console/explore/conversation.py
View file @
38b55d21
...
...
@@ -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
:
...
...
api/controllers/console/universal_chat/conversation.py
View file @
38b55d21
...
...
@@ -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
:
...
...
api/controllers/service_api/app/completion.py
View file @
38b55d21
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment