Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cohere/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def generate(
num_generations (int): (Optional) The number of generations that will be returned, defaults to 1.
max_tokens (int): (Optional) The number of tokens to predict per generation, defaults to 20.
temperature (float): (Optional) The degree of randomness in generations from 0.0 to 5.0, lower is less random.
truncate (str): (Optional) One of NONE|START|END, defaults to END. How the API handles text longer than the maximum token length.\
truncate (str): (Optional) One of NONE|START|END, defaults to END. How the API handles text longer than the maximum token length.
stream (bool): Return streaming tokens.
Returns:
if stream=False: a Generations object
Expand Down