Support http(s) URLs in gw embed and transcribe commands - #218
Draft
spillai wants to merge 2 commits into
Draft
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vlmrun gw chatalready accepts local paths andhttp(s)URLs as positional inputs, butgw embedonly accepted localPatharguments andgw transcriberequired--urlfor remote audio.This PR aligns both commands with chat:
gw embed: positional args are now file paths orhttp(s)URLs (images/video only; documents are rejected client-side)gw embed:-pis now an alias for-t/--text(text to embed)gw transcribe: positional args are now file paths orhttp(s)URLs;--urlis kept for backward compatibilityExamples
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-v3Test plan
-ptext alias, and transcribe positional URLs--urltranscribe flow still workspytest tests/test_gateway.py::TestGatewayEmbed— 14 passed