Skip to content

Commit b45abfc

Browse files
committed
docs: add comprehensive model pattern configuration help
Added detailed documentation for model pattern configurations in the --help output, including: **Format Documentation:** Documented all 6 supported input formats with examples: 1. Wildcard prefix: `qwen-*` (matches qwen-max, qwen-plus, etc.) 2. Exact model name: `gpt-4-turbo` (matches only this model) 3. Multiple wildcards: `moonshot-*,kimi-*` (matches multiple series) 4. Multiple exact names: `gpt-4-turbo,gpt-4o,gpt-4o-mini` 5. Mixed patterns: `claude-3-5-sonnet-*,claude-opus-4-20250514` 6. Match all: `*` (catch-all provider) Each format includes: - Clear example usage - What it matches - When to use it **Available Options:** Listed all 30+ --xxx-models parameters with provider names: - --dashscope-models, --deepseek-models, --moonshot-models - --zhipuai-models, --minimax-models, --azure-models - --openai-models, --openrouter-models, --yi-models - ... and all other providers **Practical Examples:** Added real-world usage examples: 1. Route specific models to specific providers: ```bash ./get-ai-gateway.sh start --non-interactive \ --openai-key sk-xxx --openai-models "gpt-4-*" \ --deepseek-key sk-xxx --deepseek-models "deepseek-*" \ --claude-key sk-xxx --claude-models "claude-3-5-sonnet-*" ``` 2. Multi-provider setup with exact model names: ```bash ./get-ai-gateway.sh start --non-interactive \ --openai-key sk-xxx --openai-models "gpt-4-turbo,gpt-4o" \ --claude-key sk-xxx --claude-models "claude-opus-4-20250514" ``` 3. Use OpenRouter as catch-all: ```bash ./get-ai-gateway.sh start --non-interactive \ --openai-key sk-xxx --openai-models "gpt-4-*" \ --openrouter-key sk-xxx --openrouter-models "*" ``` Users can now run `./get-ai-gateway.sh -h` to get comprehensive guidance on model pattern configuration!
1 parent 4f08dff commit b45abfc

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

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

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,66 @@ LLM Provider API Keys:
14971497
--togetherai-key KEY Together AI API key
14981498
--grok-key KEY Grok API key
14991499
1500+
Model Pattern Configurations:
1501+
Configure which models each provider should handle. Supports flexible formats:
1502+
1503+
Format 1: Wildcard prefix model-*
1504+
Example: --dashscope-models "qwen-*"
1505+
Matches: qwen-max, qwen-plus, qwen-turbo, etc.
1506+
1507+
Format 2: Exact model name model-name
1508+
Example: --openai-models "gpt-4-turbo"
1509+
Matches: only gpt-4-turbo
1510+
1511+
Format 3: Multiple wildcards model1-*,model2-*
1512+
Example: --moonshot-models "moonshot-*,kimi-*"
1513+
Matches: moonshot-v1, kimi-2.5, etc.
1514+
1515+
Format 4: Multiple exact names model1,model2,model3
1516+
Example: --openai-models "gpt-4-turbo,gpt-4o,gpt-4o-mini"
1517+
Matches: only these three models
1518+
1519+
Format 5: Mixed patterns model-*,exact-name
1520+
Example: --claude-models "claude-3-5-sonnet-*,claude-opus-4-20250514"
1521+
Matches: claude-3-5-sonnet series + exact opus version
1522+
1523+
Format 6: Match all *
1524+
Example: --openrouter-models "*"
1525+
Matches: all models (catch-all provider)
1526+
1527+
Available model pattern options:
1528+
--dashscope-models PATTERN Model pattern for Aliyun Dashscope
1529+
--deepseek-models PATTERN Model pattern for DeepSeek
1530+
--moonshot-models PATTERN Model pattern for Moonshot
1531+
--zhipuai-models PATTERN Model pattern for Zhipu AI
1532+
--minimax-models PATTERN Model pattern for Minimax
1533+
--azure-models PATTERN Model pattern for Azure OpenAI
1534+
--bedrock-models PATTERN Model pattern for AWS Bedrock
1535+
--vertex-models PATTERN Model pattern for Google Vertex AI
1536+
--openai-models PATTERN Model pattern for OpenAI
1537+
--openrouter-models PATTERN Model pattern for OpenRouter
1538+
--yi-models PATTERN Model pattern for 01.AI (Yi)
1539+
--ai360-models PATTERN Model pattern for 360 Zhinao
1540+
--baichuan-models PATTERN Model pattern for Baichuan AI
1541+
--baidu-models PATTERN Model pattern for Baidu AI Cloud
1542+
--claude-models PATTERN Model pattern for Claude
1543+
--cloudflare-models PATTERN Model pattern for Cloudflare Workers AI
1544+
--cohere-models PATTERN Model pattern for Cohere
1545+
--deepl-models PATTERN Model pattern for DeepL
1546+
--dify-models PATTERN Model pattern for Dify
1547+
--doubao-models PATTERN Model pattern for Doubao
1548+
--fireworks-models PATTERN Model pattern for Fireworks AI
1549+
--github-models PATTERN Model pattern for GitHub Models
1550+
--gemini-models PATTERN Model pattern for Google Gemini
1551+
--grok-models PATTERN Model pattern for Grok
1552+
--groq-models PATTERN Model pattern for Groq
1553+
--mistral-models PATTERN Model pattern for Mistral AI
1554+
--ollama-models PATTERN Model pattern for Ollama
1555+
--spark-models PATTERN Model pattern for iFlyTek Spark
1556+
--stepfun-models PATTERN Model pattern for Stepfun
1557+
--hunyuan-models PATTERN Model pattern for Tencent Hunyuan
1558+
--togetherai-models PATTERN Model pattern for Together AI
1559+
15001560
Examples:
15011561
# Interactive wizard mode
15021562
./get-ai-gateway.sh
@@ -1507,6 +1567,22 @@ Examples:
15071567
--openai-key sk-xxx \\
15081568
--http-port 8080
15091569
1570+
# Configure with model patterns (route specific models to specific providers)
1571+
./get-ai-gateway.sh start --non-interactive \\
1572+
--openai-key sk-xxx --openai-models "gpt-4-*" \\
1573+
--deepseek-key sk-xxx --deepseek-models "deepseek-*" \\
1574+
--claude-key sk-xxx --claude-models "claude-3-5-sonnet-*"
1575+
1576+
# Multi-provider setup with exact model names
1577+
./get-ai-gateway.sh start --non-interactive \\
1578+
--openai-key sk-xxx --openai-models "gpt-4-turbo,gpt-4o" \\
1579+
--claude-key sk-xxx --claude-models "claude-opus-4-20250514"
1580+
1581+
# Use OpenRouter as catch-all for other models
1582+
./get-ai-gateway.sh start --non-interactive \\
1583+
--openai-key sk-xxx --openai-models "gpt-4-*" \\
1584+
--openrouter-key sk-xxx --openrouter-models "*"
1585+
15101586
# Enable auto-routing
15111587
./get-ai-gateway.sh start --non-interactive \\
15121588
--dashscope-key sk-xxx \\

0 commit comments

Comments
 (0)