mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
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:
|
class Config:
|
||||||
extra = "allow"
|
extra = "allow"
|
||||||
protected_namespaces = ()
|
protected_namespaces = ()
|
||||||
|
|
||||||
def get(self, key, default=None):
|
def get(self, key, default=None):
|
||||||
# Custom .get() method to access attributes with a default value if the attribute doesn't exist
|
# 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):
|
class Embedding(OpenAIObject):
|
||||||
embedding: list = []
|
embedding: Union[list, str] = []
|
||||||
index: int
|
index: int
|
||||||
object: str
|
object: str
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue