We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 369bfb5 commit f4edcd5Copy full SHA for f4edcd5
1 file changed
src/lib/openrouter.ts
@@ -4,7 +4,6 @@
4
*/
5
6
// Environment variables should be set in your .env.local file
7
-const OPENROUTER_API_KEY = process.env.OPENROUTER_API_KEY || '';
8
const OPENROUTER_BASE_URL = 'https://openrouter.ai/api/v1';
9
10
/**
@@ -120,10 +119,6 @@ export async function generateDocumentation(
120
119
extraInstructions?: string;
121
}
122
): Promise<Array<{filename: string; content: string}>> {
123
- if (!OPENROUTER_API_KEY) {
124
- throw new Error('OpenRouter API key is not set. Please set OPENROUTER_API_KEY in your .env.local file.');
125
- }
126
-
127
console.log('🚀 Generating documentation with model:', model);
128
console.log('🚀 File type:', options.fileType);
129
console.log('🚀 Template:', options.template || 'None specified');
0 commit comments