docs: the Auto-fix API takes the conversation - #1162
Closed
ankur-mittal95 wants to merge 2 commits into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ankur-mittal95
commented
Sep 11, 2026
| The Auto-fix API fixes OpenUI Lang after a model has generated it. Send the raw generation and your component library, and Gateway validates the generation, fixes the errors it can, and returns valid OpenUI Lang that the renderer can use. | ||
|
|
||
| Use it when your application calls a model directly and only needs the correction step. The request does not include a conversation or a model, and Gateway does not generate anything new. It applies the same correction that runs inside the [Chat Completions](/docs/gateway/api/chat-completions) and [Responses](/docs/gateway/api/responses) APIs, as a standalone call. | ||
| Use it when your application calls a model directly and only needs the correction step. The request does not name a model, and Gateway does not generate anything new. It applies the same correction that runs inside the [Chat Completions](/docs/gateway/api/chat-completions) and [Responses](/docs/gateway/api/responses) APIs, as a standalone call. You can also send the conversation that led to the generation, and Gateway reads it only to understand what the user asked for. |
Contributor
Author
There was a problem hiding this comment.
let's not mention gateway
ankur-mittal95
force-pushed
the
docs/auto-fix-conversation-context
branch
from
September 11, 2026 07:12
e8c0a01 to
76968c9
Compare
ankur-mittal95
force-pushed
the
docs/auto-fix-conversation-context
branch
from
September 11, 2026 07:22
76968c9 to
63079cd
Compare
ankur-mittal95
force-pushed
the
docs/auto-fix-conversation-context
branch
from
September 11, 2026 07:27
63079cd to
f7a59b0
Compare
ankur-mittal95
force-pushed
the
docs/auto-fix-conversation-context
branch
from
September 11, 2026 07:33
f7a59b0 to
8f85a94
Compare
The repair reads the conversation to keep what the user asked for, so the page has to say the field exists, what the limits are, and where the text goes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Review feedback on the conversation-context lines. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ankur-mittal95
force-pushed
the
docs/auto-fix-conversation-context
branch
from
September 11, 2026 07:51
8f85a94 to
542a97b
Compare
Contributor
Author
|
Folded into #1150 so the Auto-fix API ships as one docs PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1150. Review that one first.
The Auto-fix API can now take the conversation that produced the generation
(thesysdev/muse#601). The repair reads it to understand what the user asked
for, so a truncated list keeps the rows the user wanted and an unknown
component is replaced by one that still answers the question.
Changes on the Auto-fix page:
messagesis in the Request table, optional, an array of{ role, content }.lib/auto-fix.tsandserver.tsexamples pass the same messages thecaller sent to their model.
dropped first.
generation and is not stored beyond the request logs.
400 row names a conversation over a limit.
No other file is touched, and the prose style is unchanged.