LocalAI/pkg/grpc/interface.go
Ettore Di Giacinto b816009db0 feat: add falcon ggllm via grpc client
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2023-07-15 01:19:43 +02:00

12 lines
222 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
}