Skip to content

Fix BYOK vision provider mismatch and update default models#142

Merged
neuromechanist merged 4 commits into
mainfrom
develop
Apr 4, 2026
Merged

Fix BYOK vision provider mismatch and update default models#142
neuromechanist merged 4 commits into
mainfrom
develop

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

  • Fix CLI annotate-image crash: annotation provider (anthropic) was leaking to vision agent in BYOK mode, causing provider mismatch
  • Update default vision/eval models to qwen/qwen3.5-122b-a10b with alibaba provider (faster, cheaper)
  • Add vision_provider field to API for full provider decoupling
  • Fix vision_provider not passed through in standalone mode
  • Add 504 gateway timeout handler to CLI client
  • Add logging to BYOK init error paths; preserve server detail in 503 handler

Test plan

  • All 158 unit tests pass
  • Pre-commit hooks pass
  • Standalone mode tested locally with new defaults
  • PR review: code-reviewer, comment-analyzer, silent-failure-hunter -- all findings addressed
  • After merge + image build: test CLI against prod API

Closes #140

* Fix BYOK vision provider mismatch and update default models

- Fix: annotation provider (anthropic) was passed to vision agent in
  BYOK mode, causing provider mismatch crash on annotate-image
- Fix: vision_provider not passed through LocalExecutionBackend
- Update vision/eval defaults to qwen/qwen3.5-122b-a10b with alibaba
- Keep annotation model as claude-haiku-4.5 with anthropic provider
- Add 504 gateway timeout handler to CLI client
- Update docker-compose, .env.example, deploy docs, frontend display
- Bump version to 0.7.9.dev0

Closes #140

* Address PR review findings

- Add vision_provider field to ImageAnnotationRequest for full decoupling
- Wire vision_provider_override through all 4 API code paths
- Add X-OpenRouter-Vision-Provider to CORS allowed headers
- Fix stale docstring: GPT-OSS-120B -> Qwen3.5-122B in create_openrouter_workflow
- Fix stale eval_provider description: None -> alibaba in config
- Update provider examples: Cerebras/deepinfra -> anthropic/alibaba
- Align .env.example annotation model with code defaults (claude-haiku-4.5)
- Make vision provider comments durable (architectural intent, not config)

* Address silent-failure-hunter findings

- Add logging.exception() to BYOK agent init error paths
- Include server-provided detail in 503 handler instead of discarding
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 4, 2026

Copy link
Copy Markdown

Deploying hedit with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5783634
Status: ✅  Deploy successful!
Preview URL: https://2addff40.hedit.pages.dev
Branch Preview URL: https://develop.hedit.pages.dev

View logs

@codecov

codecov Bot commented Apr 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 53.84615% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/api/main.py 43.75% 9 Missing ⚠️
src/cli/client.py 0.00% 2 Missing ⚠️
src/cli/local_executor.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

# Conflicts:
#	pyproject.toml
#	src/version.py
@neuromechanist neuromechanist merged commit ca92a45 into main Apr 4, 2026
34 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.

Fix BYOK vision provider mismatch and update default models

1 participant