Skip to content

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

Merged
mudler merged 1 commit intomudler:masterfrom
richiejp:feat/ui-error-trace-link
Mar 20, 2026
Merged

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

Conversation

@richiejp
Copy link
Copy Markdown
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
Copy Markdown

netlify bot commented Mar 19, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 0989dba
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69bd1cc8c0badc0008d5aed4
😎 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 3 times, most recently from ce87b3b to 20989a9 Compare March 20, 2026 09:09
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 20989a9 to 0989dba Compare March 20, 2026 10:09
@mudler mudler merged commit 8cd3f9f into mudler:master Mar 20, 2026
35 checks passed
@mudler mudler added the enhancement New feature or request label Mar 20, 2026
localai-bot pushed a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
…mudler#9068)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants