diff --git a/vercel.md b/vercel.md index b5310404..fb7450e3 100644 --- a/vercel.md +++ b/vercel.md @@ -301,7 +301,7 @@ AI GATEWAY โคณ skill: ai-gateway ๐Ÿ“– docs: htt โ”‚ โ”œโ”€โ”€ Image Generation (gateway-native) โ”‚ โŠƒ Multimodal LLMs: model: 'google/gemini-3.1-flash-image' + generateText โ†’ result.files -โ”‚ โŠƒ Image-only models: generateImage (Imagen 4.0, Flux 2, Grok Imagine) +โ”‚ โŠƒ Image-only models: generateImage (GPT Image 2, Flux 2, Grok Imagine) โ”‚ โŠƒ Default model: google/gemini-3.1-flash-image โ”‚ โŠƒ DALL-E, gemini-2.x image models are outdated โ€” use Gemini 3.1 Flash Image โ”‚ @@ -687,7 +687,7 @@ VERCEL MARKETPLACE โคณ skill: marketplace ๐Ÿ“– docs: h | Chat UI components (messages, tools, reasoning) | AI Elements (`npx ai-elements`) | Pre-built, handles UIMessage parts | | Custom chat rendering (no AI Elements) | Manual `message.parts` iteration | Full control over rendering | | Image generation (default) | AI Gateway `model: 'google/gemini-3.1-flash-image'` + `generateText` โ†’ `result.files` | Multimodal LLM, best quality, gateway-native | -| Image generation (image-only models) | `generateImage` (Imagen 4.0, Flux 2) | Only for dedicated image models, not multimodal LLMs | +| Image generation (image-only models) | `generateImage` (GPT Image 2, Flux 2) | Only for dedicated image models, not multimodal LLMs | | Structured data extraction | AI SDK `generateText` + `Output.object()` + AI Gateway | Type-safe, schema-validated | | Agent loop embedded in an existing application | AI SDK `Agent` class + AI Gateway | Direct loop control and tool calling | | New durable agent or agent-powered application | eve | Filesystem-first runtime with sessions, tools, skills, channels, sandboxes, subagents, schedules, evals, and frontend clients | @@ -943,7 +943,7 @@ Git Push โ†’ CI Pipeline โ†’ vercel build โ†’ vercel deploy --prebuilt - **`maxSteps` was removed** โ€” use `stopWhen: isStepCount(N)` (import `isStepCount` from `ai`; named `stepCountIs` in AI SDK 6) for multi-step tool calling in both `streamText` and the `Agent` class. - Use the `Agent` class for multi-step reasoning instead of manual tool-calling loops. Agent methods are `agent.generate()` and `agent.stream()` (not `agent.generateText()` / `agent.streamText()`). - Use `WorkflowAgent` from `@ai-sdk/workflow` for production agents that must survive crashes; the current 2.x line requires Workflow 5 (`workflow@latest`). Workflow 5 deprecates `DurableAgent` from `@workflow/ai`, which the Workflow 4 docs use; see the WorkflowAgent migration guide. -- **Image generation is gateway-native** โ€” use `model: 'google/gemini-3.1-flash-image'` with `generateText()` for best results (images in `result.files`). Use `generateImage` only for image-only models (Imagen 4.0, Flux 2). Do NOT use DALL-E or older Gemini 2.x image models โ€” they are outdated. +- **Image generation is gateway-native** โ€” use `model: 'google/gemini-3.1-flash-image'` with `generateText()` for best results (images in `result.files`). Use `generateImage` only for image-only models (GPT Image 2, Flux 2). Do NOT use DALL-E or older Gemini 2.x image models โ€” they are outdated. - **Outdated models**: `gpt-4o` โ†’ pick a current model from `https://ai-gateway.vercel.sh/v1/models`; `gemini-2.0-flash-exp-image-generation` โ†’ use `gemini-3.1-flash-image`; DALL-E 2/3 โ†’ use Gemini 3.1 Flash Image. - Use `@ai-sdk/mcp` (stable, not experimental) for MCP server connections. - Use `mcp-to-ai-sdk` CLI to generate static tool definitions from MCP servers for security.