Skip to content

feat(ui, openai): Structured errors and link to traces in error toast#9068

Open
richiejp wants to merge 1 commit intomudler:masterfrom
richiejp:feat/ui-error-trace-link
Open

feat(ui, openai): Structured errors and link to traces in error toast#9068
richiejp wants to merge 1 commit intomudler:masterfrom
richiejp:feat/ui-error-trace-link

Conversation

@richiejp
Copy link
Collaborator

Description

First when sending errors over SSE we now clearly identify them as such instead of just sending the error string as a chat completion message.

We use this in the UI to identify errors and link to them to the traces.

Notes for Reviewers

This is a breaking change for the API, but it's in part of the API that is undefined and only effects error paths. Without it there is no clear way to identify errors rather than just LLM responses that look like errors.

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 20989a9
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69bd0ed1252855000877348d
😎 Deploy Preview https://deploy-preview-9068--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@richiejp richiejp force-pushed the feat/ui-error-trace-link branch 2 times, most recently from fea2c9e to ce87b3b Compare March 19, 2026 15:57
First when sending errors over SSE we now clearly identify them as such
instead of just sending the error string as a chat completion message.

We use this in the UI to identify errors and link to them to the traces.

Signed-off-by: Richard Palethorpe <io@richiejp.com>
@richiejp richiejp force-pushed the feat/ui-error-trace-link branch from ce87b3b to 20989a9 Compare March 20, 2026 09:09
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.

1 participant