Files
open-webui/backend/open_webui/utils/chat_id.py
T
2026-07-26 21:07:20 -04:00

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)