moonshot
@providerprotocol/ai / moonshot
moonshot
Section titled “moonshot”Moonshot provider for UPP (Unified Provider Protocol)
This module exports the Moonshot provider for use with Kimi K2.5 and other models available through Moonshot AI’s inference platform.
Example
Section titled “Example”import { moonshot } from '@providerprotocol/ai/moonshot';import { llm } from '@providerprotocol/ai';
// Create an LLM instance with Kimi K2.5const model = llm({ model: moonshot('kimi-k2.5'), params: { max_tokens: 1000 }});
// Generate a responseconst turn = await model.generate('What is the meaning of life?');console.log(turn.response.text);Interfaces
Section titled “Interfaces”- MoonshotHeaders
- MoonshotLLMParams
- MoonshotProviderOptions
- MoonshotRequest
- MoonshotResponse
- MoonshotStreamChunk
- MoonshotThinkingConfig
- MoonshotTool
- MoonshotToolCall
- MoonshotUsage