Add requisite imports in order to instantiate offline model in adapters file

This commit is contained in:
sabaimran 2023-11-20 15:27:42 -08:00
parent fee99779bf
commit a9623ef85a

View file

@ -4,7 +4,6 @@ from datetime import date, datetime
import secrets import secrets
from typing import Type, List from typing import Type, List
from datetime import date, timezone from datetime import date, timezone
import random
from django.db import models from django.db import models
from django.contrib.sessions.backends.db import SessionStore from django.contrib.sessions.backends.db import SessionStore
@ -35,6 +34,8 @@ from database.models import (
OfflineChatProcessorConversationConfig, OfflineChatProcessorConversationConfig,
) )
from khoj.utils.helpers import generate_random_name from khoj.utils.helpers import generate_random_name
from khoj.utils import state
from khoj.utils.config import GPT4AllProcessorModel
from khoj.search_filter.word_filter import WordFilter from khoj.search_filter.word_filter import WordFilter
from khoj.search_filter.file_filter import FileFilter from khoj.search_filter.file_filter import FileFilter
from khoj.search_filter.date_filter import DateFilter from khoj.search_filter.date_filter import DateFilter