braintrust-proxy  by braintrustdata

AI proxy for unified access to leading models via single API

created 1 year ago
361 stars

Top 78.8% on sourcepulse

GitHubView on GitHub
Project Summary

The Braintrust AI Proxy provides a unified API to access multiple large language models, simplifying integration and reducing costs through automatic caching. It's designed for developers working with various AI providers, offering enhanced observability and a consistent interface.

How It Works

The proxy acts as an intermediary, routing requests to different AI models (OpenAI, Anthropic, LLaMa 2, Mistral, etc.) via a single, standardized API. A key feature is its caching mechanism, which stores responses to identical requests (identified by model, prompt, and a seed parameter) to reduce redundant API calls and associated costs. This approach simplifies code by abstracting away provider-specific API differences.

Quick Start & Requirements

  • Usage: Set baseURL to https://api.braintrust.dev/v1/proxy in OpenAI SDKs or use the provided cURL example.
  • Dependencies: Requires an API key from a supported provider (OpenAI, Anthropic, etc.).
  • Resources: No local installation needed for hosted version. Self-hosting requires pnpm for building.
  • Docs: Full documentation

Highlighted Details

  • Supports multiple leading AI models through a single API endpoint.
  • Automatic caching of results based on model, prompt, and seed for cost reduction.
  • Offers enhanced request logging for observability and debugging.
  • Deployable on Vercel, Cloudflare, AWS Lambda, or as an Express server.

Maintenance & Community

No specific contributor or community information is detailed in the README.

Licensing & Compatibility

The repository does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The README mentions features like "coming soon" and does not detail specific limitations, unsupported models, or known issues. The licensing status is unclear, which may impact commercial adoption.

Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
5
Issues (30d)
0
Star History
37 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers) and Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera).

client-python by mistralai

0.3%
628
Python SDK for Mistral AI platform
created 1 year ago
updated 1 week ago
Feedback? Help us improve.