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
08bf23a5
Unverified
Commit
08bf23a5
authored
Feb 26, 2024
by
Yeuoly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: invoke app
parent
269cd40e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app.py
api/controllers/inner_api/app.py
+3
-0
application_entities.py
api/core/entities/application_entities.py
+3
-0
No files found.
api/controllers/inner_api/app.py
View file @
08bf23a5
...
...
@@ -50,6 +50,9 @@ class EnterpriseAppInvokeApi(Resource):
if
app_model
is
None
:
raise
NotFound
(
"App Not Exists."
)
# disable auto generate name
args
[
'auto_generate_name'
]
=
False
try
:
response
=
CompletionService
.
completion
(
app_model
=
app_model
,
...
...
api/core/entities/application_entities.py
View file @
08bf23a5
...
...
@@ -248,6 +248,7 @@ class InvokeFrom(Enum):
WEB_APP
=
'web-app'
EXPLORE
=
'explore'
DEBUGGER
=
'debugger'
INNER_API
=
'inner-api'
@
classmethod
def
value_of
(
cls
,
value
:
str
)
->
'InvokeFrom'
:
...
...
@@ -276,6 +277,8 @@ class InvokeFrom(Enum):
return
'explore_app'
elif
self
==
InvokeFrom
.
SERVICE_API
:
return
'api'
elif
self
==
InvokeFrom
.
INNER_API
:
return
'inner_api'
return
'dev'
...
...
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