client

package
v0.0.0-...-db287f1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIClient

type OpenAIClient interface {
	GenerateImage(ctx context.Context, prompt string, n uint8, size string) (model.ImageGenerationResponse, error)
}

func NewFakeOpenAIClient

func NewFakeOpenAIClient() OpenAIClient

func NewOpenAIClient

func NewOpenAIClient(baseURL string, token string) OpenAIClient

type WebClient

type WebClient interface {
	DownloadImageToFile(ctx context.Context, url, path string) error
}

func NewWebClient

func NewWebClient() WebClient

Jump to

Keyboard shortcuts

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