Spaces:
Sleeping
Sleeping
Somrat Sorkar commited on
Commit ·
4987deb
1
Parent(s): 29d6958
Add support for multiple LLM providers (Zhipu, Moonshot, MiniMax, Mistral, Cohere, Groq, etc.)
Browse filesFiles changed (3)
- .env.example+29-1
- README.md+57-1
- start.sh+12
11 unmodified lines121314151617189 unmodified lines28293031323311 unmodified linesLLM_API_KEY=your_api_key_here# [REQUIRED] LLM model to use (format: provider/model-name)# Auto-detects provider from prefix (google/, openai/, anthropic/)## Anthropic Claude:# - anthropic/claude-opus-4-69 unmodified lines# - google/gemini-2.5-flash# - google/gemini-2.0-flash# - google/gemini-1.5-proLLM_MODEL=anthropic/claude-sonnet-4-5# [REQUIRED] Gateway authentication token11 unmodified lines121314151617189 unmodified lines2829303132333435363738394041424344454647484950515253545556575859606111 unmodified linesLLM_API_KEY=your_api_key_here# [REQUIRED] LLM model to use (format: provider/model-name)# Auto-detects provider from prefix — any provider is supported!## Anthropic Claude:# - anthropic/claude-opus-4-69 unmodified lines# - google/gemini-2.5-flash# - google/gemini-2.0-flash# - google/gemini-1.5-pro## Zhipu (ChatGLM) / ZAI:# - zhipu/glm-4-plus# - zhipu/glm-4# - zai/glm-4 (alias)## Moonshot (Kimi):# - moonshot/moonshot-v1-128k# - moonshot/moonshot-v1-32k## MiniMax:# - minimax/minimax-01# - minimax/minimax-text-01## Mistral:# - mistral/mistral-large# - mistral/mistral-medium# - mistral/mistral-small## Cohere:# - cohere/command-r# - cohere/command-r-plus## Groq:# - groq/mixtral-8x7b-32768# - groq/llama2-70b-4096## Or any other provider supported by OpenClaw (format: provider/model-name)LLM_MODEL=anthropic/claude-sonnet-4-5# [REQUIRED] Gateway authentication token
117 unmodified lines11811912012112212312416 unmodified lines141142143144145146117 unmodified lines## 🤖 LLM Provider SetupJust set `LLM_MODEL` with the correct provider prefix — the provider is auto-detected!### Anthropic (Claude)```16 unmodified lines```Models: `google/gemini-2.5-flash` · `google/gemini-2.0-flash` · `google/gemini-1.5-pro`---## 📱 Telegram Setup117 unmodified lines11811912012112212312416 unmodified lines141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202117 unmodified lines## 🤖 LLM Provider SetupJust set `LLM_MODEL` with the correct provider prefix — **any provider is supported**! The provider is auto-detected from the model name.### Anthropic (Claude)```16 unmodified lines```Models: `google/gemini-2.5-flash` · `google/gemini-2.0-flash` · `google/gemini-1.5-pro`### Zhipu (ChatGLM) / ZAI```LLM_API_KEY=your_zhipu_api_keyLLM_MODEL=zhipu/glm-4-plus```Models: `zhipu/glm-4-plus` · `zhipu/glm-4` · `zai/glm-4` (alias)Get key from: [Zhipu Platform](https://open.bigmodel.cn)### Moonshot (Kimi)```LLM_API_KEY=sk-...LLM_MODEL=moonshot/moonshot-v1-128k```Models: `moonshot/moonshot-v1-128k` · `moonshot/moonshot-v1-32k`Get key from: [Moonshot API](https://platform.moonshot.cn)### MiniMax```LLM_API_KEY=your_minimax_api_keyLLM_MODEL=minimax/minimax-01```Models: `minimax/minimax-01` · `minimax/minimax-text-01`Get key from: [MiniMax Platform](https://api.minimaxi.com)### Mistral```LLM_API_KEY=your_mistral_api_keyLLM_MODEL=mistral/mistral-large```Models: `mistral/mistral-large` · `mistral/mistral-medium` · `mistral/mistral-small`Get key from: [Mistral Console](https://console.mistral.ai)### Cohere```LLM_API_KEY=your_cohere_api_keyLLM_MODEL=cohere/command-r```Models: `cohere/command-r` · `cohere/command-r-plus`Get key from: [Cohere Dashboard](https://dashboard.cohere.com)### Groq```LLM_API_KEY=your_groq_api_keyLLM_MODEL=groq/mixtral-8x7b-32768```Models: `groq/mixtral-8x7b-32768` · `groq/llama2-70b-4096`Get key from: [Groq Console](https://console.groq.com)### Any Other ProviderHuggingClaw supports **any LLM provider** that OpenClaw supports. Just use:```LLM_API_KEY=your_api_keyLLM_MODEL=provider/model-name```The provider prefix is auto-detected and mapped to the appropriate environment variable.---## 📱 Telegram Setup
43 unmodified lines44454647484943 unmodified linesexport GOOGLE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "openai/"* ]]; thenexport OPENAI_API_KEY="$LLM_API_KEY"else# Default to Anthropic for claude/* or anthropic/* modelsexport ANTHROPIC_API_KEY="$LLM_API_KEY"43 unmodified lines44454647484950515253545556575859606143 unmodified linesexport GOOGLE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "openai/"* ]]; thenexport OPENAI_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "zhipu/"* ]] || [[ "$LLM_MODEL" == "zai/"* ]]; thenexport ZHIPU_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "moonshot/"* ]]; thenexport MOONSHOT_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "minimax/"* ]]; thenexport MINIMAX_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "mistral/"* ]]; thenexport MISTRAL_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "cohere/"* ]]; thenexport COHERE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "groq/"* ]]; thenexport GROQ_API_KEY="$LLM_API_KEY"else# Default to Anthropic for claude/* or anthropic/* modelsexport ANTHROPIC_API_KEY="$LLM_API_KEY"
.env.example+29-1
README.md+57-1
start.sh+12