Skip to content

Support http(s) URLs in gw embed and transcribe commands - #218

Draft
spillai wants to merge 2 commits into
mainfrom
cursor/gw-embed-transcribe-urls-c08e
Draft

Support http(s) URLs in gw embed and transcribe commands#218
spillai wants to merge 2 commits into
mainfrom
cursor/gw-embed-transcribe-urls-c08e

Conversation

@spillai

@spillai spillai commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

vlmrun gw chat already accepts local paths and http(s) URLs as positional inputs, but gw embed only accepted local Path arguments and gw transcribe required --url for remote audio.

This PR aligns both commands with chat:

  • gw embed: positional args are now file paths or http(s) URLs (images/video only; documents are rejected client-side)
  • gw embed: -p is now an alias for -t / --text (text to embed)
  • gw transcribe: positional args are now file paths or http(s) URLs; --url is kept for backward compatibility

Examples

vlmrun gw embed https://example.com/photo.jpg -m qwen/qwen3-vl-embedding-2b
vlmrun gw embed -p "a blue parrot" -m qwen/qwen3-vl-embedding-2b
vlmrun gw transcribe https://example.com/a.mp3 -m nvidia/parakeet-tdt-0.6b-v3

Test plan

  • Added unit/CLI tests for embed URL inputs, -p text alias, and transcribe positional URLs
  • Existing --url transcribe flow still works
  • pytest tests/test_gateway.py::TestGatewayEmbed — 14 passed
Open in Web Open in Cursor 

Align gateway embed and transcribe with chat by accepting remote URLs as
positional arguments. Embed validates that URLs point to images or video;
transcribe still supports --url for backward compatibility.

Co-authored-by: Sudeep Pillai <sudeep.pillai@gmail.com>
Co-authored-by: Sudeep Pillai <sudeep.pillai@gmail.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.

2 participants