Versatile LLMs that works out of the box.
Project description
[!WARNING] Project is in its early stage of development. Current version is not stable.
*🦖 macrosaurus
Versatile AI client that works out of the box. Powered by OpenAI's Python SDK behind the scenes to handle dozens of AI providers without all the complexity.
Supports the following out of the box:
- OpenAI
- SambaNova
- Anthropic
- Cohere
- Fireworks
- Together
- Vertex AI
📦 Setup
pip install macrosaurus
🛠️ Usage
Set up a base client from one of the supported providers.
from macrosaurus import Client
client = Client(provider="sambanova",
api_key="API_KEY")
Extend these clients with better functionality.
from macrosaurus.llm import LLM
llm = LLM(client, model="Meta-Llama-3.2-3B-Instruct")
for chunk in llm.stream("Tell me a joke"):
print(chunk, end="")
Want to add your own Provider?
from macrosaurus.providers import Provider
from macrosaurus import Client
perplexity = Provider(name="Perplexity", endpoint="https://api.perplexity.ai")
client = Client(provider=perplexity, api_key="API_KEY")
Docs to be continued...
🎯 Motivation
Handling LLMs or AI models from different providers should be easy. Made this because it wasn't. Macrosaurus is dirt simple and has tools that makes the development process nicer. Why not use LangChain instead? It's not built for production. Macrosaurus was also originally built for Openmacro.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file macrosaurus-0.0.3.tar.gz.
File metadata
- Download URL: macrosaurus-0.0.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54db9ed57d6d24b6ec92a28f2548e81d0852c3f7fea530feea36e9462602d3db
|
|
| MD5 |
1f7c8d2d074f217dd224cf65f4025253
|
|
| BLAKE2b-256 |
84ce442516d6d42ab0f53675c362db9e86ab14988e3410df281a00513060e16d
|