gemini

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, config Config) (*Client, error)

func (*Client) GenerateImage

func (c *Client) GenerateImage(ctx context.Context, prompt string) (*GeneratedImage, error)

type Config

type Config struct {
	GeminiAPIKey               string `usage:"The Google Gemini API Key used to generate images" env:"GEMINI_API_KEY"`
	GeminiImageGenerationModel string `` /* 127-byte string literal not displayed */
	GeminiOnFilteredRetry      int    `` /* 170-byte string literal not displayed */
}

type GeneratedImage

type GeneratedImage struct {
	ImageData []byte
	MIMEType  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL