Skip to content

Add streaming collection document uploads#146

Open
MukundaKatta wants to merge 1 commit into
xai-org:mainfrom
MukundaKatta:codex/stream-collection-document-upload
Open

Add streaming collection document uploads#146
MukundaKatta wants to merge 1 commit into
xai-org:mainfrom
MukundaKatta:codex/stream-collection-document-upload

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary\n- add sync and async collection helpers for uploading a document from a path or binary file object without preloading it into memory\n- keep existing collection attachment, metadata fields, progress callbacks, expiration, and optional indexing wait behavior\n- add sync and async tests for path-based streaming uploads\n\nRefs #77.\n\n## Tests\n- uv run ruff check src/xai_sdk/sync/collections.py src/xai_sdk/aio/collections.py tests/sync/collections_test.py tests/aio/collections_test.py\n- uv run pyright src/xai_sdk/sync/collections.py src/xai_sdk/aio/collections.py tests/sync/collections_test.py tests/aio/collections_test.py\n- uv run pytest tests/sync/collections_test.py::test_upload_document_file_from_path tests/aio/collections_test.py::test_upload_document_file_from_path\n- uv run pytest tests/sync/collections_test.py tests/aio/collections_test.py

@MukundaKatta MukundaKatta requested a review from a team as a code owner May 15, 2026 14:55
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.

1 participant