feat: add Ling support with system prompt and inference params#9139
Merged
5 commits merged intoKilo-Org:mainfrom Apr 21, 2026
Merged
feat: add Ling support with system prompt and inference params#91395 commits merged intoKilo-Org:mainfrom
5 commits merged intoKilo-Org:mainfrom
Conversation
Contributor
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
Other Observations (not in diff)Issues found in unchanged code that cannot receive inline comments:
Files Reviewed (5 files)
Reviewed by gpt-5.4-2026-03-05 · 752,768 tokens |
Contributor
8ac2231
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.
Context
Add support for the "Ling" model. Similar to existing Chinese LLMs like Kimi, Qwen, and MiniMax, the Ling model requires a dedicated system prompt and tuned inference parameters for better code generation performance.
Implementation
Changes span four areas:
New dedicated system prompt
Added packages/opencode/src/session/prompt/ling.txt, based on the standard Kilo system prompt with full tool usage guidelines, code style requirements, and task execution
policies.
System prompt routing
In session/system.ts:
In provider/transform.ts, three parameters are configured for ling models:
Screenshots
How to Test
Get in Touch
email: sha7tang@gmail.com