Skip to content

Tweak provider error message#248

Open
Eden Halperin (edenh) wants to merge 3 commits intomainfrom
provider-error-message
Open

Tweak provider error message#248
Eden Halperin (edenh) wants to merge 3 commits intomainfrom
provider-error-message

Conversation

@edenh
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Jun 10, 2025

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 Jun 10, 2025 4:11pm

});
const errorText =
`AI provider returned ${httpCode} error.\n\nHeaders:\n` +
`The AI provider returned ${httpCode} error. This is likely not an issue with Braintrust, but rather with the model provider.${httpCode === 500 ? " Please check the model provider's status page." : httpCode === 429 ? " Please adjust max concurrency." : ""}\n\nHeaders:\n` +
Copy link
Collaborator

@ibolmo Olmo Maldonado (ibolmo) Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "please adjust concurrency" is throwing me off. Is that on the Braintrust side (i.e. playground concurrency) or is that like a quota/limit problem in the AI provider?

You may consider just dropping this one and keep the rest. I think most folks know what 429 is.

Would you see us return the statusText and/or response.text() in addition to headers?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also curious if we shouldn't return a JSON message rather than a plain message. This way we avoid losing fidelity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants