mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix service api blocking mode
This commit is contained in:
@ -101,9 +101,10 @@ class ErrorStreamResponse(StreamResponse):
|
||||
ErrorStreamResponse entity
|
||||
"""
|
||||
event: StreamEvent = StreamEvent.ERROR
|
||||
code: str
|
||||
status: int
|
||||
message: Optional[str] = None
|
||||
err: Exception
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
|
||||
class MessageStreamResponse(StreamResponse):
|
||||
|
||||
Reference in New Issue
Block a user