diff --git a/cli/VERSION b/cli/VERSION index 157e54f3..f1547e6d 100644 --- a/cli/VERSION +++ b/cli/VERSION @@ -1 +1 @@ -2.0.6 +2.0.7 diff --git a/skills/image-generation/scripts/generate.py b/skills/image-generation/scripts/generate.py index 17386353..905390b5 100644 --- a/skills/image-generation/scripts/generate.py +++ b/skills/image-generation/scripts/generate.py @@ -1095,7 +1095,9 @@ def main(): sys.exit(1) try: - args = json.loads(sys.argv[1]) + raw = sys.argv[1] + raw = raw.replace('\u201c', '"').replace('\u201d', '"').replace('\u2018', "'").replace('\u2019', "'") + args = json.loads(raw) except json.JSONDecodeError as e: print(json.dumps({"error": f"Invalid JSON: {e}"})) sys.exit(1)