Skip to content

BoundaryML/baml-examples-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up a proxy server for usage with BAML

This guide will help you set up a proxy server for usage with BAML. This is useful if you want to use BAML to call a model with your own provider.

Prerequisites

Install uv:

See https://docs.astral.sh/uv/getting-started/installation/

Modify the API key in anthropic_proxy.py.

Setup

Install the dependencies:

uv sync

Generate the BAML client:

uv run baml-cli generate

Run the anthropic proxy server:

uv run fastapi dev anthropic_proxy.py --port 8081

Run the web server:

uv run fastapi dev hello.py

Test

curl -X POST "http://localhost:8080/"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages