Spaces:
Running

Yash030 Claude Opus 4.7 commited on
Commit
574e4e7
·
1 Parent(s): aa9c0b0

Implement image support in proxy with vision-aware routing

Browse files

- Add Anthropic→OpenAI image block conversion with size validation
- Update ModelCapabilities with granular vision support fields
- Support base64-encoded images with memory optimization
- Add 20MB image size limit guard in conversion
- Clear base64 data from request blocks to reduce memory footprint
- Update mistral-large-3-675b model entry with vision capabilities
- Enable vision-aware model routing for image requests

Closes: image upload support in Claude Code proxy

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

16 files changed +226 -40
Files changed (16)
.claude/settings.local.json+5-1
api/detection.py+10-1
api/model_router.py+6-2
api/web_tools/streaming.py+1
config/__pycache__/settings.cpython-314.pyc
Binary file (32.8 kB). View file
core/__pycache__/rate_limit.cpython-314.pyc
Binary file (4.48 kB). View file
core/anthropic/conversion.py+60-10
core/chain_engine.py+1-1
core/model_capabilities.py+13-2
core/task_detector.py+124-20
providers/__pycache__/openai_compat.cpython-314.pyc
Binary file (28.6 kB). View file
providers/__pycache__/rate_limit.cpython-314.pyc
Binary file (27.6 kB). View file
providers/nvidia_nim/metrics.py+1
providers/registry.py+3-1
providers/zen/__init__.py+1-1
providers/zen/client.py+1-1