def _determine_vector_size() -> int:
    """Determine the vector size for a collection based on the source connection."""
    if settings.OPENAI_API_KEY:
        return 1536
    else:
        return 384
Determine the vector size for a collection based on the source connection.
backend/airweave/core/collection_service.py