[PR #7878] [MERGED] server: add warning message for deprecated context field in /api/generate #17817

Closed
opened 2026-04-16 06:15:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7878
Author: @jmorganca
Created: 11/29/2024
Status: Merged
Merged: 11/30/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/deprecate-context


📝 Commits (1)

  • 16f353f server: add warning message for deprecating context field

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 docs/api.md (+1 -1)
📝 server/routes.go (+1 -0)

📄 Description

The context parameter in /api/generate has been longtime replaced by functionality in the /api/chat endpoint. This PR adds a deprecation warning in the logs when used.


🔄 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/7878 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 11/29/2024 **Status:** ✅ Merged **Merged:** 11/30/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/deprecate-context` --- ### 📝 Commits (1) - [`16f353f`](https://github.com/ollama/ollama/commit/16f353fb1ad711f430a7a8f086baf30e1b990f0e) server: add warning message for deprecating context field ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/api.md` (+1 -1) 📝 `server/routes.go` (+1 -0) </details> ### 📄 Description The `context` parameter in `/api/generate` has been longtime replaced by functionality in the `/api/chat` endpoint. This PR adds a deprecation warning in the logs when used. --- <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-16 06:15:01 -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#17817