Skip to content

Conversation

@christian-byrne
Copy link
Contributor

Summary

AI-powered content generation pipeline using GPT-4o.

Added

  • scripts/generate-ai.ts - generates descriptions, FAQs, use cases
  • knowledge/ - model docs and system prompts
  • overrides/ - human-edited content that won't be overwritten
  • .content-cache/ - caches AI responses to reduce API calls

Usage

cd site
OPENAI_API_KEY=sk-... npm run generate:ai

# Skip AI (use placeholders)
SKIP_AI_GENERATION=true npm run generate:ai

Template Site PRs (merge in order)

  • PR 1: astro-pages ✓
  • PR 2: sync-script ✓
  • PR 3 of 5 ← this one
  • PR 4: preview-gen
  • PR 5: cicd

⚠️ Merge after PR #495 (sync-script)

- Add generate-ai.ts script with OpenAI GPT-4o integration
- Create knowledge base structure with model docs (flux, qwen)
- Create system prompt for SEO-optimized content generation
- Implement human override system (humanEdited: true skips AI)
- Add caching with template hash validation
- Support SKIP_AI_GENERATION=true for placeholder mode

Scripts:
- npm run generate:ai - Generate AI content for templates

Directory structure:
- site/scripts/ - Generation scripts
- site/knowledge/prompts/ - GPT-4o system prompt
- site/knowledge/models/ - Model documentation
- site/overrides/templates/ - Human-edited overrides
- site/.content-cache/ - AI generation cache (git-ignored)
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​types/​node@​20.19.301001008196100
Addednpm/​tsx@​4.21.01001008187100
Addednpm/​typescript@​5.9.31001009010090
Addednpm/​openai@​4.104.09910010098100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants