Skip to content

Dev - #1

Closed
LarFii wants to merge 4 commits into
mainfrom
dev
Closed

Dev#1
LarFii wants to merge 4 commits into
mainfrom
dev

Conversation

@LarFii

@LarFii LarFii commented May 14, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@LarFii LarFii closed this May 14, 2025
ZhangZhenhaoUPM added a commit to ZhangZhenhaoUPM/DeepCode that referenced this pull request Nov 9, 2025
Problem:
- _call_llm_with_tools was called every iteration (up to 800 times)
- Each call logged full routing info using WARNING level
- Caused massive log spam with identical messages
- Model switches were being logged even when no switch occurred

Solution:
1. Track last logged state (_last_logged_task_type, _last_logged_model)
2. Only log when task type or model actually changes
3. Count and report total model switches at completion
4. Move detailed routing config to workflow start (log once)
5. Change from WARNING to INFO level (less noise)
6. Remove duplicate logs from _select_model_for_task

Benefits:
- Clean logs: Only see changes, not repetition
- Performance: Less I/O overhead
- Visibility: Model switch count shows optimization effectiveness
- Debugging: Still see all important state transitions

Example output (before):
  🔍 TASK ROUTING CHECK: ... (800 times)
  ✅ Switched model: ... (800 times)

Example output (after):
  🔄 Task routing configuration: ... (once at start)
  🔄 Task routing: code_generation → qwen3-coder:30b (only on change)
  ✅ Model switch HKUDS#1: qwen3:32b → qwen3-coder:30b (only on actual switch)
  📊 Total model switches during implementation: 15 (at end)
birhantprkc pushed a commit to birhantprkc/DeepCode that referenced this pull request Aug 6, 2026
The badge already in both READMEs renders as "GITHUB TRENDING · HKUDS#1 Repository
Of The Day". Trendshift also publishes a second, differently-labelled badge —
"TRENDSHIFT · HKUDS#1 Repository Of The Day · Python" — and only the first was
here.

Both endpoints verified reachable before adding. The existing link also picks
up the utm parameters Trendshift uses for attribution, and both gain
rel="noopener noreferrer" alongside target="_blank". The redundant inline
style is dropped: the width and height attributes already carry it, and
GitHub strips style anyway.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants