@@ -210,7 +210,7 @@ def _model_call(
210210 model : SDKLLM ,
211211 prompt : str ,
212212 system_prompt : Optional [str ],
213- max_completion_tokens : int ,
213+ max_completion_tokens : Optional [ int ] ,
214214 images : Optional [Union [List [str ], str ]],
215215 conversation : Optional [str ],
216216 metadata : Optional [Dict [str , str ]],
@@ -272,7 +272,7 @@ def chat( # noqa: D417
272272 prompt : str ,
273273 system_prompt : Optional [str ] = None ,
274274 model : Optional [str ] = None ,
275- max_tokens : int = 500 ,
275+ max_tokens : Optional [ int ] = None ,
276276 images : Optional [Union [List [str ], str ]] = None ,
277277 conversation : Optional [str ] = None ,
278278 metadata : Optional [Dict [str , str ]] = None ,
@@ -287,7 +287,7 @@ def chat( # noqa: D417
287287 prompt (str): The message to send to the LLM.
288288 system_prompt (str): The system prompt to set the context. Defaults to assistant's default system prompt.
289289 model (Optional[str]): The model to override. If provided, this model will be prioritized and used.
290- max_tokens (int): The maximum number of tokens for the response. Defaults to 500 .
290+ max_tokens (int): The maximum number of tokens for the response. Defaults to None .
291291 images (Optional[Union[List[str], str]]): List of local or public image paths to pass to the model.
292292 conversation (Optional[str]): The conversation ID for maintaining context. Defaults to None.
293293 metadata (Optional[dict[str, str]]): Dictionary for storing additional information of the request.
0 commit comments