fix - allow base64 cache hits embedding responses

This commit is contained in:
Ishaan Jaff 2024-04-10 16:44:40 -07:00
parent c86213ac98
commit 0c26404cb3

View file

@ -236,7 +236,7 @@ class HiddenParams(OpenAIObject):
class Config:
extra = "allow"
protected_namespaces = ()
protected_namespaces = ()
def get(self, key, default=None):
# Custom .get() method to access attributes with a default value if the attribute doesn't exist
@ -606,7 +606,7 @@ class ModelResponse(OpenAIObject):
class Embedding(OpenAIObject):
embedding: list = []
embedding: Union[list, str] = []
index: int
object: str