MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getMoonshotPricing

Function getMoonshotPricing

web/src/llm-api/moonshot.ts:76–82  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

74}
75
76function getMoonshotPricing(model: string): MoonshotPricing {
77 const pricing = MOONSHOT_PRICING[model]
78 if (!pricing) {
79 throw new Error(`No Moonshot pricing found for model: ${model}`)
80 }
81 return pricing
82}
83
84function getMoonshotApiKey(): string {
85 const apiKey = env.MOONSHOT_API_KEY

Callers 1

extractUsageAndCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected