> sometimes they genuinely help OSS, other times they look more like marketing

Whenever companies do things like this, it's both, or at least trying hard to be. To the extent that it's perceived by developers (that is, potential OpenAI customers) as helping OSS, it's effective marketing. This perception may or may not correspond to reality.