Skip to content

Commit

Permalink
feat: Change the console default page to /ai/route in ai-gateway (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jan 20, 2025
1 parent 4ad5fc8 commit cba23a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions all-in-one/config/configmaps/higress-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
data:
mode: standalone
system.initialized: "false"
index.redirect-target: ~
kind: ConfigMap
metadata:
labels:
Expand Down
5 changes: 5 additions & 0 deletions all-in-one/scripts/config-template/ai-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function initializeLlmProviderConfig() {
function initializeSharedConfigs() {
initializeWasmPlugins
initializeMcpBridge
initializeConsole
}

function initializeWasmPlugins() {
Expand Down Expand Up @@ -260,6 +261,10 @@ function initializeMcpBridge() {
cd -
}

function initializeConsole() {
sed -i -E 's|index.redirect-target:.*$|index.redirect-target: /ai/route|' /data/configmaps/higress-console.yaml
}

function appendAiRegistry() {
local PROVIDER_NAME="$1"
local DOMAIN="$2"
Expand Down

0 comments on commit cba23a9

Please sign in to comment.