Update cohere_chat.py

Add chat history to cohere chat call that was previously being dropped.
This commit is contained in:
pat-cohere
2024-07-29 17:23:04 -04:00
committed by GitHub
parent ae4bcd8a41
commit 1ee8051c7c
+1
View File
@@ -235,6 +235,7 @@ def completion(
optional_params["message"] = most_recent_message
data = {
"model": model,
"chat_history": = chat_histrory,
**optional_params,
}