feat: finalize local OpenAI key flow and MCP docs

- add server-side .env.local OpenAI key management for the open-source app
- route AI features through the preferred local key path and lazy-load embed recovery
- rewrite README and docs for current MCP setup, schema, and fully-local guidance

Generated with Claude Code
This commit is contained in:
“BeeRad”
2026-04-16 14:08:37 +10:00
parent c2f880d957
commit 97eeb0789f
28 changed files with 891 additions and 215 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
import { NextResponse } from 'next/server';
import { checkDatabaseHealth } from '@/services/database';
import { hasValidOpenAiKey } from '@/services/storage/apiKeys';
import { hasPreferredOpenAiKey } from '@/services/storage/openaiKeyServer';
export const runtime = 'nodejs';
@@ -17,7 +17,7 @@ export async function GET() {
status: dbHealth.connected ? 'ok' : 'degraded',
database: dbHealth.connected ? 'connected' : 'disconnected',
vectorSearch: dbHealth.vectorExtension ? 'enabled' : 'disabled',
aiFeatures: hasValidOpenAiKey() ? 'enabled' : 'disabled (no API key)',
aiFeatures: hasPreferredOpenAiKey() ? 'enabled' : 'disabled (no API key)',
timestamp: new Date().toISOString(),
};