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

switch callbacks from taking a Candidate to taking a GenerateResponseChunk #363

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

randall77
Copy link
Contributor

No description provided.

@randall77 randall77 requested review from jba and apascal07 June 7, 2024 23:27
@randall77 randall77 merged commit d896c4b into main Jun 7, 2024
5 checks passed
@randall77 randall77 deleted the khr-work22 branch June 7, 2024 23:44
@@ -96,10 +96,12 @@ type GenerateResponse struct {
Usage *GenerationUsage `json:"usage,omitempty"`
}

// A GenerateResponseChunk is the portion of the [GenerateResponse]
// that is passed to a streaming callback.
type GenerateResponseChunk struct {
Content []*Part `json:"content,omitempty"`
Custom any `json:"custom,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know the purpose of this field? Is it ever set in the JS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Custom field? I don't think it is ever set in the JS.

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.

3 participants