Skip to content

Commit

Permalink
fix(chat-history): ensure we pass nil by default
Browse files Browse the repository at this point in the history
otherwise, the conversation_id is ignored by Cohere
  • Loading branch information
yjean committed May 3, 2024
1 parent 4730bff commit 50ce83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cohere/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def chat(
stream: false,
preamble: nil,
preamble_override: nil,
chat_history: [],
chat_history: nil,
conversation_id: nil,
prompt_truncation: nil,
connectors: [],
Expand Down

0 comments on commit 50ce83c

Please sign in to comment.