diff --git a/litellm/main.py b/litellm/main.py index f0eab8c0c9..6d484224e5 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -1819,7 +1819,7 @@ def embedding( ###### Text Completion ################ def text_completion( 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. 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.