Fix axios SSRF vulnerability and wire task-based vision model routing#3
Merged
williamkasasa merged 3 commits intomainfrom Apr 10, 2026
Merged
Fix axios SSRF vulnerability and wire task-based vision model routing#3williamkasasa merged 3 commits intomainfrom
williamkasasa merged 3 commits intomainfrom
Conversation
…auncher Agent-Logs-Url: https://github.com/williamkasasa/claude-code/sessions/e159c353-ceb0-4b47-a17a-88f8f397a16f Co-authored-by: williamkasasa <240737618+williamkasasa@users.noreply.github.com>
Agent-Logs-Url: https://github.com/williamkasasa/claude-code/sessions/e159c353-ceb0-4b47-a17a-88f8f397a16f Co-authored-by: williamkasasa <240737618+williamkasasa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set up task-based routing for Hugging Face models
Fix axios SSRF vulnerability and wire task-based vision model routing
Apr 9, 2026
williamkasasa
approved these changes
Apr 10, 2026
Owner
|
@copilot please checkout and push please |
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.
Bumps axios from
^1.12.2to^1.15.0to patch aNO_PROXYhostname normalisation bypass that enables SSRF (fixed in 1.15.0). Also wires task-based model routing for the AG-Claw multimodal vision pipeline and adds HuggingFace hosted model support via LiteLLM.Security
promptfoo/package.json:axios^1.12.2→^1.15.0; lockfile regenerated, resolved to1.15.0Task-based model routing
promptfoo/providers/agclawVisionProvider.js: AddsdefaultModelForRoute(routeKey)—caption/hmiroutes default toqwen2.5vl:7b,ocrtogemma3:4b, all others toqwen2.5vl:3b. Per-route env overrides (AGCLAW_PROMPTFOO_VISION_MODEL_<ROUTE>) still take precedence.HuggingFace hosted models
litellm/agclaw-config.local.yaml: Addsvision-caption-hostedandvision-hmi-hosted(bothhuggingface/Qwen/Qwen2.5-VL-7B-Instruct) andvision-ocr-hosted(huggingface/google/gemma-3-4b-it), all keyed toos.environ/HF_TOKEN.LiteLLM launcher
litellm/start.sh: Bash launcher; warns on missingHF_TOKEN, accepts--config/--portflags andLITELLM_CONFIG/LITELLM_PORTenv vars.docker/docker-compose.litellm.yml: Standalone Compose service usingghcr.io/berriai/litellm:main-latest, mounts config read-only, forwardsHF_TOKENandLITELLM_MASTER_KEY.Original prompt
Created from VS Code.