Add LLM configuration and MCP server management UI and backend functionality

- Implemented a new SPA page for LLM Bridge and MCP Server settings in `llm-config.js`.
- Added functionality for managing LLM and MCP configurations, including toggling, saving settings, and testing connections.
- Created HTTP endpoints in `llm_utils.py` for handling LLM chat, status checks, and MCP server configuration.
- Integrated model fetching from LaRuche and Ollama backends.
- Enhanced error handling and logging for better debugging and user feedback.
This commit is contained in:
infinition
2026-03-16 20:33:22 +01:00
parent aac77a3e76
commit b759ab6d4b
41 changed files with 9991 additions and 397 deletions

View File

@@ -45,6 +45,11 @@ export class ResourceTracker {
this._listeners.push({ target, event, handler, options });
}
/** Shorthand alias for trackEventListener. */
on(target, event, handler, options) {
return this.trackEventListener(target, event, handler, options);
}
/* -- AbortControllers (for fetch) -- */
trackAbortController() {
const ac = new AbortController();