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

fix(streaming): correctly accumulate tool calls and roles #55

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

RobertCraigie
Copy link
Collaborator

Fixes #54

@RobertCraigie RobertCraigie marked this pull request as ready for review September 18, 2024 13:30
@RobertCraigie RobertCraigie requested a review from a team as a code owner September 18, 2024 13:30
tool.ID = deltaTool.ID
}
if deltaTool.Type != "" {
tool.Type = ChatCompletionMessageToolCallType(deltaTool.Type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: this is slightly different to the node + python implementation, only for the Type param

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wait what do you mean?

Copy link
Collaborator

@jacobzim-stl jacobzim-stl left a comment

Choose a reason for hiding this comment

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

Looks good!

@RobertCraigie RobertCraigie merged commit 321ff9e into main Sep 18, 2024
2 checks passed
@RobertCraigie RobertCraigie deleted the robert/fix-streaming-acc branch September 18, 2024 16:26
@stainless-app stainless-app bot mentioned this pull request Sep 18, 2024
joschahenningsen pushed a commit to joschahenningsen/openai-go that referenced this pull request Oct 27, 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.

Missing fields when using streaming API
3 participants