Versions in this module Expand all Collapse all v0 v0.1.1 Mar 7, 2025 v0.1.0 Mar 6, 2025 v0.0.8 Feb 4, 2025 Changes in this version + const ModelGemini15Flash + const ModelGemini15Pro + type Candidate struct + Content struct{ ... } + FinishReason string + SafetyRatings []SafetyRating + type Content struct + Parts []Part + Role string + type GenerationConfig struct + MaxOutputTokens int + Temperature float64 + TopK int + TopP float64 + type InlineData struct + Data string + MimeType string + type Model llm.ServiceName + func (m Model) PrettyStr() string + func (m Model) Prompt(ctx context.Context, prompt rq.PromptV1, rsp *llm.StreamResponse) error + type Part struct + InlineData *InlineData + Text string + type Request struct + Contents []Content + GenerationConfig GenerationConfig + SafetySettings []SafetySetting + SystemInstruction *Content + type Response struct + Candidates []Candidate + ModelVersion string + UsageMetadata struct{ ... } + type SafetyRating struct + Category string + Probability string + ProbabilityScore float64 + Severity string + SeverityScore float64 + type SafetySetting struct + Category string + Threshold string