mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
models(gallery): add phi-3-medium-4k-instruct (#2367)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
491e1d752b
commit
6cbe6a4f99
2 changed files with 20 additions and 1 deletions
|
@ -361,7 +361,10 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
|
|||
|
||||
func (c *BackendConfig) Validate() bool {
|
||||
// Simple validation to make sure the model can be correctly loaded
|
||||
for _, n := range []string{c.Backend, c.Model} {
|
||||
for _, n := range []string{c.Backend, c.Model, c.MMProj} {
|
||||
if n == "" {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(n, string(os.PathSeparator)) ||
|
||||
strings.Contains(n, "..") {
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue