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

Return prompt_tokens via API #162

Closed
prd-tuong-nguyen opened this issue Jan 5, 2024 · 3 comments · Fixed by #165
Closed

Return prompt_tokens via API #162

prd-tuong-nguyen opened this issue Jan 5, 2024 · 3 comments · Fixed by #165
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@prd-tuong-nguyen
Copy link

Feature request

Currently, the API only returned the generated_tokens.
I think the API should return the prompt_tokens as number of token in requested prompt. It really useful to tracking the response speed according to the number of tokens.

Motivation

Use to tracking the speed according the number of token

Your contribution

:(

@prd-tuong-nguyen prd-tuong-nguyen changed the title Return number of token via API Return prompt_tokens via API Jan 5, 2024
@tgaddair tgaddair added enhancement New feature or request good first issue Good for newcomers labels Jan 5, 2024
@tgaddair
Copy link
Contributor

tgaddair commented Jan 5, 2024

Thanks for raising this issue @prd-tuong-nguyen, we can definitely get this in for the next release!

@tgaddair
Copy link
Contributor

tgaddair commented Jan 9, 2024

Hey @prd-tuong-nguyen, this is now done following #165. Note that the Python SDK will be updated in PyPI with the next release. Until then, you can install from the repo to get the latest changes.

@prd-tuong-nguyen
Copy link
Author

@tgaddair Awesome bro, thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants