Skip to content

Prompt API: Reject on invalid constraints and prefix conflicts#58493

Draft
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7654881
Draft

Prompt API: Reject on invalid constraints and prefix conflicts#58493
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7654881

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

Surface kInvalidConstraint via new mojom Error enum.
Use this as the custom_reason for StreamingResponder disconnect.
Bubble cancellation up via Blink ModelStreamingResponseStatus.
Add unit tests and WPTs with basic Echo regex prefix checks.

Bug: 391919456, 434766400, 454698388, 488433627
Change-Id: Ie3a918c238ed02b40334a4228690d7031310cd23
Reviewed-on: https://chromium-review.googlesource.com/7654881
WPT-Export-Revision: 3a6e0b985ccb9d706abc9a78e32dbf6f900193ae

Surface kInvalidConstraint via new mojom Error enum.
Use this as the custom_reason for StreamingResponder disconnect.
Bubble cancellation up via Blink ModelStreamingResponseStatus.
Add unit tests and WPTs with basic Echo regex prefix checks.

Bug: 391919456, 434766400, 454698388, 488433627
Change-Id: Ie3a918c238ed02b40334a4228690d7031310cd23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant