Skip to content

Commit

Permalink
Add support seed
Browse files Browse the repository at this point in the history
  • Loading branch information
naoa committed Apr 6, 2024
1 parent 6015ca2 commit 4c217a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cohere/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def chat(
max_tokens: nil,
k: nil,
p: nil,
seed: nil,
frequency_penalty: nil,
presence_penalty: nil,
tools: [],
Expand All @@ -54,6 +55,7 @@ def chat(
req.body[:max_tokens] = max_tokens if max_tokens
req.body[:k] = k if k
req.body[:p] = p if p
req.body[:seed] = seed if seed
req.body[:frequency_penalty] = frequency_penalty if frequency_penalty
req.body[:presence_penalty] = presence_penalty if presence_penalty
req.body[:tools] = tools if tools
Expand Down

0 comments on commit 4c217a8

Please sign in to comment.