Skip to content

Conversation

@ncrmro
Copy link
Owner

@ncrmro ncrmro commented Nov 12, 2025

Added AI-powered completion functionality to the admin post editor:

  • Installed AI SDK packages (@ai-sdk/react, @ai-sdk/openai, ai)
  • Created /api/completion endpoint using OpenAI GPT-4o-mini
  • Added completion toggle switches for title and description fields
  • Integrated useCompletion hook with real-time streaming
  • Added completion UI with prompt input, generate/stop buttons, and preview

When enabled, users can describe what they want and the AI will generate appropriate title or description text. The generated text is automatically populated into the respective field upon completion.

The completion feature requires OPENAI_API_KEY environment variable to be set.

Added AI-powered completion functionality to the admin post editor:
- Installed AI SDK packages (@ai-sdk/react, @ai-sdk/openai, ai)
- Created /api/completion endpoint using OpenAI GPT-4o-mini
- Added completion toggle switches for title and description fields
- Integrated useCompletion hook with real-time streaming
- Added completion UI with prompt input, generate/stop buttons, and preview

When enabled, users can describe what they want and the AI will generate
appropriate title or description text. The generated text is automatically
populated into the respective field upon completion.

The completion feature requires OPENAI_API_KEY environment variable to be set.
@catalyst-by-ncrmro
Copy link

hello from catalyst

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.

3 participants