forked from phoenix/litellm-mirror
Update cohere_chat.py
Add chat history to cohere chat call that was previously being dropped.
This commit is contained in:
parent
ae4bcd8a41
commit
1ee8051c7c
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ def completion(
|
|||
optional_params["message"] = most_recent_message
|
||||
data = {
|
||||
"model": model,
|
||||
"chat_history": = chat_histrory,
|
||||
**optional_params,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue