Commit 10aa9d9
## Summary
Addresses open review comments from #105 (deprecated model removal):
- Increase `express.json()` body size limit to 50mb so base64 data URL
payloads don't hit the default 100KB cap
- Remove 3 duplicate example files (`text-to-image.ts`,
`text-to-video.ts`, `image-to-video.ts`) that were repurposed during
model removal but became identical to existing examples with misleading
names
- Update `examples/sdk-core/README.md` references accordingly
## Test plan
- [ ] Verify express example starts without errors
- [ ] Verify no broken references to deleted files remain
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: changes are confined to example code and documentation,
mainly increasing request body size and deleting redundant example
scripts.
>
> **Overview**
> Updates the `examples/express-api` server to accept large base64
payloads by raising the `express.json()` body limit to `50mb`.
>
> Cleans up `examples/sdk-core` by removing three redundant/misleading
example scripts (`image/text-to-image.ts`, `video/text-to-video.ts`,
`video/image-to-video.ts`) and updating the README to point to the
remaining `image-to-image` and `video-to-video` examples.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
993cd92. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4dca905 commit 10aa9d9
5 files changed
Lines changed: 5 additions & 92 deletions
File tree
- examples
- express-api/src
- sdk-core
- image
- video
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments