mirror of
https://github.com/langgenius/dify.git
synced 2026-03-19 21:57:33 +08:00
Merge fix/chore-fix into fix/chore-fix
This commit is contained in:
@ -87,3 +87,22 @@ class PluginVoiceEntity(BaseModel):
|
||||
|
||||
class PluginVoicesResponse(BaseModel):
|
||||
voices: list[PluginVoiceEntity] = Field(description="The result of the voices.")
|
||||
|
||||
|
||||
class PluginDaemonError(BaseModel):
|
||||
"""
|
||||
Error from plugin daemon.
|
||||
"""
|
||||
|
||||
error_type: str
|
||||
message: str
|
||||
args: Optional[dict] = None
|
||||
|
||||
|
||||
class PluginDaemonInnerError(Exception):
|
||||
code: int
|
||||
message: str
|
||||
|
||||
def __init__(self, code: int, message: str):
|
||||
self.code = code
|
||||
self.message = message
|
||||
|
||||
Reference in New Issue
Block a user