Setup
You’ll need to sign up for an Moonshot API key and set it as an environment variable namedMOONSHOT_API_KEY
https://platform.moonshot.cn/console
You’ll also need to install the following dependencies:
npm
Usage
Here’s an example:Related
- Chat model conceptual guide
- Chat model how-to guides