Skip to content

feat: AI tag suggestion endpoint (#48)#69

Merged
meninoebom merged 2 commits into
mainfrom
feature/ai-tag-suggestion-endpoint
Apr 27, 2026
Merged

feat: AI tag suggestion endpoint (#48)#69
meninoebom merged 2 commits into
mainfrom
feature/ai-tag-suggestion-endpoint

Conversation

@meninoebom
Copy link
Copy Markdown
Owner

Summary

  • Adds POST /api/themes/{theme_id}/suggest-tags (auth required)
  • Calls Claude Haiku with theme body + existing tag names for context; returns 3–5 normalized slug tags
  • Extracts suggestion logic into app/tag_suggester.py for clean testability with mocked client
  • 5 new tests; 196 total passing

Test plan

  • test_suggest_tags_returns_normalized_tags — happy path
  • test_suggest_tags_passes_existing_tags_for_context — existing tags appear in prompt
  • test_suggest_tags_normalizes_raw_output — spaces/caps/double-dashes normalized
  • test_suggest_tags_returns_404_for_missing_theme
  • test_suggest_tags_returns_503_on_api_error

Closes #48

🤖 Generated with Claude Code

Conductor and others added 2 commits April 24, 2026 02:14
Adds Claude Haiku-powered tag suggestion for themes. The endpoint fetches
the theme body and all existing tag names, sends them to claude-haiku-4-5,
and returns 3–5 normalized slug tags. Closes #48.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@meninoebom meninoebom merged commit bba8063 into main Apr 27, 2026
2 checks passed
@railway-app railway-app Bot temporarily deployed to Breadcrumbs / breadcrumbs-pr-69 April 27, 2026 08:42 Destroyed
@meninoebom meninoebom mentioned this pull request Apr 27, 2026
5 tasks
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.

feat: AI tag suggestion endpoint

1 participant