mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) test embedding
This commit is contained in:
parent
5d254f7ed8
commit
fa296828e1
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ def test_openai_azure_embedding_simple():
|
|||
input=["good morning from litellm"],
|
||||
)
|
||||
print(response)
|
||||
response_keys = dict(response).keys()
|
||||
response_keys = set(dict(response).keys())
|
||||
response_keys.discard('_response_ms')
|
||||
assert set(["usage", "model", "object", "data"]) == set(response_keys) #assert litellm response has expected keys from OpenAI embedding response
|
||||
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue