Skip to content

Commit f6588f3

Browse files
committed
fix: support lowercase model names for GLM and Minimax providers
- Add glm-* pattern to ZHIPUAI_MODELS (case-insensitive) - Add minimax-* pattern to MINIMAX_MODELS (case-insensitive) - Users can now use both GLM-4 and glm-4 style model names - Aligns with mixed naming conventions from different API endpoints
1 parent 1a264e7 commit f6588f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ resetEnv() {
583583
: "${DASHSCOPE_MODELS:=qwen-*}"
584584
: "${DEEPSEEK_MODELS:=deepseek-*}"
585585
: "${MOONSHOT_MODELS:=moonshot-*,kimi-*}"
586-
: "${ZHIPUAI_MODELS:=GLM-*}"
587-
: "${MINIMAX_MODELS:=abab-*,MiniMax-*}"
586+
: "${ZHIPUAI_MODELS:=GLM-*,glm-*}"
587+
: "${MINIMAX_MODELS:=abab-*,MiniMax-*,minimax-*}"
588588
: "${AZURE_MODELS:=gpt-*,o1-*,o3-*}"
589589
: "${BEDROCK_MODELS:=*}"
590590
: "${VERTEX_MODELS:=gemini-*}"

0 commit comments

Comments
 (0)