Skip to content

fix: fix create file api request param issue#69

Merged
mohamedveron merged 2 commits intomainfrom
fix-alpha-version-issues
May 6, 2026
Merged

fix: fix create file api request param issue#69
mohamedveron merged 2 commits intomainfrom
fix-alpha-version-issues

Conversation

@mohamedveron
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Python SDK’s Files.create() implementation to send raw binary request bodies correctly when calling the generated create_file sandbox endpoint (which uses httpx.request(content=...)).

Changes:

  • Update Files.create() to pass raw bytes as the request content instead of wrapping them in io.BytesIO.
  • Adjust the inline comment to document the httpx requirement (pending rewording per review comment).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread together-sandbox-python/together_sandbox/_sandbox.py
Comment thread together-sandbox-python/together_sandbox/_sandbox.py
@mohamedveron mohamedveron merged commit ad21e51 into main May 6, 2026
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.

3 participants