def update_config(
        self,
        **kwargs,
    ):
        """
        Updates the `model_kwargs` dictionaries with the keyword
        arguments passed to the `update_config` function.
        """
        self.trainer_kwargs.update(kwargs)
        self.trainer_kwargs = filter_allowed_args(self.init_training_args, **self.trainer_kwargs)

        keys = []
        for key, value in self.trainer_kwargs.items():
            if value is None:
                keys.append(key)
        for key in keys:
            del self.trainer_kwargs[key]

        if "model" in self.trainer_kwargs:
            self._model = self.trainer_kwargs["model"]

        Updates the `model_kwargs` dictionaries with the keyword
        arguments passed to the `update_config` function.
        
argilla-v1/src/argilla_v1/training/openai.py