Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Add addobject() method to upload binary data (byte arrays or files)
  • Add addimage() method to upload image files with proper content type detection
  • Support for multipart form data uploads using OkHttp

Fixes #959 in neuml/txtai

Test plan

  • Code compiles successfully
  • Methods follow existing API patterns
  • Integration test with running txtai instance (requires server)

Add support for binary object and image upload endpoints:
- addobject: Upload binary data (byte arrays or files)
- addimage: Upload image files with proper content type detection

Fixes neuml/txtai#959

Signed-off-by: majiayu000 <[email protected]>
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