fix: fit gemini
This commit is contained in:
@@ -261,6 +261,8 @@ class ChatManager:
|
|||||||
def get_stream(self, stream_id: str) -> Optional[ChatStream]:
|
def get_stream(self, stream_id: str) -> Optional[ChatStream]:
|
||||||
"""通过stream_id获取聊天流"""
|
"""通过stream_id获取聊天流"""
|
||||||
stream = self.streams.get(stream_id)
|
stream = self.streams.get(stream_id)
|
||||||
|
if not stream:
|
||||||
|
return None
|
||||||
if stream_id in self.last_messages:
|
if stream_id in self.last_messages:
|
||||||
stream.set_context(self.last_messages[stream_id])
|
stream.set_context(self.last_messages[stream_id])
|
||||||
return stream
|
return stream
|
||||||
|
|||||||
Reference in New Issue
Block a user