server: more support for mixed-case model names (#8017)

Fixes #7944
This commit is contained in:
Blake Mizerany 2024-12-11 15:29:59 -08:00 committed by GitHub
parent 36d111e788
commit b1fd7fef86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 123 additions and 38 deletions

View file

@ -719,7 +719,7 @@ func TestGenerate(t *testing.T) {
t.Errorf("expected status 400, got %d", w.Code)
}
if diff := cmp.Diff(w.Body.String(), `{"error":"test does not support insert"}`); diff != "" {
if diff := cmp.Diff(w.Body.String(), `{"error":"registry.ollama.ai/library/test:latest does not support insert"}`); diff != "" {
t.Errorf("mismatch (-got +want):\n%s", diff)
}
})