feat(b2b): Add batch processing, industry selection, optimized PDF export, and update docs
This commit is contained in:
@@ -101,7 +101,7 @@ app.post('/api/start-generation', (req, res) => {
|
||||
// API-Endpunkt, um den nächsten Schritt zu generieren
|
||||
app.post('/api/next-step', (req, res) => {
|
||||
console.log(`[${new Date().toISOString()}] HIT: /api/next-step`);
|
||||
const { analysisData, language, channels, generationStep } = req.body;
|
||||
const { analysisData, language, channels, generationStep, focusIndustry } = req.body;
|
||||
|
||||
if (!analysisData || !language || generationStep === undefined) {
|
||||
return res.status(400).json({ error: 'Missing required parameters: analysisData, language, generationStep.' });
|
||||
@@ -128,6 +128,10 @@ app.post('/api/next-step', (req, res) => {
|
||||
if (channels && Array.isArray(channels)) {
|
||||
args.push('--channels', channels.join(','));
|
||||
}
|
||||
|
||||
if (focusIndustry) {
|
||||
args.push('--focus_industry', focusIndustry);
|
||||
}
|
||||
|
||||
// Da die runPythonScript-Funktion res behandelt, fügen wir hier die Bereinigung hinzu
|
||||
const originalJson = res.json.bind(res);
|
||||
|
||||
Reference in New Issue
Block a user