Documentation ¶
Index ¶
- func Finetune(config config.Config, input, prediction string) string
- func ImageGeneration(height, width, mode, step, seed int, ...) (func() error, error)
- func ModelEmbedding(s string, tokens []int, loader *model.ModelLoader, c config.Config, ...) (func() ([]float32, error), error)
- func ModelInference(ctx context.Context, s string, loader *model.ModelLoader, c config.Config, ...) (func() (LLMResponse, error), error)
- func ModelTTS(backend, text, modelFile string, loader *model.ModelLoader, o *options.Option) (string, *proto.Result, error)
- func ModelTranscription(audio, language string, loader *model.ModelLoader, c config.Config, ...) (*schema.Result, error)
- type LLMResponse
- type TokenUsage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageGeneration ¶
func ModelEmbedding ¶
func ModelInference ¶
func ModelInference(ctx context.Context, s string, loader *model.ModelLoader, c config.Config, o *options.Option, tokenCallback func(string, TokenUsage) bool) (func() (LLMResponse, error), error)
Types ¶
type LLMResponse ¶ added in v1.25.0
type LLMResponse struct { Response string // should this be []byte? Usage TokenUsage }
type TokenUsage ¶ added in v1.25.0
Click to show internal directories.
Click to hide internal directories.