Skip to content

Commit

Permalink
Merge pull request #1147 from Torantulino/richbeales-patch-2
Browse files Browse the repository at this point in the history
Hotfix - re-add missing cfg variable to memory/base
  • Loading branch information
richbeales authored Apr 13, 2023
2 parents 0488385 + 53c00b4 commit ff52b20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from config import AbstractSingleton, Config
import openai

cfg = Config()

def get_ada_embedding(text):
text = text.replace("\n", " ")
Expand Down

1 comment on commit ff52b20

@bealbrown
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, yes this worked for me.

Please sign in to comment.