You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
446 B
25 lines
446 B
package main
|
|
|
|
// GRPC Falcon server
|
|
|
|
// Note: this is started internally by LocalAI and a server is allocated for each model
|
|
|
|
import (
|
|
"flag"
|
|
|
|
llama "github.com/go-skynet/LocalAI/pkg/grpc/llm/llama"
|
|
|
|
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)
|
|
}
|
|
}
|
|
|