2023-07-14 23:19:43 +00:00
|
|
|
package main
|
|
|
|
|
2023-11-13 21:40:16 +00:00
|
|
|
// GRPC Falcon server
|
|
|
|
|
2023-07-14 23:19:43 +00:00
|
|
|
// Note: this is started internally by LocalAI and a server is allocated for each model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
|
2024-06-23 08:24:36 +00:00
|
|
|
grpc "github.com/mudler/LocalAI/pkg/grpc"
|
2023-07-14 23:19:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
addr = flag.String("addr", "localhost:50051", "the address to connect to")
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
flag.Parse()
|
|
|
|
|
2023-11-13 21:40:16 +00:00
|
|
|
if err := grpc.StartServer(*addr, &LLM{}); err != nil {
|
2023-07-14 23:19:43 +00:00
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|