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:
@@ -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(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user