Configuration
To use Moonshot AI models, you need to:- Get an API key from Moonshot AI Platform
- Add the following configuration:
config.yaml
Available Models
Moonshot AI currently provides the following models:moonshot-v1-8k
: Base model with 8K context windowmoonshot-v1-32k
: Base model with 32K context windowmoonshot-v1-128k
: Base model with 128K context window
Configuration Options
Option | Description | Default |
---|---|---|
apiKey | Moonshot API key | Required |
apiBase | API base URL | https://api.moonshot.cn/v1/ |
model | Model name to use | moonshot-v1-8k |
Example
Here’s a complete configuration example:config.yaml