-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
[Feature][V1]: suupports cached_tokens in response usage #18149
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,10 @@ def __init__( | |
self.output_token_ids = ConstantList(self._output_token_ids) | ||
self.all_token_ids = ConstantList(self._all_token_ids) | ||
|
||
# State | ||
# The number of tokens with prefix cache hits. | ||
self.num_cached_tokens = -1 | ||
|
||
|
||
@classmethod | ||
def from_engine_core_request(cls, request: EngineCoreRequest) -> "Request": | ||
if request.mm_inputs is not None: | ||
|
Uh oh!
There was an error while loading. Please reload this page.