mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-21 05:33:09 +00:00
ab5b75eb01
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
22 lines
344 B
Go
22 lines
344 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
llama "github.com/go-skynet/LocalAI/pkg/backend/llm/llama-stable"
|
|
|
|
grpc "github.com/go-skynet/LocalAI/pkg/grpc"
|
|
)
|
|
|
|
var (
|
|
addr = flag.String("addr", "localhost:50051", "the address to connect to")
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
if err := grpc.StartServer(*addr, &llama.LLM{}); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|