(fix) linting

This commit is contained in:
ishaan-jaff 2023-11-16 11:44:26 -08:00
parent baf4e83738
commit a1cecbafe6

View file

@ -1819,7 +1819,7 @@ def embedding(
###### Text Completion ################ ###### Text Completion ################
def text_completion( def text_completion(
prompt: Union[str, List[Union[str, List[Union[str, List[int]]]]]], # Required: The prompt(s) to generate completions for. prompt: Union[str, List[Union[str, List[Union[str, List[int]]]]]], # Required: The prompt(s) to generate completions for.
model: str = None, # Required: ID of the model to use. model: Optional[str] = None, # Required: ID of the model to use.
best_of: Optional[int] = None, # Optional: Generates best_of completions server-side. best_of: Optional[int] = None, # Optional: Generates best_of completions server-side.
echo: Optional[bool] = None, # Optional: Echo back the prompt in addition to the completion. echo: Optional[bool] = None, # Optional: Echo back the prompt in addition to the completion.
frequency_penalty: Optional[float] = None, # Optional: Penalize new tokens based on their existing frequency. frequency_penalty: Optional[float] = None, # Optional: Penalize new tokens based on their existing frequency.