This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { openai } from "@ai-sdk/openai" | |
import { generateText } from "ai" | |
const model = openai("gpt-4.1-mini") | |
const systemPrompt = ` | |
You are an AI model that analyzes images and produces a structured JSON array describing the visual elements in the image. | |
Your task: | |
1. Provide a concise overall description of the image. |