mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 01:59:55 +08:00
Squash-merge of #490 (skinred78) with two non-trivial conflict resolutions: * `openai_compat_provider.py`: PR inlined reasoning_effort logic that has since been refactored into `build_openai_compatible_reasoning_kwargs`. Keep the helper call; the Gemini default-down will be folded into the helper in a follow-up commit instead of duplicating it inline. * `capabilities/visualize.py`: i18n was applied to the review-stage messages after the PR forked. Kept the new try/except review-fallback structure but routed all three messages through `i18n.t(...)`; added `review_skipped_error` key to en/zh visualize.yaml. Other PR changes applied as-is: * `executors.py` / `cloud_provider.py`: inline Gemini 2.5/3.x default-down * `loader.py`: section_map entry for `visualize` * `init.py`: `capabilities.visualize` default with max_tokens=16384 * `code_generator_agent.py`: defensive root-tag trim for svg/html Closes #489. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>