Skip to content

Ollama: The context field is deprecated and will be removed in a future version #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
daxian-dbw opened this issue Apr 23, 2025 · 0 comments
Labels
Issue-Enhancement The issue is a feature or idea

Comments

@daxian-dbw
Copy link
Member

Summary of the new feature / enhancement

Today the Ollama agent uses the context field for preserving history of a chat. The Ollama server 0.5.13 writes out warning about using this field:

[GIN] 2025/04/23 - 13:05:47 | 200 | 9.6578815s | 127.0.0.1 | POST "/api/generate"
time=2025-04-23T13:06:59.988-07:00 level=WARN source=routes.go:274 msg="the context field is deprecated and will be removed in a future version of Ollama"

So, the agent needs to be updated with a different way to handle chat history.

Proposed technical implementation details (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea
Projects
None yet
Development

No branches or pull requests

1 participant