Skip to content

feat: add thinking parameter to document processing - #83

Merged
decim92 merged 1 commit into
mainfrom
cursor/add-thinking-parameter-33f6
Nov 13, 2026
Merged

decim92 merged 1 commit into
mainfrom
cursor/add-thinking-parameter-33f6

Conversation

@alejouribesanchez

Copy link
Copy Markdown
Collaborator

Summary

Adds the thinking parameter to receipt and invoice processing (POST /api/v8/partner/documents).

  • Pass { thinking: "light" } or { thinking: "deep" } on process_document, process_document_from_stream, process_document_from_base64, and process_document_from_url.
  • light runs a smaller agent review. deep runs the most thorough review. Omit the field, or pass null, to keep the standard pipeline.
  • The value stays on the existing options object, so current positional calls are unchanged.

Docs: Process a Document and Thinking Mode.

Test plan

  • npx jest --no-coverage (222 passed)
  • Thinking tests cover file, stream, base64, and URL requests, including omitting thinking when it is null
  • Typecheck accepts light and deep and rejects other strings

Slack Thread

Open in Web Open in Cursor 

Pass thinking as light or deep on the receipt and invoice process helpers. Omit it to keep the standard pipeline.

Co-authored-by: Alejandro Uribe Sánchez <alejouribesanchez@gmail.com>
@decim92
decim92 merged commit 9c7bf8e into main Nov 13, 2026
1 check 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