import json
with open("./prompts/promptextend.jsonl", "r") as infile:
    with open("./prompts/promptextend-fixed.jsonl", "w") as outfile:
        for line in infile:
            data = json.loads(line)
            prompt = data.get("prompt", "")
            enhanced = data.get("enhanced", "")
            if prompt and enhanced:
                merged = f"{prompt}, {enhanced}"
                outfile.write(json.dumps({"prompt": merged}) + "\n")