Skip to main content

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

🛠️ Usage

Set up a base client from one of the supported providers.

from langclient import Client

client = Client(provider="sambanova",
                api_key="API_KEY")

Extend these clients with better functionality.

from langclient.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 langclient.providers import Provider
from langclient import Client

perplexity = Provider(name="Perplexity", endpoint="https://api.perplexity.ai")
client = Client(provider=perplexity, api_key="API_KEY")

Docs to be continued...

🎯 Motivation

Openmacro needed a rewrite. Handling LLMs or AI models from different providers should be easy. Made this because it wasn't. Macrosaurus is dirt simple but has tools that makes things nicer. Why not use LangChain instead? It's not built for production.

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

macrosaurus-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file macrosaurus-0.0.1.tar.gz.

File metadata

  • Download URL: macrosaurus-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for macrosaurus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0edde75d69f57400c1cef233b172c346eb62a2ac4c3bc3f25024213d7a0ec141
MD5 b0a31bd4af273bd3d67fa4aaab899417
BLAKE2b-256 e5d77971d5063fc304503b9d9161ab59967922a4b6bb4113051d18b6b108723a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page