mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
(test) add cohere embedding v3
This commit is contained in:
parent
03860984eb
commit
5a471caf16
1 changed files with 15 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ def test_openai_azure_embedding():
|
|||
|
||||
def test_cohere_embedding():
|
||||
try:
|
||||
# litellm.set_verbose=True
|
||||
response = embedding(
|
||||
model="embed-english-v2.0", input=["good morning from litellm", "this is another item"]
|
||||
)
|
||||
|
|
@ -78,6 +79,19 @@ def test_cohere_embedding():
|
|||
|
||||
# test_cohere_embedding()
|
||||
|
||||
def test_cohere_embedding3():
|
||||
try:
|
||||
litellm.set_verbose=True
|
||||
response = embedding(
|
||||
model="embed-english-v3.0",
|
||||
input=["good morning from litellm", "this is another item"],
|
||||
)
|
||||
print(f"response:", response)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
# test_cohere_embedding3()
|
||||
|
||||
def test_bedrock_embedding():
|
||||
try:
|
||||
response = embedding(
|
||||
|
|
@ -99,7 +113,7 @@ def test_hf_embedding():
|
|||
print(f"response:", response)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
test_hf_embedding()
|
||||
# test_hf_embedding()
|
||||
|
||||
# test async embeddings
|
||||
def test_aembedding():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue