Post
182
๐ We recently released any-llm: https://github.com/mozilla-ai/any-llm
๐งโ๐ป It's easy to get started:
๐ Read more about it here: https://huggingface.co/blog/mozilla-ai/introducing-any-llm
๐งโ๐ป It's easy to get started:
from any_llm import completion
import os
# Make sure you have the appropriate environment variable set
assert os.environ.get('MISTRAL_API_KEY')
# Basic completion
response = completion(
model="mistral/mistral-small-latest", # <provider_id>/<model_id>
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
๐ Read more about it here: https://huggingface.co/blog/mozilla-ai/introducing-any-llm