fix: For non-anthropic providers, combine system prompts (allows Qwen 3.5 to work)#15018
Open
paulgear wants to merge 1 commit intoanomalyco:devfrom
Open
fix: For non-anthropic providers, combine system prompts (allows Qwen 3.5 to work)#15018paulgear wants to merge 1 commit intoanomalyco:devfrom
paulgear wants to merge 1 commit intoanomalyco:devfrom
Conversation
Contributor
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
a6fe19c to
902d134
Compare
902d134 to
2e448fd
Compare
Author
|
@thdxr & @rekram1-node Apologies to bother you with direct mentions, but you seem to be the most common contributors to this file. Is there any chance of some eyes on this PR? Qwen3.5 and some other models seem unusable with OpenCode without it. |
This is a fix for issue anomalyco#5034 which works for me using Qwen3.5-35B-A3B.
2e448fd to
84b2622
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an attempted fix for issue #5034 which works for me using Qwen3.5-35B-A3B.
Issue for this PR
(Hopefully) Closes #5034
Type of change
What does this PR do?
When I updated my llama.cpp model from Qwen3-Coder-30B-A3B-Instruct to Qwen3.5-35B-A3B I started receiving the error message noted in my comment on #5034. I asked Sonnet 4.5 to analyse it and it suggested two possible fixes, one which unconditionally combines system prompts, and another which does it only for providers other than Anthropic. I chose the latter. I can provide the prompting artifacts if that's desirable.
How did you verify your code works?
Screenshots / recordings
n/a
Checklist