From 92a6a4e7ec1ebad7dd213dcddda3f38ea74a1600 Mon Sep 17 00:00:00 2001 From: johnlanni Date: Thu, 29 Jan 2026 10:03:14 +0800 Subject: [PATCH 1/3] chore: upgrade AI plugin versions from 1.0.0 to 2.0.0 - ai-proxy: 1.0.0 -> 2.0.0 - ai-statistics: 1.0.0 -> 2.0.0 - model-router: 1.0.0 -> 2.0.0 Updated default versions, metadata labels, and config file names. --- all-in-one/scripts/config-template/ai-gateway.sh | 16 ++++++++-------- all-in-one/scripts/config-template/ai-proxy.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/all-in-one/scripts/config-template/ai-gateway.sh b/all-in-one/scripts/config-template/ai-gateway.sh index 6f62472..7e325d2 100644 --- a/all-in-one/scripts/config-template/ai-gateway.sh +++ b/all-in-one/scripts/config-template/ai-gateway.sh @@ -5,9 +5,9 @@ ROOT=$(pwd) cd - >/dev/null source $ROOT/../base.sh -AI_PROXY_VERSION=${AI_PROXY_VERSION:-1.0.0} -AI_STATISTICS_VERSION=${AI_STATISTICS_VERSION:-1.0.0} -MODEL_ROUTER_VERSION=${MODEL_ROUTER_VERSION:-1.0.0} +AI_PROXY_VERSION=${AI_PROXY_VERSION:-2.0.0} +AI_STATISTICS_VERSION=${AI_STATISTICS_VERSION:-2.0.0} +MODEL_ROUTER_VERSION=${MODEL_ROUTER_VERSION:-2.0.0} declare -a GENERATED_INGRESSES @@ -123,7 +123,7 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: ai-proxy - higress.io/wasm-plugin-version: 1.0.0 + higress.io/wasm-plugin-version: 2.0.0 name: ai-proxy.internal namespace: higress-system resourceVersion: \"1\" @@ -171,8 +171,8 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: ai-statistics - higress.io/wasm-plugin-version: 1.0.0 - name: ai-statistics-1.0.0 + higress.io/wasm-plugin-version: 2.0.0 + name: ai-statistics-2.0.0 namespace: higress-system resourceVersion: \"1\" spec: @@ -181,7 +181,7 @@ spec: matchRules:$AI_STATISTICS_MATCH_RULES phase: UNSPECIFIED_PHASE priority: 900 - url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:$AI_STATISTICS_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-1.0.0.yaml" + url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:$AI_STATISTICS_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-2.0.0.yaml" echo -e "\ apiVersion: extensions.higress.io/v1alpha1 @@ -194,7 +194,7 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: model-router - higress.io/wasm-plugin-version: 1.0.0 + higress.io/wasm-plugin-version: 2.0.0 name: model-router.internal namespace: higress-system resourceVersion: \"1\" diff --git a/all-in-one/scripts/config-template/ai-proxy.sh b/all-in-one/scripts/config-template/ai-proxy.sh index 461c7c5..00ac772 100644 --- a/all-in-one/scripts/config-template/ai-proxy.sh +++ b/all-in-one/scripts/config-template/ai-proxy.sh @@ -5,7 +5,7 @@ ROOT=$(pwd) cd - >/dev/null source $ROOT/../base.sh -AI_PROXY_VERSION=${AI_PROXY_VERSION:-1.0.0} +AI_PROXY_VERSION=${AI_PROXY_VERSION:-2.0.0} if [ -n "$AZURE_OPENAI_SERVICE_URL" ]; then AZURE_OPENAI_SERVICE_DOMAIN=$(echo "$AZURE_OPENAI_SERVICE_URL" | awk -F[/:] '{print $4}') From ceeab406af70970f2c8c3fc71c3791cfbb5e9894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Thu, 29 Jan 2026 11:24:27 +0800 Subject: [PATCH 2/3] Apply suggestions from code review --- all-in-one/scripts/config-template/ai-gateway.sh | 8 ++++---- all-in-one/scripts/config-template/ai-proxy.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/all-in-one/scripts/config-template/ai-gateway.sh b/all-in-one/scripts/config-template/ai-gateway.sh index 7e325d2..64a2dbd 100644 --- a/all-in-one/scripts/config-template/ai-gateway.sh +++ b/all-in-one/scripts/config-template/ai-gateway.sh @@ -171,8 +171,8 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: ai-statistics - higress.io/wasm-plugin-version: 2.0.0 - name: ai-statistics-2.0.0 + higress.io/wasm-plugin-version: 1.0.0 + name: ai-statistics-1.0.0 namespace: higress-system resourceVersion: \"1\" spec: @@ -181,7 +181,7 @@ spec: matchRules:$AI_STATISTICS_MATCH_RULES phase: UNSPECIFIED_PHASE priority: 900 - url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:$AI_STATISTICS_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-2.0.0.yaml" + url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:$AI_STATISTICS_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-1.0.0.yaml" echo -e "\ apiVersion: extensions.higress.io/v1alpha1 @@ -194,7 +194,7 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: model-router - higress.io/wasm-plugin-version: 2.0.0 + higress.io/wasm-plugin-version: 1.0.0 name: model-router.internal namespace: higress-system resourceVersion: \"1\" diff --git a/all-in-one/scripts/config-template/ai-proxy.sh b/all-in-one/scripts/config-template/ai-proxy.sh index 00ac772..85b5437 100644 --- a/all-in-one/scripts/config-template/ai-proxy.sh +++ b/all-in-one/scripts/config-template/ai-proxy.sh @@ -15,7 +15,7 @@ fi function initializeWasmPlugins() { mkdir -p /data/wasmplugins - WASM_PLUGIN_CONFIG_FILE="/data/wasmplugins/ai-proxy-$AI_PROXY_VERSION.yaml" + WASM_PLUGIN_CONFIG_FILE="/data/wasmplugins/ai-proxy-1.0.0.yaml" if [ "$CONSOLE_USED" == 'true' -a -f "$WASM_PLUGIN_CONFIG_FILE" ]; then return @@ -64,8 +64,8 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: custom higress.io/wasm-plugin-name: ai-proxy - higress.io/wasm-plugin-version: $AI_PROXY_VERSION - name: ai-proxy-$AI_PROXY_VERSION + higress.io/wasm-plugin-version: 1.0.0 + name: ai-proxy-1.0.0 namespace: higress-system spec: defaultConfig: {} From b9cc954287818f08647a18d35fb618f98bf5164d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Thu, 29 Jan 2026 11:25:09 +0800 Subject: [PATCH 3/3] Apply suggestion from @johnlanni --- all-in-one/scripts/config-template/ai-gateway.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one/scripts/config-template/ai-gateway.sh b/all-in-one/scripts/config-template/ai-gateway.sh index 64a2dbd..d8cab71 100644 --- a/all-in-one/scripts/config-template/ai-gateway.sh +++ b/all-in-one/scripts/config-template/ai-gateway.sh @@ -123,7 +123,7 @@ metadata: higress.io/wasm-plugin-built-in: \"true\" higress.io/wasm-plugin-category: ai higress.io/wasm-plugin-name: ai-proxy - higress.io/wasm-plugin-version: 2.0.0 + higress.io/wasm-plugin-version: 1.0.0 name: ai-proxy.internal namespace: higress-system resourceVersion: \"1\"