add ask AI

This commit is contained in:
2025-06-13 15:01:08 +09:00
parent 962017f922
commit fb0e5107cf
14 changed files with 506 additions and 383 deletions

View File

@ -22,9 +22,15 @@ highlight_code = true
minify = false
[ai]
enabled = false
enabled = true
auto_translate = false
comment_moderation = false
ask_ai = true
provider = "ollama"
model = "gemma3:4b"
host = "https://ollama.yourdomain.com"
system_prompt = "You are a helpful AI assistant trained on this blog's content."
ai_did = "did:plc:your-ai-bot-did"
# 3. Build your blog
ailog build
@ -125,10 +131,14 @@ ai.logは、[Anthropic Docs](https://docs.anthropic.com/)にインスパイア
- **レスポンシブ**: モバイル・デスクトップ対応
### 🤖 AI統合機能
- **Ask AI**: ローカルLLM(Ollama)による質問応答
- **Ask AI**: ローカルLLM(Ollama)による質問応答
- トップページでのみ利用可能
- atproto OAuth認証必須
- Cloudflare Tunnel経由でCORS問題解決済み
- **自動翻訳**: 日本語↔英語の自動生成
- **AI記事強化**: コンテンツの自動改善
- **AIコメント**: 記事への一言コメント生成
- **カスタマイズ可能なAI設定**: system_prompt、ai_did、プロフィール連携
### 🌐 分散SNS連携
- **atproto OAuth**: Blueskyアカウントでログイン
@ -341,6 +351,10 @@ Generate comprehensive documentation and translate content:
- **💬 ATProto comment system with Jetstream monitoring**
- **🔄 Real-time comment collection and user management**
- **🔐 OAuth 2.1 integration with Cloudflare tunnel**
- **🤖 Ask AI feature with Ollama integration**
- **⚡ CORS resolution via OLLAMA_ORIGINS**
- **🔒 Authentication-gated AI chat**
- **📱 Top-page-only AI access pattern**
- Test blog with sample content and styling
### 🚧 In Progress