I purchased a 10$ credit to you the LLM and embedding model.
Some how I am not able to use the embedding on simple tasks as mentioned below. I took the example from the mistral website itself.
On running the below code:
import os
from mistralai import Mistral
api_key = os.environ["MISTRAL_API_KEY"]
model = "mistral-embed"
client = Mistral(api_key=api_key)
embeddings_batch_response = client.embeddings.create(
model=model,
inputs=["Embed this sentence.", "As well as this one."],
)
I am getting the error:
SDKError: API error occurred: Status 401
{
"message":"Unauthorized",
"request_id":"ec42c05cb743ce4d08f2b946348dc24a"
}
Can someone please help me how to get this resolved ?