Skip to content

Commit 5657eca

Browse files
authored
Support Google VertexAI Gemini-specific parameters
1 parent 181c0e8 commit 5657eca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chat.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ type ChatCompletionRequest struct {
309309
ChatTemplateKwargs map[string]any `json:"chat_template_kwargs,omitempty"`
310310
// Specifies the latency tier to use for processing the request.
311311
ServiceTier ServiceTier `json:"service_tier,omitempty"`
312+
// Support Google VertexAI Gemini-specific parameters
313+
// https://cloud.google.com/vertex-ai/generative-ai/docs/migrate/openai/overview#extra_body_features
314+
ExtraBody map[string]any `json:"extra_body,omitempty"`
315+
ExtraPart map[string]any `json:"extra_part,omitempty"`
312316
}
313317

314318
type StreamOptions struct {

0 commit comments

Comments
 (0)