Skip to content

Add quota exceeded error details and input usage APIs#43

Merged
domenic merged 7 commits into
mainfrom
too-large-input-2
Mar 7, 2025
Merged

Add quota exceeded error details and input usage APIs#43
domenic merged 7 commits into
mainfrom
too-large-input-2

Conversation

@domenic

@domenic domenic commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Closes #5. Closes #31 by obsoleting it. Depends on whatwg/webidl#1465.


Preview | Diff

Comment thread index.bs Outdated
@domenic domenic force-pushed the too-large-input-2 branch from e00023b to d12f7d5 Compare March 5, 2025 05:08
@domenic domenic merged commit 3abf4de into main Mar 7, 2025
@domenic domenic deleted the too-large-input-2 branch March 7, 2025 04:05
domenic added a commit to webmachinelearning/prompt-api that referenced this pull request Mar 7, 2025
This is mostly to align with webmachinelearning/writing-assistance-apis#43:

* Use the proposed QuotaExceededError when appropriate, instead of a "QuotaExceededError" DOMException.
* Rename maxTokens/tokensSoFar to inputQuota/inputUsage.
* Rename countPromptTokens() to measureInputUsage().
* Remove tokensLeft.
* Rename "contextoverflow" to "quotaoverflow".
domenic added a commit to webmachinelearning/translation-api that referenced this pull request Mar 7, 2025
domenic added a commit to webmachinelearning/translation-api that referenced this pull request Mar 10, 2025
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 14, 2025
Spec: webmachinelearning/writing-assistance-apis#43

Bug: 381975242

Change-Id: I1907ac3081208d39638f8f18a18b8ce9ae730217
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309046
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Daseul Lee <dslee@chromium.org>
Reviewed-by: Brad Triebwasser <btriebw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1432664}
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.

Ways of telling by how much a too-large input is too large

2 participants