fix(model_param_helper.py): change TranscriptionCreateParams.__annotations__ to TranscriptionCreateParams.__dict__ to clean logging error // handle typeddict

This commit is contained in:
Hammad Saeed 2025-03-21 16:30:46 -07:00
parent ae3c3af22e
commit 04fd43bad6

View file

@ -123,7 +123,7 @@ class ModelParamHelper:
This follows the OpenAI API Spec This follows the OpenAI API Spec
""" """
return set(TranscriptionCreateParams.__annotations__.keys()) return set(TranscriptionCreateParams.__dict__.keys())
@staticmethod @staticmethod
def _get_exclude_kwargs() -> Set[str]: def _get_exclude_kwargs() -> Set[str]: