Browse Source

feat: add GLM-4.6 and KAT-Coder Pro to free models list (#8128)

- Add Zhipu AI's GLM-4.6 agentic coding model as a free option
- Add KwaiKAT's KAT-Coder Pro model as a free option
- Update filter to preserve kat-coder-pro in Cline provider model list
Ara 3 weeks ago
parent
commit
4903dfcb6e

+ 10 - 0
webview-ui/src/components/settings/OpenRouterModelPicker.tsx

@@ -80,6 +80,16 @@ export const freeModels = [
 		description: "Open source model with solid performance",
 		label: "FREE",
 	},
+	{
+		id: "zai/glm-4.6",
+		description: "Zhipu AI's latest agentic coding model in GLM series",
+		label: "FREE",
+	},
+	{
+		id: "kwaipilot/kat-coder-pro:free",
+		description: "KwaiKAT's most advanced agentic coding model in the KAT-Coder series",
+		label: "FREE",
+	},
 	{
 		id: "mistralai/devstral-2512:free",
 		description: "Mistral's latest model with strong coding abilities",

+ 5 - 1
webview-ui/src/components/settings/utils/providerUtils.ts

@@ -805,7 +805,11 @@ export function filterOpenRouterModelIds(modelIds: string[], provider: ApiProvid
 		// For Cline provider: exclude :free models, but keep Minimax models
 		return modelIds.filter((id) => {
 			// Keep all Minimax and devstral models regardless of :free suffix
-			if (id.toLowerCase().includes("minimax-m2") || id.toLowerCase().includes("devstral-2512")) {
+			if (
+				id.toLowerCase().includes("minimax-m2") ||
+				id.toLowerCase().includes("devstral-2512") ||
+				id.toLowerCase().includes("kat-coder-pro")
+			) {
 				return true
 			}
 			// Filter out other :free models