mirror of
https://github.com/ollama/ollama.git
synced 2025-08-03 15:02:43 +02:00
fix create model when template detection errors
This commit is contained in:
@@ -16,7 +16,7 @@ func TestDelete(t *testing.T) {
|
||||
|
||||
w := createRequest(t, s.CreateModelHandler, api.CreateRequest{
|
||||
Name: "test",
|
||||
Modelfile: fmt.Sprintf("FROM %s", createBinFile(t)),
|
||||
Modelfile: fmt.Sprintf("FROM %s", createBinFile(t, nil, nil)),
|
||||
})
|
||||
|
||||
if w.Code != http.StatusOK {
|
||||
@@ -25,7 +25,7 @@ func TestDelete(t *testing.T) {
|
||||
|
||||
w = createRequest(t, s.CreateModelHandler, api.CreateRequest{
|
||||
Name: "test2",
|
||||
Modelfile: fmt.Sprintf("FROM %s\nTEMPLATE {{ .System }} {{ .Prompt }}", createBinFile(t)),
|
||||
Modelfile: fmt.Sprintf("FROM %s\nTEMPLATE {{ .System }} {{ .Prompt }}", createBinFile(t, nil, nil)),
|
||||
})
|
||||
|
||||
if w.Code != http.StatusOK {
|
||||
|
Reference in New Issue
Block a user