Installation
Install the OpenAI package (Moonshot uses OpenAI-compatible API):Setup
Set your Moonshot API key as an environment variable:Initialize Model
Create a Moonshot model instance:Use with Agent
Pass the model to your agent:Configuration Options
Supported parameters for Moonshot models:For the full list of available models and parameters, see the Moonshot API documentation.