ai

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultModel = "gpt-4o"
	SystemPrompt = "" /* 224-byte string literal not displayed */
	UserPrompt   = "" /* 260-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GenerateTitle(ctx context.Context, imageURL string) (string, error)
}

type OpenAIClient

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

func NewOpenAIClient

func NewOpenAIClient(apiURL, apiKey, model string) (*OpenAIClient, error)

func (*OpenAIClient) GenerateTitle

func (c *OpenAIClient) GenerateTitle(ctx context.Context, imageURL string) (string, error)

Jump to

Keyboard shortcuts

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