Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Change the console default page to /ai/route in ai-gateway #130

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading