Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya committed May 8, 2024
1 parent 7b7f550 commit e213178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chatbot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def llamacpp_chat(message, history):
for user, ai in history:
history_langchain_format.append({"role": "user", "content": user})
history_langchain_format.append({"role": "assistant", "content": ai})
history_langchain_format.append({"role": "assistant", "content": message})
history_langchain_format.append({"role": "user", "content": message})
messages = history_langchain_format

output = llm.chat_completion(messages)
Expand Down

0 comments on commit e213178

Please sign in to comment.