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

refactor(runner): update LLM 'tokens_used' to usage #402

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

rickstaa
Copy link
Member

@rickstaa rickstaa commented Jan 27, 2025

This pull request updates the tokens_used field in the LLM API spec with usage to make it more compatible with the OpenAI spec. @ad-astra-video this was discussed with @kyriediculous in https://discordapp.com/channels/423160867534929930/1319248702032056383/1332619710562439168. We do have to coordinate both with @kyriediculous and @UD1sto when we merge this.

This commit updates the `tokens_used` field in the LLM API spec with
`usage` to make it more compatible with the OpenAI spec.
@rickstaa rickstaa force-pushed the update_llm_tokens_used_to_usage branch from a29c671 to 3531b8b Compare January 27, 2025 11:49
rickstaa added a commit to livepeer/go-livepeer that referenced this pull request Jan 27, 2025
This commit updates the codebase to use the new LLM OpenAPI spec, which
replaces `tokens_used` with `usage`. See
livepeer/ai-worker#402 for more details.
Copy link
Collaborator

@ad-astra-video ad-astra-video left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ad-astra-video ad-astra-video merged commit a11302b into main Jan 27, 2025
11 of 12 checks passed
@ad-astra-video ad-astra-video deleted the update_llm_tokens_used_to_usage branch January 27, 2025 23:53
ad-astra-video pushed a commit to livepeer/go-livepeer that referenced this pull request Jan 28, 2025
* refactor(ai): update LLM API spec

This commit updates the codebase to use the new LLM OpenAPI spec, which
replaces `tokens_used` with `usage`. See
livepeer/ai-worker#402 for more details.

---------
Co-authored-by: Brad | ad-astra <[email protected]>
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.

2 participants