diff --git a/core/http/app_test.go b/core/http/app_test.go index 46833e10..454038ba 100644 --- a/core/http/app_test.go +++ b/core/http/app_test.go @@ -768,7 +768,8 @@ var _ = Describe("API test", func() { } response := postModelApplyRequest("http://127.0.0.1:9090/models/apply", modelApplyRequest{ - ID: "localai@sd-3.5-large-ggml", + ID: "localai@sd-3.5-large-ggml", + Name: "stablediffusion", }) Expect(response["uuid"]).ToNot(BeEmpty(), fmt.Sprint(response)) diff --git a/core/http/endpoints/openai/image.go b/core/http/endpoints/openai/image.go index de64d2d2..bd3f0987 100644 --- a/core/http/endpoints/openai/image.go +++ b/core/http/endpoints/openai/image.go @@ -72,7 +72,7 @@ func ImageEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, appCon } if m == "" { - m = model.StableDiffusionGGMLBackend + m = "stablediffusion" } log.Debug().Msgf("Loading model: %+v", m)