canvas-website/src/utils
Jeff Emmett 5bad65eed6 feat: add server-side AI service proxies for fal.ai and RunPod
Add proxy endpoints to Cloudflare Worker for AI services, keeping
API credentials server-side for better security architecture.

Changes:
- Add fal.ai proxy endpoints (/api/fal/*) for image generation
- Add RunPod proxy endpoints (/api/runpod/*) for image, video, text, whisper
- Update client code to use proxy pattern:
  - useLiveImage.tsx (fal.ai live image generation)
  - VideoGenShapeUtil.tsx (video generation)
  - ImageGenShapeUtil.tsx (image generation)
  - runpodApi.ts (whisper transcription)
  - llmUtils.ts (LLM text generation)
- Add Environment types for AI service configuration
- Improve Automerge migration: compare shape counts between formats
  to prevent data loss during format conversion

To deploy, set secrets:
  wrangler secret put FAL_API_KEY
  wrangler secret put RUNPOD_API_KEY

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 20:26:04 -05:00
..
audioAnalysis.ts chore: remove verbose console.log debug statements 2025-12-24 16:32:58 -05:00
handleInitialPageLoad.ts PrintToPDF integration 2024-12-08 13:31:53 -05:00
llmUtils.ts feat: add server-side AI service proxies for fal.ai and RunPod 2025-12-25 20:26:04 -05:00
multiPasteHandler.ts chore: remove verbose console.log debug statements 2025-12-24 16:32:58 -05:00
multiplayerAssetStore.tsx everything working in dev 2025-11-10 11:06:13 -08:00
pdfUtils.ts fix video chat in prod env vars 2025-09-02 00:43:57 +02:00
searchUtils.ts feat: add Ollama private AI integration with model selection 2025-11-26 14:47:07 -08:00
selectionTransforms.ts Add backlog tasks from worktrees and feature branches 2025-12-03 21:56:54 -08:00
shapeCollisionUtils.ts feat: add Ollama private AI integration with model selection 2025-11-26 14:47:07 -08:00
toolSpawner.ts feat: add Drawfast tool, improve share UI, and various UI enhancements 2025-12-15 00:03:12 -05:00
unfurlBookmarkUrl.tsx everything working in dev 2025-11-10 11:06:13 -08:00