forked from phoenix/litellm-mirror
fix - allow base64 cache hits embedding responses
This commit is contained in:
parent
c86213ac98
commit
0c26404cb3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue