Ask a question to get started
Enter to sendā¢Shift+Enter new line
MoonshotCommon()
BaseModel
Moonshot API key. Get it here: https://platform.moonshot.cn/console/api-keys
Model name. Available models listed here: https://platform.moonshot.cn/pricing
Maximum number of tokens to generate.
Temperature parameter (higher values make the model more creative).
A map of constructor argument names to secret ids.
For example, {"moonshot_api_key": "MOONSHOT_API_KEY"}
Build extra parameters. Override the superclass method, prevent the model parameter from being overridden.
Validate that api key and python package exists in environment.
Common parameters for Moonshot LLMs.