Instructions for the AI (platform limits, format, etc.)
The user-facing content (filename, context)
OpenRouter model identifier (e.g. "openai/gpt-4o")
OptionalfallbackModels: string[]Optional fallback model IDs appended after model.
When provided, OpenRouter may attempt models in this order:
primary model first, then each entry in fallbackModels.
Sends a chat completion request to OpenRouter and parses the response into a typed GeneratedMetadata object with title, description, and tags fields.