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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,6 +235,7 @@ def completion(
optional_params["message"] = most_recent_message optional_params["message"] = most_recent_message
data = { data = {
"model": model, "model": model,
"chat_history": = chat_histrory,
**optional_params, **optional_params,
} }