def get_vectorizer_config(model: BaseEmbeddingModel) -> VectorizerConfig:
        """Convert model config to Weaviate vectorizer config."""
        if model.model_name == "openai-text2vec":
            return Configure.Vectorizer.text2vec_openai(
                api_key=model.api_key,
                dimensions=model.vector_dimensions,
                model_name=model.model_name,
            )
        elif model.model_name == "local-text2vec-transformers":
            return Configure.Vectorizer.text2vec_transformers(
                inference_url=model.inference_url,
            )

        raise ValueError(f"Unsupported model type: {model.model_name}")
Convert model config to Weaviate vectorizer config.
backend/airweave/platform/embedding_models/_adapters.py