Skip to content

Conversation

@raushan-skyflow
Copy link
Contributor

@raushan-skyflow raushan-skyflow commented Jul 4, 2025

This PR introduces enhancements to the Python SDK V2 for the deidentify_file functionality. It includes updates to both request and response formats for better consistency with other server-side SDKs (e.g., Node SDK V2). Additionally, it refines error handling to return None instead of an empty array when there are no errors.

Why:

  • Included file_path in the deidentify file request for deidentification ensuring consistency.
  • Added file_base64 in the response that holds the base64 of the deidentified file so users can directly access the deidentified file.
  • Updated the errors field to return None when no errors are present, matching the latest behavior of the Node SDK V2 and other server-side SDKs.

Goal:

  • Ensure the deidentify file request takes file_path and returns the file object.
  • Maintain consistency in response structure across SDKs by setting errors to None instead of an empty list when there are no errors.

Test:

  • Validated changes locally.
  • Added and ran unit tests to confirm correct behavior of the new request/response structure and error handling.

@raushan-skyflow raushan-skyflow merged commit 3a6210b into beta-release/25.6.2 Jul 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants