In OCSVM, the `gamma` parameter controls the decision boundary's shape (tightness), while `nu` controls the proportion of outliers allowed and the fraction of support vectors. A small `gamma` creates a smoother boundary, reducing overfitting, while `nu` influences the model's sensitivity to outliers; tuning both is crucial for adaptability to new data distributions.