mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
chore: fix stream image
This commit is contained in:
parent
dfd44f8fb7
commit
5b10d9519b
1 changed files with 7 additions and 0 deletions
|
@ -501,6 +501,13 @@ impl Stream for CompletionStream {
|
|||
return Poll::Ready(Some(Ok(CompletionStreamValue::Comment { value: comment })));
|
||||
}
|
||||
|
||||
if let Some(image) = value
|
||||
.remove(STREAM_IMAGE_KEY)
|
||||
.and_then(|s| s.as_str().map(ToString::to_string))
|
||||
{
|
||||
return Poll::Ready(Some(Ok(CompletionStreamValue::Answer { value: image })));
|
||||
}
|
||||
|
||||
error!("Invalid streaming value: {:?}", value);
|
||||
Poll::Ready(None)
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue