def get_generative_config(model: BaseEmbeddingModel) -> Optional[GenerativeConfig]:
        """Convert additional config to Weaviate generative config."""
        additional_config = model.get_additional_config()
        if not additional_config:
            return None

        if model.model_name == "openai-text2vec":
            return Configure.Generative.openai(
                model=model.model_name,
            )

        return None
Convert additional config to Weaviate generative config.
backend/airweave/platform/embedding_models/_adapters.py