[PR #14717] Added : OpenAPI spec: ChatStreamEvent missing usage fields in final chunk #14680 #77101

Open
opened 2026-05-05 09:48:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14717
Author: @Rishi-11-2
Created: 3/8/2026
Status: 🔄 Open

Base: mainHead: OpenAPI_Spec


📝 Commits (3)

  • 46b5720 The ChatStreamEvent schema in docs/openapi.yaml now includes all 8 missing fields (done_reason, total_duration, load_duration, prompt_eval_count, prompt_eval_duration, eval_count, eval_duration, logprobs) — matching what the API actually returns in the final streaming chunk
  • 53a64ce Added LogProb for GenerateStreamEvent
  • 84a846c Merge branch 'ollama:main' into OpenAPI_Spec

📊 Changes

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

View changed files

📝 docs/openapi.yaml (+31 -0)

📄 Description

The ChatStreamEvent schema in docs/openapi.yaml now includes all 8 missing fields (done_reason, total_duration, load_duration, prompt_eval_count, prompt_eval_duration, eval_count, eval_duration, logprobs) — matching what the API actually returns in the final streaming chunk.
Resolves #14680


🔄 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/14717 **Author:** [@Rishi-11-2](https://github.com/Rishi-11-2) **Created:** 3/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `OpenAPI_Spec` --- ### 📝 Commits (3) - [`46b5720`](https://github.com/ollama/ollama/commit/46b5720e96eecdb3a6f1158cd1cdc568db915ee6) The ChatStreamEvent schema in docs/openapi.yaml now includes all 8 missing fields (done_reason, total_duration, load_duration, prompt_eval_count, prompt_eval_duration, eval_count, eval_duration, logprobs) — matching what the API actually returns in the final streaming chunk - [`53a64ce`](https://github.com/ollama/ollama/commit/53a64ce2cc8eab3558515f7c8662633a185a8bce) Added LogProb for GenerateStreamEvent - [`84a846c`](https://github.com/ollama/ollama/commit/84a846c4c41340564f2a0b1b6f260b8f83d88d40) Merge branch 'ollama:main' into OpenAPI_Spec ### 📊 Changes **1 file changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/openapi.yaml` (+31 -0) </details> ### 📄 Description The ChatStreamEvent schema in docs/openapi.yaml now includes all 8 missing fields (done_reason, total_duration, load_duration, prompt_eval_count, prompt_eval_duration, eval_count, eval_duration, logprobs) — matching what the API actually returns in the final streaming chunk. Resolves #14680 --- <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-05-05 09:48:08 -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#77101