mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
docs(main): clarify temperature=None behavior in completion() docstrings
This commit is contained in:
parent
31eca17007
commit
9be0c24738
1 changed files with 2 additions and 2 deletions
|
|
@ -455,7 +455,7 @@ async def acompletion(
|
|||
OPTIONAL PARAMS
|
||||
functions (List, optional): A list of functions to apply to the conversation messages (default is an empty list).
|
||||
function_call (str, optional): The name of the function to call within the conversation (default is an empty string).
|
||||
temperature (float, optional): The temperature parameter for controlling the randomness of the output (default is 1.0).
|
||||
temperature (float, optional): The sampling temperature, between 0 and 2. When None (default), the parameter is omitted from the request and the provider applies its own default.
|
||||
top_p (float, optional): The top-p parameter for nucleus sampling (default is 1.0).
|
||||
n (int, optional): The number of completions to generate (default is 1).
|
||||
stream (bool, optional): If True, return a streaming response (default is False).
|
||||
|
|
@ -1149,7 +1149,7 @@ def completion( # type: ignore
|
|||
OPTIONAL PARAMS
|
||||
functions (List, optional): A list of functions to apply to the conversation messages (default is an empty list).
|
||||
function_call (str, optional): The name of the function to call within the conversation (default is an empty string).
|
||||
temperature (float, optional): The temperature parameter for controlling the randomness of the output (default is 1.0).
|
||||
temperature (float, optional): The sampling temperature, between 0 and 2. When None (default), the parameter is omitted from the request and the provider applies its own default.
|
||||
top_p (float, optional): The top-p parameter for nucleus sampling (default is 1.0).
|
||||
n (int, optional): The number of completions to generate (default is 1).
|
||||
stream (bool, optional): If True, return a streaming response (default is False).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue