Skip to content

Add --json-mode flag to vlmrun gw chat - #207

Merged
nwaughachukwuma merged 1 commit into
mainfrom
cursor/gw-json-mode-cli-94b6
Aug 7, 2026
Merged

Add --json-mode flag to vlmrun gw chat#207
nwaughachukwuma merged 1 commit into
mainfrom
cursor/gw-json-mode-cli-94b6

Conversation

@spillai

@spillai spillai commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a --json-mode CLI flag to vlmrun gw chat as a shorthand for enabling JSON mode (response_format: {"type": "json_object"}).

  • --json-mode sets response_format to json_object on the gateway chat request
  • --json-mode and --response-format are mutually exclusive (CLI exits with a clear error if both are provided)
  • Bumps SDK version from 0.7.20.7.3

Usage

vlmrun gw chat img.jpg -m paddleocr/pp-ocrv6 --json-mode

Equivalent to:

vlmrun gw chat img.jpg -m paddleocr/pp-ocrv6 --response-format json_object

Testing

  • Added tests for --json-mode sending response_format as a top-level kwarg
  • Added test for mutual exclusivity with --response-format
  • All new tests pass locally

Slack Thread

Open in Web Open in Cursor 

Open in Devin Review

Introduce --json-mode as a shorthand for response_format json_object on
the gateway chat command. The flag is mutually exclusive with
--response-format. Bump SDK version to 0.7.3.

Co-authored-by: Sudeep Pillai <sudeep.pillai@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@nwaughachukwuma nwaughachukwuma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@nwaughachukwuma
nwaughachukwuma merged commit 5f4a888 into main Aug 7, 2026
5 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