mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-19 04:37:53 +00:00
58f6aab637
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
13 lines
273 B
Go
13 lines
273 B
Go
package grpc
|
|
|
|
import (
|
|
pb "github.com/go-skynet/LocalAI/pkg/grpc/proto"
|
|
)
|
|
|
|
type LLM interface {
|
|
Predict(*pb.PredictOptions) (string, error)
|
|
PredictStream(*pb.PredictOptions, chan string)
|
|
Load(*pb.ModelOptions) error
|
|
Embeddings(*pb.PredictOptions) ([]float32, error)
|
|
}
|