Skip to content
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

Ollama: Wrong user message repeated in prompt as the latest user message #1071

Closed
MB-Finski opened this issue Jul 27, 2024 · 0 comments · Fixed by #1072
Closed

Ollama: Wrong user message repeated in prompt as the latest user message #1071

MB-Finski opened this issue Jul 27, 2024 · 0 comments · Fixed by #1072

Comments

@MB-Finski
Copy link
Contributor

Steps to reproduce:

  1. Run a chat with ollama as the llm backend and with add_chat_history_to_messages=True.
  2. Make a query about something irrelevant (e.g. "How are you doing?")
  3. Make a query that require tool use (e.g. "Is there anything interesting going on in France?" -> assuming you have DDG-news or some other tool available.)

Resulting error:

In the debug logs the "latest" user message that is repeated to the model is not the latest ("Is there anything interesting going on in France?") but actually the first in the available chat history ("How are you doing?" in this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant