openpencil/apps/web/server/api/ai
Fini 829772f60e fix(ai): swallow image-search network failures into the existing fallback
`fetchFromOpenverse` and `fetchFromWikimedia` were missing try/catch,
so a ConnectTimeoutError on `api.openverse.org` (frequent on networks
that can't reach Openverse) bubbled up to nitro's default handler and
turned a single image-search lookup into a HTTP 500 for the whole
design generation flow. The handler already treats `null` (Openverse)
and `[]` (Wikimedia) as the documented fallback signals — wrap the
fetches and return those on any throw, plus an explicit 8s
AbortSignal.timeout so the wait is bounded.
2026-04-26 07:30:00 +08:00
..
agent.ts V0.7.3 (#111) 2026-04-15 22:19:12 +08:00
chat.ts V0.7.2-bugfix (#109) 2026-04-14 21:42:56 +08:00
connect-acp.ts V0.7.1 (#102) 2026-04-13 21:30:23 +08:00
connect-agent.ts V0.7.2-bugfix (#109) 2026-04-14 21:42:56 +08:00
generate.ts V0.7.2-bugfix (#109) 2026-04-14 21:42:56 +08:00
icon.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
image-generate.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
image-search.ts fix(ai): swallow image-search network failures into the existing fallback 2026-04-26 07:30:00 +08:00
image-service-test.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
install-agent.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
mcp-install.ts V0.7.3 (#111) 2026-04-15 22:19:12 +08:00
models.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
provider-models.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
provider-url.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
validate.ts V0.7.2-bugfix (#109) 2026-04-14 21:42:56 +08:00