()
| 82 | } |
| 83 | |
| 84 | function 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 | |
| 92 | function createMoonshotRequest(params: { |
| 93 | body: ChatCompletionRequestBody |
no outgoing calls
no test coverage detected