[PR #5371] [MERGED] Return Correct Prompt Eval Count Regardless of Cache Prompt #22302

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5371
Author: @royjhan
Created: 6/29/2024
Status: Merged
Merged: 7/3/2024
Merged by: @royjhan

Base: mainHead: royh-tokens


📝 Commits (3)

  • d3f98a8 openai compatibility
  • 381ae2e Revert "openai compatibility"
  • a914b77 remove erroneous subtraction of prompt cache

📊 Changes

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

View changed files

📝 llm/ext_server/server.cpp (+1 -1)

📄 Description

Resolves #5370
Resolves #2068
Resolves https://github.com/ollama/ollama-js/issues/66


🔄 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/5371 **Author:** [@royjhan](https://github.com/royjhan) **Created:** 6/29/2024 **Status:** ✅ Merged **Merged:** 7/3/2024 **Merged by:** [@royjhan](https://github.com/royjhan) **Base:** `main` ← **Head:** `royh-tokens` --- ### 📝 Commits (3) - [`d3f98a8`](https://github.com/ollama/ollama/commit/d3f98a811e00fc497d889c8c45b0cfec5b64690c) openai compatibility - [`381ae2e`](https://github.com/ollama/ollama/commit/381ae2e488a8b076187816f5e8af9a135f816577) Revert "openai compatibility" - [`a914b77`](https://github.com/ollama/ollama/commit/a914b774f9d18015d53a2c73ce86e1102e460ff4) remove erroneous subtraction of prompt cache ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/ext_server/server.cpp` (+1 -1) </details> ### 📄 Description Resolves #5370 Resolves #2068 Resolves https://github.com/ollama/ollama-js/issues/66 --- <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 16:14:17 -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#22302