Unverified Commit 08bf23a5 authored by Yeuoly's avatar Yeuoly

fix: invoke app

parent 269cd40e
......@@ -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,
......
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment