Skip to content

Conversation

lefebvreb
Copy link

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).

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