mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
(test) mistral-embed
This commit is contained in:
parent
12c6a00938
commit
86afc399c4
1 changed files with 15 additions and 1 deletions
|
@ -201,7 +201,7 @@ def test_bedrock_embedding_titan():
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
test_bedrock_embedding_titan()
|
# test_bedrock_embedding_titan()
|
||||||
|
|
||||||
|
|
||||||
def test_bedrock_embedding_cohere():
|
def test_bedrock_embedding_cohere():
|
||||||
|
@ -304,6 +304,20 @@ def test_sagemaker_embeddings():
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
|
def test_mistral_embeddings():
|
||||||
|
try:
|
||||||
|
litellm.set_verbose = True
|
||||||
|
response = litellm.embedding(
|
||||||
|
model="mistral/mistral-embed",
|
||||||
|
input=["good morning from litellm"],
|
||||||
|
)
|
||||||
|
print(f"response: {response}")
|
||||||
|
except Exception as e:
|
||||||
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
|
# test_mistral_embeddings()
|
||||||
|
|
||||||
# test_sagemaker_embeddings()
|
# test_sagemaker_embeddings()
|
||||||
# def local_proxy_embeddings():
|
# def local_proxy_embeddings():
|
||||||
# litellm.set_verbose=True
|
# litellm.set_verbose=True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue