Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
stefan-frenchΒ 
posted an update Jul 22, 2025
Post
227
πŸš€ We recently released any-llm: https://github.com/mozilla-ai/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
In this post