Made changes to suit Openwebui
This commit is contained in:
@@ -18,10 +18,10 @@ class ChatService:
|
||||
def __init__(self):
|
||||
"""Initialize the chat service."""
|
||||
# Ensure data directory exists
|
||||
os.makedirs(os.path.dirname(config.SQLITE_DB_PATH), exist_ok=True)
|
||||
os.makedirs('ai_service/data', exist_ok=True)
|
||||
|
||||
# For now, we'll store chat data in a simple JSON file
|
||||
self.chats_file = os.path.join(os.path.dirname(config.SQLITE_DB_PATH), 'chats.json')
|
||||
self.chats_file = 'ai_service/data/chats.json'
|
||||
self._load_chats()
|
||||
|
||||
def _load_chats(self):
|
||||
|
||||
Reference in New Issue
Block a user