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

Function getMoonshotApiKey

web/src/llm-api/moonshot.ts:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84function getMoonshotApiKey(): string {
85 const apiKey = env.MOONSHOT_API_KEY
86 if (!apiKey) {
87 throw new Error('MOONSHOT_API_KEY is not configured')
88 }
89 return apiKey
90}
91
92function createMoonshotRequest(params: {
93 body: ChatCompletionRequestBody

Callers 1

createMoonshotRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected