fix(chat): support tool_choice in Qwen3.5-VL chat handler by abdullah-cod9 · Pull Request #108 · JamePeng/llama-cpp-python

Thank you for the explanation!

My use case: I have a set of tools with a button in the UI to enable or disable them via tool_choice. Since the README doesn't mention that tool_choice isn't supported on all models, I assumed it was a bug when it didn't work with Qwen3.5.

I tested the change on Qwen3.5 2B and it worked fine without any noticeable impact on the model's behavior.

That said, I understand your concern about staying close to the original template, especially for smaller models. If you'd prefer to keep the template unchanged, feel free to close the PR — I can implement a higher-level workaround that prevents tools from being injected when tool_choice is set to none, without touching the template itself.