[PR #781] [MERGED] improve api error handling #20865

Closed
opened 2026-04-19 15:17:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/781
Author: @BruceMacD
Created: 10/13/2023
Status: Merged
Merged: 10/13/2023
Merged by: @jmorganca

Base: mainHead: brucemacd/err-handling


📝 Commits (1)

  • 312a769 improve api error handling

📊 Changes

2 files changed (+9 additions, -16 deletions)

View changed files

📝 api/types.go (+6 -12)
📝 llm/llama.go (+3 -4)

📄 Description

  • remove new lines from llama.cpp error messages relayed to client
  • check api option types and return error on wrong type
  • change num layers from 95% VRAM to 92% VRAM

🔄 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/781 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 10/13/2023 **Status:** ✅ Merged **Merged:** 10/13/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `brucemacd/err-handling` --- ### 📝 Commits (1) - [`312a769`](https://github.com/ollama/ollama/commit/312a769083c192c27b147531ed8f1245eb362254) improve api error handling ### 📊 Changes **2 files changed** (+9 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+6 -12) 📝 `llm/llama.go` (+3 -4) </details> ### 📄 Description - remove new lines from llama.cpp error messages relayed to client - check api option types and return error on wrong type - change num layers from 95% VRAM to 92% VRAM --- <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-19 15:17:20 -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#20865