Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vercel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
│
Expand Down Expand Up @@ -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 |
Expand Down Expand Up @@ -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.
Expand Down
Loading