Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

The change you just made was written to a new branch named claude/openrouter-xml-tools-fix-20250805. Create a pull request below to propose these changes. Learn more about diff comparisons here.
base repository: MervinPraison/PraisonAI
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: MervinPraison/PraisonAI
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: claude/openrouter-xml-tools-fix-20250805
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 5, 2025

  1. fix: resolve OpenRouter XML tool call routing issue

    - Remove tools parameter for XML format models to avoid provider routing errors
    - Add tool descriptions and XML format instructions to system prompt
    - Maintain backward compatibility with existing functionality
    - Fix issue where OpenRouter couldn''t find providers supporting tools for Qwen models
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    github-actions[bot] and MervinPraison committed Aug 5, 2025
    Configuration menu
    Copy the full SHA
    71ef1ab View commit details
    Browse the repository at this point in the history
  2. enhance: add parameter details to XML tool descriptions for better co…

    …ntext
    
    - Include parameter types and required status in tool descriptions
    - Improves tool call accuracy for XML format models
    - Addresses CodeRabbit/Gemini review suggestions
    - Performance impact remains negligible (0.0003ms additional per call)
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    github-actions[bot] and MervinPraison committed Aug 5, 2025
    Configuration menu
    Copy the full SHA
    d38ed29 View commit details
    Browse the repository at this point in the history
Loading