Long form article without repeating definitions

What is the best way to create long form articles with api?

Today I generate one subheading per api run, with special instructions per run. But the problem is in some cases the ai repeats the same definition or warning in almost every subheading.

Solution? Threads? I use PHP and haven’t been able to get threads running, the documentation isnt clear enough…

Welcome!

Generating in batches is good, but you still want to send what it’s already written each time, so it doesn’t repeat and it makes sense. Yes, it’s more expensive, but the quality is a lot better and usually worth it (and likely still well under a penny a word…)

Thanks for reply.

Articles can be up to 10k, and 2-4k words is normal.

Problem is sending too many instructions per batch usually means lower quality…