26-source OSINT intelligence engine with live Jarvis dashboard, auto-refresh via SSE, optional LLM layer (4 providers), delta/memory system, and Telegram breaking news alerts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
// Base LLM Provider — all providers implement this interface
|
|
|
|
export class LLMProvider {
|
|
constructor(config) {
|
|
this.config = config;
|
|
this.name = 'base';
|
|
}
|
|
|
|
/**
|
|
* Complete a prompt with system + user messages
|
|
* @returns {{ text: string, usage: { inputTokens: number, outputTokens: number }, model: string }}
|
|
*/
|
|
async complete(systemPrompt, userMessage, opts = {}) {
|
|
throw new Error(`${this.name}: complete() not implemented`);
|
|
}
|
|
|
|
get isConfigured() { return false; }
|
|
}
|