Skip to content

Conversation

@martinffx
Copy link
Owner

Add support for Qwen models with dual tool calling formats:

  • Standard OpenAI tool_calls array (vLLM/OpenRouter)
  • Qwen-Agent function_call object format

Extract Qwen parsing logic into dedicated qwen.go file to improve
maintainability and prepare for additional provider-specific parsers.

Changes:

  • New qwen.go with parseQwenToolCall supporting both formats
  • New qwen_test.go with 8 comprehensive test cases
  • Update processStreamDelta to use typed ToolCall structs
  • Add 3 streaming integration tests for Qwen formats
  • Clean up providers_test.go by removing Qwen tests

All tests passing (100% backward compatible).

🤖 Generated with Claude Code

Add support for Qwen models with dual tool calling formats:
- Standard OpenAI tool_calls array (vLLM/OpenRouter)
- Qwen-Agent function_call object format

Extract Qwen parsing logic into dedicated qwen.go file to improve
maintainability and prepare for additional provider-specific parsers.

Changes:
- New qwen.go with parseQwenToolCall supporting both formats
- New qwen_test.go with 8 comprehensive test cases
- Update processStreamDelta to use typed ToolCall structs
- Add 3 streaming integration tests for Qwen formats
- Clean up providers_test.go by removing Qwen tests

All tests passing (100% backward compatible).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@martinffx martinffx changed the base branch from main to feat/toolcalling October 5, 2025 12:43
@martinffx martinffx merged commit 6a6f796 into feat/toolcalling Oct 5, 2025
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