[PR #718] [MERGED] not found error before pulling model #10303

Closed
opened 2026-04-12 22:57:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/718
Author: @BruceMacD
Created: 10/6/2023
Status: Merged
Merged: 10/6/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/api-model-not-found-err


📝 Commits (1)

  • 0d9da05 not found error before pulling model

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 server/routes.go (+7 -0)

📄 Description

When attempting to run a model through the API before pulling it a cryptic "no such file or directory" error was returned with the error path.

Improve this error to suggest pulling the model first, like the CLI does automatically.

curl -X 'POST' -d '{"prompt":"hello", "model": "mistral"}' 'http://127.0.0.1:11434/api/generate'
{"error":"model 'mistral' not found, try pulling it first"}%  

resolves #715


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/718 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 10/6/2023 **Status:** ✅ Merged **Merged:** 10/6/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/api-model-not-found-err` --- ### 📝 Commits (1) - [`0d9da05`](https://github.com/ollama/ollama/commit/0d9da05bcdfa905261fde28c43f4e424ef5d93d7) not found error before pulling model ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+7 -0) </details> ### 📄 Description When attempting to run a model through the API before pulling it a cryptic "no such file or directory" error was returned with the error path. Improve this error to suggest pulling the model first, like the CLI does automatically. ``` curl -X 'POST' -d '{"prompt":"hello", "model": "mistral"}' 'http://127.0.0.1:11434/api/generate' {"error":"model 'mistral' not found, try pulling it first"}% ``` resolves #715 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 22:57:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10303