Skip to content

[Prompt API] Rename "quota overflow" to "context overflow" in AI Language Model API.#58057

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-6b82beb05f
Feb 25, 2026
Merged

[Prompt API] Rename "quota overflow" to "context overflow" in AI Language Model API.#58057
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-6b82beb05f

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

This change renames the OnQuotaOverflow method in the AI Language
Model API to OnContextOverflow across the browser and blink layers.
The event listener onquotaoverflow is also being replaced by
oncontextoverflow. The old onquotaoverflow is now gated behind a
runtime flag for legacy support. This renaming clarifies that the
overflow is related to the model's context window size rather than a
general usage quota.

Bug: 481707656
Change-Id: Ia39f21548c6441cf4bbcc0f9772da4e48387b185
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7600156
Commit-Queue: Isaac Ahouma <iahouma@google.com>
Reviewed-by: Mike Wasserman <msw@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1590396}

…uage Model API.

This change renames the `OnQuotaOverflow` method in the AI Language
Model API to `OnContextOverflow` across the browser and blink layers.
The event listener `onquotaoverflow` is also being replaced by
`oncontextoverflow`. The old `onquotaoverflow` is now gated behind a
runtime flag for legacy support. This renaming clarifies that the
overflow is related to the model's context window size rather than a
general usage quota.

Bug: 481707656
Change-Id: Ia39f21548c6441cf4bbcc0f9772da4e48387b185
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7600156
Commit-Queue: Isaac Ahouma <iahouma@google.com>
Reviewed-by: Mike Wasserman <msw@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1590396}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 33d6ec1 into master Feb 25, 2026
19 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-6b82beb05f branch February 25, 2026 23:35
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.

2 participants