-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
now I want to use BatchAPI serialised JSON requests, but they use different types, yet they are identical.
this type is duplicated. it is exactly the same semantically and syntactically.
// Config for thinking features.
type GenerationConfigThinkingConfig struct {
// Optional. Indicates whether to include thoughts in the response. If true, thoughts
// are returned only when available.
IncludeThoughts bool `json:"includeThoughts,omitempty"`
// Optional. Indicates the thinking budget in tokens.
ThinkingBudget *int32 `json:"thinkingBudget,omitempty"`
}
// The thinking features configuration.
type ThinkingConfig struct {
// Optional. Indicates whether to include thoughts in the response. If true, thoughts
// are returned only if the model supports thought and thoughts are available.
IncludeThoughts bool `json:"includeThoughts,omitempty"`
// Optional. Indicates the thinking budget in tokens.
ThinkingBudget *int32 `json:"thinkingBudget,omitempty"`
}
what is going on with GenAI API?
Metadata
Metadata
Assignees
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.