Skip to content

Add quota exceeded error details and input usage APIs #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 7, 2025

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Mar 4, 2025

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


Preview | Diff

@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
2 checks passed
@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 <[email protected]>
Commit-Queue: Daseul Lee <[email protected]>
Reviewed-by: Brad Triebwasser <[email protected]>
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