feat: add /var/log/proxy mount and CLI parameters for non-interactive mode#229
Merged
johnlanni merged 2 commits intoFeb 1, 2026
Merged
Conversation
… 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
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
|
CodeReview流程已终止 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mount /var/log/proxy from container to $DATA_FOLDER/logs on host
Add comprehensive CLI parameters for non-interactive configuration:
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