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