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
ba9041ea
Commit
ba9041ea
authored
Jul 26, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/universal-chat' into deploy/dev
parents
56279845
e51c9ff1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
completion_service.py
api/services/completion_service.py
+3
-1
No files found.
api/services/completion_service.py
View file @
ba9041ea
...
...
@@ -37,6 +37,8 @@ class CompletionService:
if
not
query
:
raise
ValueError
(
'query is required'
)
query
=
query
.
replace
(
'
\x00
'
,
''
)
conversation_id
=
args
[
'conversation_id'
]
if
'conversation_id'
in
args
else
None
conversation
=
None
...
...
@@ -371,7 +373,7 @@ class CompletionService:
if
len
(
value
)
>
max_length
:
raise
ValueError
(
f
'{variable} in input form must be less than {max_length} characters'
)
filtered_inputs
[
variable
]
=
value
filtered_inputs
[
variable
]
=
value
.
replace
(
'
\x00
'
,
''
)
if
value
else
None
return
filtered_inputs
...
...
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