From 0d9354da16a9aaab030e7a77ac152585ebb08c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Thu, 12 Feb 2026 19:52:51 +0800 Subject: [PATCH] fix(skill): correct model reference prefix for higress provider (#3485) --- .../scripts/plugin/index.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.claude/skills/higress-openclaw-integration/scripts/plugin/index.ts b/.claude/skills/higress-openclaw-integration/scripts/plugin/index.ts index 513261ed9..2dd796727 100644 --- a/.claude/skills/higress-openclaw-integration/scripts/plugin/index.ts +++ b/.claude/skills/higress-openclaw-integration/scripts/plugin/index.ts @@ -204,13 +204,11 @@ const higressPlugin = { const modelIds = parseModelIds(modelInput); const hasAutoModel = modelIds.includes("higress/auto"); - // FIX: Avoid double prefix - if modelId already starts with provider, don't add prefix again + // Always add higress/ provider prefix to create model reference const defaultModelId = hasAutoModel ? "higress/auto" : (modelIds[0] ?? "glm-5"); - const defaultModelRef = defaultModelId.startsWith("higress/") - ? defaultModelId - : `higress/${defaultModelId}`; + const defaultModelRef = `higress/${defaultModelId}`; // Step 7: Configure default model for auto-routing let autoRoutingDefaultModel = "glm-5"; @@ -250,10 +248,8 @@ const higressPlugin = { defaults: { models: Object.fromEntries( modelIds.map((modelId) => { - // FIX: Avoid double prefix - only add provider prefix if not already present - const modelRef = modelId.startsWith("higress/") - ? modelId - : `higress/${modelId}`; + // Always add higress/ provider prefix to create model reference + const modelRef = `higress/${modelId}`; return [modelRef, {}]; }), ),