[PR #1138] [CLOSED] Add error handling for get_summary function in the newssummary example. #10480

Closed
opened 2026-04-12 23:01:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1138
Author: @Amosel
Created: 11/15/2023
Status: Closed

Base: mainHead: improve-summary-failure-tolerance


📝 Commits (1)

  • 59ce33c Add error handling for get_summary function in the newssummary example.

📊 Changes

2 files changed (+29 additions, -4 deletions)

View changed files

📝 examples/python-rag-newssummary/summ.py (+11 -2)
📝 examples/python-rag-newssummary/utils.py (+18 -2)

📄 Description

Calling get_summary fails when the hard coded model mistral-openorca is not installed. It makes sense to save people trying to figure out why.


🔄 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/1138 **Author:** [@Amosel](https://github.com/Amosel) **Created:** 11/15/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `improve-summary-failure-tolerance` --- ### 📝 Commits (1) - [`59ce33c`](https://github.com/ollama/ollama/commit/59ce33c0c7553dd4ca06656e87dee820b5a706fa) Add error handling for get_summary function in the newssummary example. ### 📊 Changes **2 files changed** (+29 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `examples/python-rag-newssummary/summ.py` (+11 -2) 📝 `examples/python-rag-newssummary/utils.py` (+18 -2) </details> ### 📄 Description Calling `get_summary` fails when the hard coded model `mistral-openorca` is not installed. It makes sense to save people trying to figure out why. --- <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 23:01:28 -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#10480