Skip to content

Conversation

@lefebvreb
Copy link
Contributor

This is the implementation of my idea for providing the user with usage metadata when streaming completions using the dynamic client API, explained in #902.

Struct names and locations are very much up for debate, as I am not familiar with the project.

Fixes #902.

Copy link
Contributor

@joshua-mo-143 joshua-mo-143 left a comment

Choose a reason for hiding this comment

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

One change required, other than that this actually mostly looks decent (pending CI pass of course).

Copy link
Contributor

@joshua-mo-143 joshua-mo-143 left a comment

Choose a reason for hiding this comment

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

LGTM, just waiting to merge #875 as it's a relatively crucial PR - need to make sure it doesn't get interrupted before it can be merged

@lefebvreb
Copy link
Contributor Author

Last merge had minor conflicts with my changes, but it should be resolved now.

@joshua-mo-143 joshua-mo-143 merged commit 5c6e1d9 into 0xPlaygrounds:main Oct 14, 2025
5 checks passed
This was referenced Oct 11, 2025
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.

feat: Return usage metadata when using CompletionModelDyn::stream

2 participants