gemini

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 8 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(apiKey string, modelName string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) ExtractTextFromImage

func (c *Client) ExtractTextFromImage(ctx context.Context, img image.Image, prompt string) (string, error)

func (*Client) ExtractTextFromImageWithRetry

func (c *Client) ExtractTextFromImageWithRetry(ctx context.Context, img image.Image, prompt string, maxRetries int) (string, error)

func (*Client) ExtractTextFromPDF

func (c *Client) ExtractTextFromPDF(ctx context.Context, pdfData []byte, prompt string) (string, error)

func (*Client) ExtractTextFromPDFWithRetry

func (c *Client) ExtractTextFromPDFWithRetry(ctx context.Context, pdfData []byte, prompt string, maxRetries int) (string, error)

Jump to

Keyboard shortcuts

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