Skip to content

Commit

Permalink
Removed more OpenAI stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rhohndorf committed Apr 14, 2023
1 parent decaab8 commit 83ea478
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/memory/base.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"""Base class for memory providers."""
import abc
from config import AbstractSingleton
# import openai
from llm_utils import llm

def get_ada_embedding(text):
text = text.replace("\n", " ")
# return openai.Embedding.create(input=[text], model="text-embedding-ada-002")["data"][0]["embedding"]
return llm.create_embedding(text)

class MemoryProviderSingleton(AbstractSingleton):
Expand Down

0 comments on commit 83ea478

Please sign in to comment.