feat: add thinking levels per routing tag - economy-code=low, precision-devops=medium, precision-code-high=high, precision-react=high
This commit is contained in:
@@ -22,6 +22,15 @@ const MODELS: Record<string, { provider: string; id: string }> = {
|
||||
"context-heavy": { provider: "openrouter", id: "moonshotai/kimi-k2.6" },
|
||||
};
|
||||
|
||||
// Thinking level mappings for routing (per tag complexity)
|
||||
// Keys not listed keep the current default thinking level.
|
||||
const THINKING: Record<string, string> = {
|
||||
"economy-code": "low",
|
||||
"precision-devops": "medium",
|
||||
"precision-code-high":"high",
|
||||
"precision-react": "high",
|
||||
};
|
||||
|
||||
function getModel(ctx: ExtensionContext, key: string): any {
|
||||
const mapping = MODELS[key];
|
||||
if (!mapping) return undefined;
|
||||
@@ -178,6 +187,12 @@ export default function (pi: ExtensionAPI) {
|
||||
pi.setModel(model);
|
||||
}
|
||||
|
||||
// Set thinking level based on task complexity
|
||||
const thinkingLevel = THINKING[modelKey];
|
||||
if (thinkingLevel) {
|
||||
pi.setThinkingLevel(thinkingLevel as any);
|
||||
}
|
||||
|
||||
// Show routing decision in status bar
|
||||
ctx.ui.setStatus("router", `🎯 ${tag} → ${modelLabel(modelKey)}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user