(docs) add mistral-embed

This commit is contained in:
ishaan-jaff 2023-12-28 16:50:52 +05:30
parent 9777db67e2
commit 7f74a0331c

View file

@ -52,5 +52,25 @@ All models listed here https://docs.mistral.ai/platform/endpoints are supported.
## Sample Usage - Embedding
```python
from litellm import embedding
import os
os.environ['MISTRAL_API_KEY'] = ""
response = embedding(
model="mistral/mistral-embed",
input=["good morning from litellm"],
)
print(response)
```
## Supported Models
All models listed here https://docs.mistral.ai/platform/endpoints are supported
| Model Name | Function Call |
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| mistral-embed | `embedding(model="mistral/mistral-embed", input)` |