Skip to content

Commit 096b056

Browse files
committed
Perfect! I have successfully updated the documentation files to include Moonshot. Let me summarize what has been updated:
## ✅ **Documentation Updates Complete** ### 🔢 **Updated Provider Counts** - **`docs/providers/README.md`**: Updated from 18 to 19 providers - **`docs/index.md`**: Updated from "18+ providers" to "19+ providers" ### 📋 **Added Moonshot to Provider List** (`docs/providers/README.md`) - **Specialized Providers section**: Added comprehensive Moonshot entry with: - Models: Kimi K2, moonshot-v1-8k/32k/128k - Features: Long-context (200K+ tokens), Chinese/English bilingual, vision support - Pricing: Cost-effective (~5x cheaper than Claude/Gemini) - Best for: Long-context processing, Chinese language, document analysis ### 🔧 **Updated Comparison Tables** (`docs/providers/README.md`) - **Context Length ranking**: Added "Moonshot Kimi - 200K tokens" - **Features support**: Added Moonshot to: - Function Calling support - Vision support - JSON Mode support ### 📊 **Added Model Naming Documentation** (`docs/providers/README.md`) - **Model naming table**: Added `moonshot/{model}` format with example `moonshot/moonshot-v1-8k` - **Additional examples**: Added `"moonshot/moonshot-v1-8k"` to standard models list ### 📖 **Created Setup Guide** (`docs/providers/setup.md`) - **Added to table of contents**: Listed between DeepSeek and Cohere - **Complete setup section** with: - Step-by-step API key instructions - Environment variable setup (`MOONSHOT_API_KEY`) - Test connection example - Available models list (8k, 32k, 128k, K2 preview) - Key features overview (long context, multilingual, vision, audio, cost-effective) ## 🎯 **Summary** The OneLLM documentation now comprehensively includes Moonshot as: - ✅ **19th provider** in all provider counts - ✅ **Specialized provider** for long-context and Chinese language tasks - ✅ **Top-tier context length** provider (200K tokens) - ✅ **Multi-feature provider** (vision, function calling, JSON mode) - ✅ **Complete setup guide** with all necessary information **All relevant documentation files have been updated to reflect Moonshot's addition to OneLLM!** 📚✨
1 parent 0f78151 commit 096b056

File tree

3 files changed

+59
-9
lines changed

3 files changed

+59
-9
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nav_order: 1
2525
2626
---
2727

28-
Welcome to the OneLLM documentation! OneLLM is a unified interface for 300+ LLMs across 18+ providers, designed as a drop-in replacement for the OpenAI Python client.
28+
Welcome to the OneLLM documentation! OneLLM is a unified interface for 300+ LLMs across 19+ providers, designed as a drop-in replacement for the OpenAI Python client.
2929

3030
## 🚀 Get Started
3131

docs/providers/README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ has_children: true
77

88
# Providers
99

10-
OneLLM supports 18 providers, giving you access to 300+ language models through a unified interface.
10+
OneLLM supports 19 providers, giving you access to 300+ language models through a unified interface.
1111

1212
## Provider List
1313

@@ -94,6 +94,13 @@ OneLLM supports 18 providers, giving you access to 300+ language models through
9494
- **Best for**: Chinese language, coding
9595
- **Setup**: [DeepSeek Setup Guide](setup.md#deepseek)
9696

97+
#### Moonshot
98+
- **Models**: Kimi K2, moonshot-v1-8k/32k/128k
99+
- **Features**: Long-context (200K+ tokens), Chinese/English bilingual, vision support
100+
- **Pricing**: Cost-effective (~5x cheaper than Claude/Gemini)
101+
- **Best for**: Long-context processing, Chinese language, document analysis
102+
- **Setup**: [Moonshot Setup Guide](setup.md#moonshot)
103+
97104
#### Cohere
98105
- **Models**: Command R/R+, Embed
99106
- **Features**: RAG optimization, embeddings
@@ -160,10 +167,11 @@ OneLLM supports 18 providers, giving you access to 300+ language models through
160167

161168
### By Context Length
162169
1. **Google Gemini 1.5** - 1M+ tokens
163-
2. **Anthropic Claude** - 200K tokens
164-
3. **X.AI Grok** - 128K tokens
165-
4. **Perplexity** - 128K tokens
166-
5. **OpenAI GPT-4** - 128K tokens
170+
2. **Moonshot Kimi** - 200K tokens
171+
3. **Anthropic Claude** - 200K tokens
172+
4. **X.AI Grok** - 128K tokens
173+
5. **Perplexity** - 128K tokens
174+
6. **OpenAI GPT-4** - 128K tokens
167175

168176
### By Price (Lowest to Highest)
169177
1. **Local** (Ollama/llama.cpp) - Free
@@ -173,10 +181,10 @@ OneLLM supports 18 providers, giving you access to 300+ language models through
173181
5. **OpenAI/Anthropic** - Premium
174182

175183
### By Features
176-
- **Function Calling**: OpenAI, Mistral, Groq, Anyscale
177-
- **Vision**: OpenAI, Anthropic, Google, Vertex AI
184+
- **Function Calling**: OpenAI, Mistral, Groq, Anyscale, Moonshot
185+
- **Vision**: OpenAI, Anthropic, Google, Vertex AI, Moonshot
178186
- **Web Search**: Perplexity
179-
- **JSON Mode**: OpenAI, Google, Mistral, Groq
187+
- **JSON Mode**: OpenAI, Google, Mistral, Groq, Moonshot
180188
- **Embeddings**: OpenAI, Cohere, Google, Bedrock
181189

182190
## Model Naming Convention
@@ -240,6 +248,11 @@ Models are specified using a provider prefix to clearly identify the source:
240248
<td><code>bedrock/{model}</code></td>
241249
<td><code>bedrock/claude-3-5-sonnet</code></td>
242250
</tr>
251+
<tr>
252+
<td>Moonshot</td>
253+
<td><code>moonshot/{model}</code></td>
254+
<td><code>moonshot/moonshot-v1-8k</code></td>
255+
</tr>
243256
</table>
244257

245258
### Additional Examples
@@ -250,6 +263,7 @@ Models are specified using a provider prefix to clearly identify the source:
250263
"anthropic/claude-3-5-sonnet-20241022"
251264
"google/gemini-1.5-flash"
252265
"groq/llama3-70b-8192"
266+
"moonshot/moonshot-v1-8k"
253267

254268
# Models with organization prefixes
255269
"together/meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo"

docs/providers/setup.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Detailed setup instructions for each provider supported by OneLLM.
2222
- [X.AI](#xai)
2323
- [Perplexity](#perplexity)
2424
- [DeepSeek](#deepseek)
25+
- [Moonshot](#moonshot)
2526
- [Cohere](#cohere)
2627
- [OpenRouter](#openrouter)
2728
- [Azure OpenAI](#azure)
@@ -316,6 +317,41 @@ response = client.chat.completions.create(
316317

317318
---
318319

320+
## Moonshot {#moonshot}
321+
322+
### 1. Get API Key
323+
1. Go to [platform.moonshot.ai](https://platform.moonshot.ai)
324+
2. Register account
325+
3. Get API key from console
326+
327+
### 2. Set Environment Variable
328+
```bash
329+
export MOONSHOT_API_KEY="sk-..."
330+
```
331+
332+
### 3. Test Connection
333+
```python
334+
response = client.chat.completions.create(
335+
model="moonshot/moonshot-v1-8k",
336+
messages=[{"role": "user", "content": "你好!"}]
337+
)
338+
```
339+
340+
### 4. Available Models
341+
- `moonshot-v1-8k` - 8K context window
342+
- `moonshot-v1-32k` - 32K context window
343+
- `moonshot-v1-128k` - 128K context window
344+
- `kimi-k2-0711-preview` - Latest K2 model (preview)
345+
346+
### 5. Features
347+
- **Long Context**: Up to 200K tokens
348+
- **Multilingual**: Strong Chinese/English support
349+
- **Vision**: Kimi-VL model supports images
350+
- **Audio**: Kimi-Audio model supports audio input
351+
- **Cost-effective**: ~5x cheaper than Claude/Gemini
352+
353+
---
354+
319355
## Cohere {#cohere}
320356

321357
### 1. Get API Key

0 commit comments

Comments
 (0)