mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
docs: Create an application and add workflow parameters (#2374)
This commit is contained in:
parent
3c6b65baa1
commit
2d4deda6b4
|
|
@ -234,7 +234,7 @@ class ApplicationApi(ApiMixin):
|
|||
default=[]),
|
||||
'edges': openapi.Schema(type=openapi.TYPE_ARRAY, items=openapi.Schema(type=openapi.TYPE_OBJECT),
|
||||
title=_('Connection List'), description=_("Connection List"),
|
||||
default={}),
|
||||
default=[]),
|
||||
|
||||
}
|
||||
)
|
||||
|
|
@ -324,7 +324,8 @@ class ApplicationApi(ApiMixin):
|
|||
return openapi.Schema(
|
||||
type=openapi.TYPE_OBJECT,
|
||||
required=['name', 'desc', 'model_id', 'dialogue_number', 'dataset_setting', 'model_setting',
|
||||
'problem_optimization', 'stt_model_enable', 'stt_model_enable', 'tts_type'],
|
||||
'problem_optimization', 'stt_model_enable', 'stt_model_enable', 'tts_type',
|
||||
'work_flow'],
|
||||
properties={
|
||||
'name': openapi.Schema(type=openapi.TYPE_STRING, title=_("Application Name"),
|
||||
description=_("Application Name")),
|
||||
|
|
@ -361,7 +362,8 @@ class ApplicationApi(ApiMixin):
|
|||
'tts_model_enable': openapi.Schema(type=openapi.TYPE_STRING, title=_("Is text-to-speech enabled"),
|
||||
description=_("Is text-to-speech enabled")),
|
||||
'tts_type': openapi.Schema(type=openapi.TYPE_STRING, title=_("Text-to-speech type"),
|
||||
description=_("Text-to-speech type"))
|
||||
description=_("Text-to-speech type")),
|
||||
'work_flow': ApplicationApi.WorkFlow.get_request_body_api(),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
@ -432,4 +434,4 @@ class ApplicationApi(ApiMixin):
|
|||
'text': openapi.Schema(type=openapi.TYPE_STRING, title=_("Text"),
|
||||
description=_("Text")),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue