Skip to content

feat(routing): add local model routing strategies#3451

Draft
vvv214 wants to merge 1 commit intoagentscope-ai:mainfrom
vvv214:codex/qwenpaw-routing-strategy
Draft

feat(routing): add local model routing strategies#3451
vvv214 wants to merge 1 commit intoagentscope-ai:mainfrom
vvv214:codex/qwenpaw-routing-strategy

Conversation

@vvv214
Copy link
Copy Markdown
Contributor

@vvv214 vvv214 commented Apr 15, 2026

Summary

  • wire llm_routing into the current QwenPaw runtime path
  • add deterministic local/cloud routing for structured output, non-text user content, required tools, and recent tool context
  • make multimodal prompt/message handling routing-aware so media is preserved for cloud-bound requests

Validation

  • python3 -m compileall src/qwenpaw/agents/model_factory.py src/qwenpaw/agents/routing_chat_model.py src/qwenpaw/agents/prompt.py

Split out from #3443 so routing/runtime changes can be reviewed separately from the Settings UI.

@github-actions
Copy link
Copy Markdown

Welcome to QwenPaw! 🐾

Hi @vvv214, this is your 6th Pull Request.

📋 About PR Template

To help maintainers review your PR faster, please make sure to include:

  • Description - What this PR does and why
  • Type of Change - Bug fix / Feature / Breaking change / Documentation / Refactoring
  • Component(s) Affected - Core / Console / Channels / Skills / CLI / Documentation / Tests / CI/CD / Scripts
  • Checklist:
    • Run and pass pre-commit run --all-files
    • Run and pass relevant tests (pytest or as applicable)
    • Update documentation if needed
  • Testing - How to test these changes
  • Local Verification Evidence:
    pre-commit run --all-files
    # paste summary result
    
    pytest
    # paste summary result

Complete PR information helps speed up the review process. You can edit the PR description to add these details.

🙌 Join Developer Community

Thanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page:
https://qwenpaw.agentscope.io/docs/community

We truly appreciate your enthusiasm—and look forward to your future contributions! 😊

We'll review your PR soon.


Tip

⭐ If you find QwenPaw useful, please give us a Star!

Star QwenPaw

Staying ahead

Star QwenPaw on GitHub and be instantly notified of new releases.

Your star helps more developers discover this project! 🐾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant