braintrustdata / braintrust-proxy

https://www.braintrustdata.com/docs/guides/proxy
MIT License
266 stars 24 forks source link

Fix caching to store binary data #59

Closed ankrgyl closed 1 month ago

ankrgyl commented 1 month ago

If the data is compressed, the way we store cached data only sometimes works. This change updates it to be base64 encoded, and uses that (if present).

We can eventually remove the text case, but I didn't want to break people's existing cached data.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-proxy ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 6:20am