LocalAI/pkg/model
Ettore Di Giacinto 7f06954425
fix(model-loading): keep track of open GRPC Clients (#3377)
Due to a previous refactor we moved the client constructor tight to the
model address, however that was just a string which we would use to
build the client each time.

With this change we make the loader to return a *Model which carries a
constructor for the client and stores the client on the first
connection.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-08-25 14:36:09 +02:00
..
initializers.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
loader.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
model.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
model_suite_test.go tests: add template tests (#2063) 2024-04-18 10:57:24 +02:00
options.go chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
process.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
template.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
template_test.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00
watchdog.go fix(model-loading): keep track of open GRPC Clients (#3377) 2024-08-25 14:36:09 +02:00