if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
raise TypeError(
raise TypeError(
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `krutrim_cloud.DEFAULT_MAX_RETRIES`"
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `openai.DEFAULT_MAX_RETRIES`"