mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test - support vertex ai ertexai_embedding_embedding
This commit is contained in:
parent
f09158504b
commit
b9f50d83c4
1 changed files with 3 additions and 1 deletions
|
|
@ -816,8 +816,10 @@ def test_vertexai_embedding_embedding_latest():
|
|||
litellm.set_verbose = True
|
||||
response = embedding(
|
||||
model="vertex_ai/text-embedding-004",
|
||||
input=["good morning from litellm", "this is another item"],
|
||||
input=["hi"],
|
||||
dimensions=1,
|
||||
)
|
||||
assert len(response.data[0]["embedding"]) == 1
|
||||
print(f"response:", response)
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue