[BUG] Claude Code encountered an error connecting to a local large model qwen3.5_27b, indicating a context limit violation.
Resolved 💬 2 comments Opened Apr 14, 2026 by lileieli Closed May 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using Claude Code 2.1.97 to connect to a local large model qwen3.5_27b, the following error occurred:
<img width="1023" height="767" alt="Image" src="https://github.com/user-attachments/assets/abdb0681-834b-4765-8746-7c1ed86ac9e5" />
I changed max_tokens but I still get this error, it always says that more than one token is allowed.
What Should Happen?
The system is expected to connect to a large local model and run normally after setting max_tokens.
Error Messages/Logs
Steps to Reproduce
- Open PowerShell on your Windows system,using node v24.14.1
- Execute Claude and type the test message "hi".
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.97
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗