[PR #2324] [MERGED] Use the Ollama generate endpoint instead of chat #2071

Closed
opened 2026-03-02 12:00:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2324
Author: @eriktews
Created: 12/30/2025
Status: Merged
Merged: 1/1/2026
Merged by: @MohamedBassem

Base: mainHead: ollama-chat-fix


📝 Commits (2)

  • 59686f8 Use the Ollama generate endpoint instead of chat
  • e7346e9 format

📊 Changes

1 file changed (+4 additions, -5 deletions)

View changed files

📝 packages/shared/inference.ts (+4 -5)

📄 Description

Ollama has two API endpoints for text generation. There is a chat endpoint for interactive and interactive chat like generation of text and there is a generate endpoint that is used one one-shot prompts, such as summarization tasks and similar things.

Karakeep used the chat endpoint that resulted in odd summaries. This commit makes karakeep use the generate endpoint instead, which results in better and more compact summaries.


🔄 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/karakeep-app/karakeep/pull/2324 **Author:** [@eriktews](https://github.com/eriktews) **Created:** 12/30/2025 **Status:** ✅ Merged **Merged:** 1/1/2026 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `ollama-chat-fix` --- ### 📝 Commits (2) - [`59686f8`](https://github.com/karakeep-app/karakeep/commit/59686f855d20b304578a1a2972e12448acfb1c00) Use the Ollama generate endpoint instead of chat - [`e7346e9`](https://github.com/karakeep-app/karakeep/commit/e7346e90749ff723f7df04115e2f035caaa84199) format ### 📊 Changes **1 file changed** (+4 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/shared/inference.ts` (+4 -5) </details> ### 📄 Description Ollama has two API endpoints for text generation. There is a chat endpoint for interactive and interactive chat like generation of text and there is a generate endpoint that is used one one-shot prompts, such as summarization tasks and similar things. Karakeep used the chat endpoint that resulted in odd summaries. This commit makes karakeep use the generate endpoint instead, which results in better and more compact summaries. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:00:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2071
No description provided.