Documentation ¶
Index ¶
- Constants
- func GenerateImage(ctx context.Context, prompt string, size string) ([]byte, error)
- func GetApiModelList() ([]string, error)
- func GetApiTypeList() []string
- func GetGenerateFunction() (...)
- func GetLlmModel() (llm llms.Model, err error)
- func GetOllamaModelList() ([]string, error)
- func GetOpenAiImageModelList() ([]string, error)
- func GetOpenAiModelList() ([]string, error)
- func Mask(prompt string) (string, error)
- func SpeechToText(ctx context.Context, filename string, lang string) (string, error)
- func TextToSpeech(ctx context.Context, content string) (io.ReadCloser, error)
- type API_TYPE
Constants ¶
View Source
const ( API_OPENAI = "OPENAI" API_HUGGINGFACE = "HUGGINGFACE" API_OLLAMA = "OLLAMA" )
Variables ¶
This section is empty.
Functions ¶
func GenerateImage ¶
func GetApiModelList ¶
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 GetOllamaModelList ¶
func GetOpenAiImageModelList ¶
func GetOpenAiModelList ¶
func SpeechToText ¶
func TextToSpeech ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.