make the modelfile path relative for ollama create (#8380)

This commit is contained in:
Patrick Devine 2025-01-10 16:14:08 -08:00 committed by GitHub
parent 9446c2c902
commit 32bd37adf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 155 additions and 25 deletions

View file

@ -747,7 +747,7 @@ MESSAGE assistant Hi! How are you?
t.Error(err)
}
actual, err := p.CreateRequest()
actual, err := p.CreateRequest("")
if err != nil {
t.Error(err)
}
@ -816,7 +816,7 @@ func TestCreateRequestFiles(t *testing.T) {
t.Error(err)
}
actual, err := p.CreateRequest()
actual, err := p.CreateRequest("")
if err != nil {
t.Error(err)
}