mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Add example for chat with history #36
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 @bibhas2 on GitHub (Feb 19, 2024).
Chat with history is perhaps the most common use case. In fact
ollama runworks like that. An example with that use case will be great for the newcomers. Here's a sample code:@connor-makowski commented on GitHub (Feb 20, 2024):
Related to:
https://github.com/ollama/ollama-python/issues/63
And:
https://github.com/ollama/ollama-python/pull/64
@u1i commented on GitHub (Mar 10, 2024):
Examples are always great!
How about adding: system prompt & temperature setting?
@Coddyy commented on GitHub (Dec 9, 2024):
I am trying to integrate tool calling with chat history, if some function(tools) parameters are missing in user's question then it should come back and ask for the parameter, to get this working I need the previous context.
Getting
AttributeError: 'generator' object has no attribute 'message'Thanks in advance!!