open-webui/backend/apps/web/internal/db.py
2024-01-22 01:47:07 -08:00

6 lines
109 B
Python

from peewee import *
from config import DATA_DIR
DB = SqliteDatabase(f"{DATA_DIR}/ollama.db")
DB.connect()