From f8d3d8a0802d50e71453fe84e4f78d0e747b85be Mon Sep 17 00:00:00 2001 From: "netlify-coding[bot]" <224816602+netlify-coding[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 12:06:02 +0000 Subject: [PATCH] Update app to use a supported Netlify AI gateway (6a73256c9a437d826024fb0e) (#202) Co-authored-by: netlify[bot] --- README.md | 2 +- src/lib/ai.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 069d276..c6fd50d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a [SolidStart](https://start.solidjs.com) site. It uses the [SolidUI](https://www.solid-ui.com/) component library and [TailwindCSS](https://tailwindcss.com/) for styling. -Images are generated with Google Gemini (`gemini-3.1-flash-image-preview`) via [@google/genai](https://www.npmjs.com/package/@google/genai), and decoy prompts are generated with [Anthropic](https://www.npmjs.com/package/@anthropic-ai/sdk), both via Netlify AI Gateway. +Images are generated with Google Gemini (`gemini-3.1-flash-image`) via [@google/genai](https://www.npmjs.com/package/@google/genai), and decoy prompts are generated with [Anthropic](https://www.npmjs.com/package/@anthropic-ai/sdk), both via Netlify AI Gateway. It is deployed to [Netlify](https://www.netlify.com/). diff --git a/src/lib/ai.ts b/src/lib/ai.ts index 1169415..bf68c48 100644 --- a/src/lib/ai.ts +++ b/src/lib/ai.ts @@ -5,7 +5,7 @@ const anthropic = new Anthropic(); const google = new GoogleGenAI({}); const DECOY_MODEL = "claude-haiku-4-5-20251001"; -const IMAGE_MODEL = "gemini-3.1-flash-image-preview"; +const IMAGE_MODEL = "gemini-3.1-flash-image"; const extractText = ( content: Anthropic.Messages.Message["content"], -- 2.51.2