This commit is contained in:
Team3
2026-06-06 22:16:32 +02:00
parent 08e67cb4f1
commit 80b964fef4
5 changed files with 99 additions and 26 deletions

View File

@@ -189,6 +189,12 @@ async function handleBausteineClick({ instructions }) {
async function handleFormatClick({ format, instructions }) {
if (!selectedTopic.value) return
// Kein Duplikat-Start: läuft für Thema+Format schon eine Generierung, ignorieren
const running = guides.value.some(
(g) => g.topic === selectedTopic.value && g.format === format
&& (g.status === 'generating' || g.status === 'queued'),
)
if (running) return
await apiCreate(selectedTopic.value, format, instructions, provider.value)
await loadGuides()
startPolling()