mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 17:45:57 +08:00
fix: metadata in generate npe issue (#3166)
This commit is contained in:
parent
7753ba2d37
commit
9720d6b7a5
@ -122,7 +122,7 @@ class MessageEndStreamResponse(StreamResponse):
|
|||||||
"""
|
"""
|
||||||
event: StreamEvent = StreamEvent.MESSAGE_END
|
event: StreamEvent = StreamEvent.MESSAGE_END
|
||||||
id: str
|
id: str
|
||||||
metadata: Optional[dict] = None
|
metadata: dict = {}
|
||||||
|
|
||||||
|
|
||||||
class MessageFileStreamResponse(StreamResponse):
|
class MessageFileStreamResponse(StreamResponse):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user