Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(python): Add length param to multipart requests #1415

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

angus-langchain
Copy link
Contributor

@angus-langchain angus-langchain commented Jan 14, 2025

Purpose

Go's multipart form parsing implementation differs from Python. It does not handle Content-Length headers for individual form parts. To migrate to our Go ingest service, we need to attach the length of each part in the request.

Changes

  1. Added length parameter for all multipart form parts
  2. JS clients already include a length parameter
  3. Maintain Content-Length header for backwards compatibility with existing python backend service

@angus-langchain angus-langchain force-pushed the angus/add-length-param-to-sdk branch from 93e3cff to f2964ad Compare January 15, 2025 19:10
Base automatically changed from py-version-0.3.0 to main January 22, 2025 01:16
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.

2 participants