Skip to content

feat: add support for image_file in visual_search Admin API#740

Open
esguerrat wants to merge 1 commit into
masterfrom
feature/visual-search-image-file
Open

feat: add support for image_file in visual_search Admin API#740
esguerrat wants to merge 1 commit into
masterfrom
feature/visual-search-image-file

Conversation

@esguerrat

Copy link
Copy Markdown
Contributor

Adds multipart/form-data support to the Admin API request layer so visual_search can accept a local file path or Buffer for image_file, in addition to image_url, image_asset_id, and text. The endpoint now always uses POST instead of GET.
Mirrors the equivalent feature already added to the Python SDK. The Node Admin API HTTP layer (lib/api_client/execute_request.js) previously had no multipart/form-data support at all, so this PR adds it there as well as in visual_search itself.

What Does This PR Address?

  • GitHub issue (Add reference - #XX)
  • Refactoring
  • [ x] New feature
  • Bug fix
  • Adds more tests

Are Tests Included?

  • [x ] Yes
  • No

Adds multipart/form-data support to the Admin API request layer so
visual_search can accept a local file path or Buffer for image_file,
in addition to image_url, image_asset_id, and text. The endpoint now
always uses POST instead of GET.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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