From 3a2662291c1594dc4931d90759b53b3d995c5f8c Mon Sep 17 00:00:00 2001 From: David Hu Date: Wed, 23 Sep 2026 20:08:30 -0700 Subject: [PATCH] docs: use image_file_paths in ai_image_editor generate examples The sync and async generate examples in the custom docs block still used the deprecated image_file_path. #165 removed deprecated-field examples from the generated docs, but this hand-written block is preserved on regeneration, so it kept the old field. web-app pulls these snippets into its API code samples. Co-Authored-By: Claude Opus 5.5 (1M context) --- magic_hour/resources/v1/ai_image_editor/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic_hour/resources/v1/ai_image_editor/README.md b/magic_hour/resources/v1/ai_image_editor/README.md index 91c34a6..9ffd81e 100644 --- a/magic_hour/resources/v1/ai_image_editor/README.md +++ b/magic_hour/resources/v1/ai_image_editor/README.md @@ -32,7 +32,7 @@ from os import getenv client = Client(token=getenv("API_TOKEN")) res = client.v1.ai_image_editor.generate( - assets={"image_file_path": "/path/to/1234.png"}, + assets={"image_file_paths": ["/path/to/1234.png"]}, style={"prompt": "Give me sunglasses"}, name="Ai Image Editor image", wait_for_completion=True, @@ -49,7 +49,7 @@ from os import getenv client = AsyncClient(token=getenv("API_TOKEN")) res = await client.v1.ai_image_editor.generate( - assets={"image_file_path": "/path/to/1234.png"}, + assets={"image_file_paths": ["/path/to/1234.png"]}, style={"prompt": "Give me sunglasses"}, name="Ai Image Editor image", wait_for_completion=True,