Skip to content
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

[Client] Add num_prompt_tokens to the client's CompletionOutputs #467

Merged

Conversation

seanshi-scale
Copy link
Member

@seanshi-scale seanshi-scale commented Mar 12, 2024

Pull Request Summary

Add a quick num_prompt_tokens field to the client's CompletionOutput/CompletionStreamOutput.

Originally wanted to add include_stop_str_in_output, but that requires various server changes to get functional, so I didn't include it here.

Test Plan and Usage Guide

Ran against Scale public APIs plus a hosted version. num_prompt_tokens exists if it's in the http response.

@seanshi-scale seanshi-scale self-assigned this Mar 12, 2024
@seanshi-scale seanshi-scale marked this pull request as ready for review March 12, 2024 00:38
@seanshi-scale
Copy link
Member Author

Will push client once merged

@seanshi-scale seanshi-scale enabled auto-merge (squash) March 12, 2024 00:49
@seanshi-scale seanshi-scale merged commit b09c106 into main Mar 12, 2024
5 checks passed
@seanshi-scale seanshi-scale deleted the seanshi/20240311-reflect-num-prompt-tokens-in-client branch March 12, 2024 01:12
This was referenced Mar 30, 2024
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.

None yet

3 participants