Skip to content
Snippets Groups Projects
Unverified Commit 2e80ef47 authored by Huu Le (Lee)'s avatar Huu Le (Lee) Committed by GitHub
Browse files

Fix typo in settings.py (#73)

parent a1feb524
No related branches found
No related tags found
No related merge requests found
......@@ -40,10 +40,10 @@ def init_openai():
}
Settings.llm = OpenAI(**config)
dimension = os.getenv("EMBEDDING_DIM")
dimensions = os.getenv("EMBEDDING_DIM")
config = {
"model": os.getenv("EMBEDDING_MODEL"),
"dimension": int(dimension) if dimension is not None else None,
"dimensions": int(dimensions) if dimensions is not None else None,
}
Settings.embed_model = OpenAIEmbedding(**config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment