Skip to main content

Moonshot

Moonshot AI provides high-quality large language model services with competitive pricing and excellent performance.

Configuration

To use Moonshot AI models, you need to:

  1. Get an API key from Moonshot AI Platform
  2. Add the following configuration:
Package or config.yaml
models:
- name: Moonshot
provider: moonshot
model: moonshot-v1-8k
apiKey: <YOUR_MOONSHOT_API_KEY>

Available Models

Moonshot AI currently provides the following models:

  • moonshot-v1-8k: Base model with 8K context window
  • moonshot-v1-32k: Base model with 32K context window
  • moonshot-v1-128k: Base model with 128K context window

Configuration Options

OptionDescriptionDefault
apiKeyMoonshot API keyRequired
apiBaseAPI base URLhttps://api.moonshot.cn/v1/
modelModel name to usemoonshot-v1-8k

Example

Here's a complete configuration example:

Package or config.yaml
models:
- name: Moonshot-8K
provider: moonshot
model: moonshot-v1-8k
apiKey: <YOUR_MOONSHOT_API_KEY>
defaultCompletionOptions:
temperature: 0.7
topP: 0.95
maxTokens: 2048