System data : Is there a way to opt-out?

You can override these for privacy like so:

client = OpenAI(default_headers={
  'X-Stainless-Arch': 'private',
  'X-Stainless-OS': 'private',
})

There is not currently a way to remove all of these headers in one go; if you’d like to see that, please file an issue on the SDK’s github repo with more details about your use-case and which headers you’d like to see hidden.