// some older models are not compatible with newer versions of llama.cpp
// some older models are not compatible with newer versions of llama.cpp
// show a generalized compatibility error until there is a better way to
// show a generalized compatibility error until there is a better way to
// check for model compatibility
// check for model compatibility
iferrors.Is(llm.ErrUnsupportedFormat,err)||strings.Contains(err.Error(),"failed to load model"){
iferrors.Is(err,llm.ErrUnsupportedFormat)||strings.Contains(err.Error(),"failed to load model"){
err=fmt.Errorf("%v: this model may be incompatible with your version of Ollama. If you previously pulled this model, try updating it by running `ollama pull %s`",err,req.model.ShortName)
err=fmt.Errorf("%v: this model may be incompatible with your version of Ollama. If you previously pulled this model, try updating it by running `ollama pull %s`",err,req.model.ShortName)