oh-pi 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-pi",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "One-click setup for pi-coding-agent. Like oh-my-zsh for pi.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -73,7 +73,7 @@ export function resolveModelForCaste(
73
73
  }
74
74
  // Fallback:按 cost 排序
75
75
  const sorted = [...available].sort((a, b) => (a.cost?.input ?? 0) - (b.cost?.input ?? 0));
76
- if (tier === "fast") return sorted[0].id;
76
+ if (tier === "fast") return currentModel ?? sorted[0].id;
77
77
  return currentModel ?? sorted[sorted.length - 1].id;
78
78
  }
79
79