[PR #12361] [CLOSED] server: serve original error for remote models #60494

Closed
opened 2026-04-29 15:29:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12361
Author: @jmorganca
Created: 9/20/2025
Status: Closed

Base: mainHead: jmorganca/cloud-errors


📝 Commits (1)

  • 4ef2b28 server: serve original error for remote models

📊 Changes

1 file changed (+16 additions, -25 deletions)

View changed files

📝 server/routes.go (+16 -25)

📄 Description

Non-401 error received from remote model hosts are not propagated to the client. This change detects Ollama API status errors and sends it back to the client before falling back to serving a 500 error


🔄 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/12361 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 9/20/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `jmorganca/cloud-errors` --- ### 📝 Commits (1) - [`4ef2b28`](https://github.com/ollama/ollama/commit/4ef2b2852dcde363790b10e04648280aa10a5321) server: serve original error for remote models ### 📊 Changes **1 file changed** (+16 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+16 -25) </details> ### 📄 Description Non-401 error received from remote model hosts are not propagated to the client. This change detects Ollama API status errors and sends it back to the client before falling back to serving a 500 error --- <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-29 15:29:25 -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#60494