mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 06:00:42 -05:00
9 lines
218 B
Python
9 lines
218 B
Python
from typing import Optional
|
|
|
|
|
|
NON_SAVED_CHAT_ID_PREFIXES = ('local:', 'channel:')
|
|
|
|
|
|
def is_saved_chat_id(chat_id: Optional[str]) -> bool:
|
|
return bool(chat_id) and not chat_id.startswith(NON_SAVED_CHAT_ID_PREFIXES)
|