models(gallery): add phi-3-medium-4k-instruct (#2367)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-05-22 08:32:30 +02:00 committed by GitHub
parent 491e1d752b
commit 6cbe6a4f99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View file

@ -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