(apiKey: string)
| 12 | } |
| 13 | |
| 14 | static validateApiKey(apiKey: string): string | null { |
| 15 | if (!apiKey || !apiKey.startsWith('sk-')) { |
| 16 | return 'Invalid OpenAI API key format'; |
| 17 | } |
| 18 | |
| 19 | return null; |
| 20 | } |
| 21 | |
| 22 | static validateOutputPath(outputPath: string): string | null { |
| 23 | if (!outputPath || outputPath.trim().length === 0) { |