feat(openai): extract gateway metadata from response headers when available (#39706)