mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-19 07:28:08 +00:00
feat(api): list loaded models in /system
(#3661)
feat(api): list loaded models in /system Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
33b2d38dd0
commit
a3d69872e3
@ -3,12 +3,14 @@ package model
|
||||
import grpc "github.com/mudler/LocalAI/pkg/grpc"
|
||||
|
||||
type Model struct {
|
||||
ID string `json:"id"`
|
||||
address string
|
||||
client grpc.Backend
|
||||
}
|
||||
|
||||
func NewModel(address string) *Model {
|
||||
func NewModel(ID, address string) *Model {
|
||||
return &Model{
|
||||
ID: ID,
|
||||
address: address,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user