mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-29 22:20:43 +00:00
Tiny adjustments
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
1c81c40950
commit
ad9694ece4
1 changed files with 6 additions and 2 deletions
|
@ -404,6 +404,7 @@ func (ml *ModelLoader) grpcModel(backend string, autodetect bool, o *Options) fu
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msgf("Wait for the service to start up")
|
log.Debug().Msgf("Wait for the service to start up")
|
||||||
|
log.Debug().Msgf("Options: %+v", o.gRPCOptions)
|
||||||
|
|
||||||
// Wait for the service to start up
|
// Wait for the service to start up
|
||||||
ready := false
|
ready := false
|
||||||
|
@ -468,12 +469,15 @@ func (ml *ModelLoader) backendLoader(opts ...Option) (client grpc.Backend, err e
|
||||||
|
|
||||||
backend := strings.ToLower(o.backendString)
|
backend := strings.ToLower(o.backendString)
|
||||||
if realBackend, exists := Aliases[backend]; exists {
|
if realBackend, exists := Aliases[backend]; exists {
|
||||||
backend = realBackend
|
|
||||||
typeAlias, exists := TypeAlias[backend]
|
typeAlias, exists := TypeAlias[backend]
|
||||||
if exists {
|
if exists {
|
||||||
|
log.Debug().Msgf("'%s' is a type alias of '%s' (%s)", backend, realBackend, typeAlias)
|
||||||
o.gRPCOptions.Type = typeAlias
|
o.gRPCOptions.Type = typeAlias
|
||||||
|
} else {
|
||||||
|
log.Debug().Msgf("'%s' is an alias of '%s'", backend, realBackend)
|
||||||
}
|
}
|
||||||
log.Debug().Msgf("%s is an alias of %s", backend, realBackend)
|
|
||||||
|
backend = realBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
ml.stopActiveBackends(o.modelID, o.singleActiveBackend)
|
ml.stopActiveBackends(o.modelID, o.singleActiveBackend)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue