mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
How can I use context parameter?
#14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @YRG999 on GitHub (Jan 28, 2024).
How can I use the
contextparameter from the API to keep a conversational memory?@mxyng commented on GitHub (Jan 29, 2024):
The response from a generate call will return a context object. To continue the conversation, you can pass this directly into the next call:
Context is the token representations of the inputs and outputs up to and including the response