Skip to content

Latest commit

 

History

History

blogWriter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Blog Writer Example

This example demonstrates how to use GenSX to create an AI-powered blog writing workflow. It showcases how to use GenSX for generating long-form content with LLMs.

What it demonstrates

  • Basic GenSX workflow setup
  • Generating long-form content using LLMs
  • Simple prompt-to-blog-post conversion

Usage

# Install dependencies
pnpm install

# Set your OpenAI API key
export OPENAI_API_KEY=<your_api_key>

# Run the example
pnpm run start

The example will generate a blog post based on the prompt "Write a blog post about the future of AI". You can modify the prompt in index.tsx to generate different content.