correct case on embeddingFromB64

This commit is contained in:
DepFA 2022-10-09 22:06:42 +01:00 committed by GitHub
parent d0184b8f76
commit 6684610510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ def embeddingToB64(data):
d = json.dumps(data,cls=EmbeddingEncoder)
return base64.b64encode(d.encode())
def EmbeddingFromB64(data):
def embeddingFromB64(data):
d = base64.b64decode(data)
return json.loads(d,cls=EmbeddingDecoder)