mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
Update personality.py
This commit is contained in:
parent
43a0ab68b7
commit
ac1bb16dd7
@ -907,7 +907,7 @@ class AIPersonality:
|
||||
v = TFIDFVectorizer()
|
||||
elif self.config.rag_vectorizer == "openai":
|
||||
from lollmsvectordb.lollms_vectorizers.openai_vectorizer import OpenAIVectorizer
|
||||
v = OpenAIVectorizer()
|
||||
v = OpenAIVectorizer(api_key=self.config.rag_vectorizer_openai_key)
|
||||
|
||||
self.persona_data_vectorizer = VectorDatabase(self.database_path, v, TikTokenTokenizer(), self.config.rag_chunk_size, self.config.rag_overlap)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user