Skip to content

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

Merged
seanshi-scale merged 5 commits intomainfrom
seanshi/20240311-reflect-num-prompt-tokens-in-client
Mar 12, 2024
Merged

[Client] Add num_prompt_tokens to the client's CompletionOutputs#467
seanshi-scale merged 5 commits intomainfrom
seanshi/20240311-reflect-num-prompt-tokens-in-client

Conversation

@seanshi-scale
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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
@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.

3 participants