api

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_OPENAI      = "OPENAI"
	API_HUGGINGFACE = "HUGGINGFACE"
	API_OLLAMA      = "OLLAMA"
)

Variables

This section is empty.

Functions

func GenerateImage

func GenerateImage(ctx context.Context, prompt string, size string) ([]byte, error)

func GetApiModelList

func GetApiModelList() ([]string, error)

func GetApiTypeList

func GetApiTypeList() []string

func GetGenerateFunction

func GetGenerateFunction() (func(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error), error)

func GetLlmModel

func GetLlmModel() (llm llms.Model, err error)

func GetOllamaModelList

func GetOllamaModelList() ([]string, error)

func GetOpenAiImageModelList

func GetOpenAiImageModelList() ([]string, error)

func GetOpenAiModelList

func GetOpenAiModelList() ([]string, error)

func Mask

func Mask(prompt string) (string, error)

func SpeechToText

func SpeechToText(ctx context.Context, filename string, lang string) (string, error)

func TextToSpeech

func TextToSpeech(ctx context.Context, content string) (io.ReadCloser, error)

Types

type API_TYPE

type API_TYPE string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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