From 1ee8051c7c4ec0964b78c57147cefb10f4d2face Mon Sep 17 00:00:00 2001 From: pat-cohere <145371747+pat-cohere@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:23:04 -0400 Subject: [PATCH] Update cohere_chat.py Add chat history to cohere chat call that was previously being dropped. --- litellm/llms/cohere_chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/llms/cohere_chat.py b/litellm/llms/cohere_chat.py index 830c924bd..bfa5ebf78 100644 --- a/litellm/llms/cohere_chat.py +++ b/litellm/llms/cohere_chat.py @@ -235,6 +235,7 @@ def completion( optional_params["message"] = most_recent_message data = { "model": model, + "chat_history": = chat_histrory, **optional_params, }