add workflow api for installed app & web api & service api

This commit is contained in:
takatost
2024-03-16 16:27:39 +08:00
parent d2d47d0e0e
commit 3cf8416484
11 changed files with 275 additions and 6 deletions

View File

@ -19,6 +19,12 @@ class NotChatAppError(BaseHTTPException):
code = 400
class NotWorkflowAppError(BaseHTTPException):
error_code = 'not_workflow_app'
description = "Please check if your Workflow app mode matches the right API route."
code = 400
class ConversationCompletedError(BaseHTTPException):
error_code = 'conversation_completed'
description = "The conversation has ended. Please start a new conversation."