Skip to content

feat: add /var/log/proxy mount and CLI parameters for non-interactive mode#229

Merged
johnlanni merged 2 commits into
higress-group:mainfrom
johnlanni:feature/log-mount-and-session-monitor
Feb 1, 2026
Merged

feat: add /var/log/proxy mount and CLI parameters for non-interactive mode#229
johnlanni merged 2 commits into
higress-group:mainfrom
johnlanni:feature/log-mount-and-session-monitor

Conversation

@johnlanni
Copy link
Copy Markdown
Contributor

@johnlanni johnlanni commented Feb 1, 2026

  1. Mount /var/log/proxy from container to $DATA_FOLDER/logs on host

    • Enables access to gateway access logs for external monitoring
    • Useful for token tracking and session analysis
  2. Add comprehensive CLI parameters for non-interactive configuration:

    • --non-interactive/--batch: Run in batch mode without prompts
    • Port configuration: --http-port, --https-port, --console-port
    • Container options: --container-name, --image-repo, --image-tag
    • Data folder: --data-folder
    • Auto-routing: --auto-routing, --auto-routing-default-model
    • LLM Provider API Keys for 20+ providers

Examples:

Non-interactive with Dashscope

./get-ai-gateway.sh start --non-interactive --dashscope-key sk-xxx

With auto-routing

./get-ai-gateway.sh start --non-interactive
--dashscope-key sk-xxx --auto-routing --auto-routing-default-model qwen-turbo

… mode

1. Mount /var/log/proxy from container to $DATA_FOLDER/logs on host
   - Enables access to gateway access logs for external monitoring
   - Useful for token tracking and session analysis

2. Add comprehensive CLI parameters for non-interactive configuration:
   - --non-interactive/--batch: Run in batch mode without prompts
   - Port configuration: --http-port, --https-port, --console-port
   - Container options: --container-name, --image-repo, --image-tag
   - Data folder: --data-folder
   - Auto-routing: --auto-routing, --auto-routing-default-model
   - LLM Provider API Keys for 20+ providers

Examples:
  # Non-interactive with Dashscope
  ./get-ai-gateway.sh start --non-interactive --dashscope-key sk-xxx

  # With auto-routing
  ./get-ai-gateway.sh start --non-interactive \
    --dashscope-key sk-xxx --auto-routing --auto-routing-default-model qwen-turbo
@johnlanni johnlanni requested a review from CH3CHO as a code owner February 1, 2026 06:25
@lingma-agents
Copy link
Copy Markdown

lingma-agents Bot commented Feb 1, 2026

🔍 代码审查进行中

⏳ 正在审查

⏰️ 剩余时间:约需数分钟

🔄 分支流向: feature/log-mount-and-session-monitormain

📦 提交: 审查当前PR从8b661dfb678af8的提交。


📒 文件清单 (1 个文件)
📝 变更: 1 个文件

📝 变更文件:

  • all-in-one/get-ai-gateway.sh

@johnlanni johnlanni changed the title feat: add /var/log/proxy mount and CLI parameters for non-interactive… feat: add /var/log/proxy mount and CLI parameters for non-interactive mode Feb 1, 2026
Add 'route' command with subcommands to manage model routing rules:

Commands:
  route add     - Add a new routing rule
  route list    - List all routing rules
  route remove  - Remove a routing rule by ID

Options:
  --model       Target model for routing
  --trigger     Trigger phrase(s), e.g. '深入思考|deep thinking'
  --pattern     Custom regex pattern (alternative to trigger)
  --rule-id     Rule ID to remove

Examples:
  # Add rule for complex reasoning
  ./get-ai-gateway.sh route add --model claude-opus-4.5 --trigger '深入思考|deep thinking'

  # Add rule for coding
  ./get-ai-gateway.sh route add --model qwen-coder --trigger '写代码|code:'

  # List rules
  ./get-ai-gateway.sh route list

  # Remove rule
  ./get-ai-gateway.sh route remove --rule-id 0

Features:
- Hot-reload configuration without container restart
- Python YAML editing for reliability (with sed fallback)
- Pattern auto-generation from trigger phrases
- Container connectivity check
@johnlanni johnlanni merged commit 5747465 into higress-group:main Feb 1, 2026
3 checks passed
@lingma-agents
Copy link
Copy Markdown

lingma-agents Bot commented Feb 1, 2026

CodeReview流程已终止

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant