Feature: Add configurable LLM endpoint for Claude-compatible alternatives

This commit is contained in:
WLTBAgent
2026-02-16 16:35:42 +00:00
parent 8b5c8826e2
commit 3c2d356eb0
5 changed files with 45 additions and 12 deletions

View File

@@ -61,6 +61,7 @@ class PageController extends \OCP\AppFramework\Controller {
// Get configuration values (masked for secrets)
$clientId = $this->config->getAppValue('google_client_id', 'analyticshub', '');
$apiKey = $this->config->getAppValue('anthropic_api_key', 'analyticshub', '');
$llmEndpoint = $this->config->getAppValue('llm_api_endpoint', 'analyticshub', '');
// Mask API key for display
$maskedApiKey = '';
@@ -76,6 +77,7 @@ class PageController extends \OCP\AppFramework\Controller {
'is_ga_configured' => $isGAConfigured,
'is_llm_configured' => $isLLMConfigured,
'google_client_id' => $clientId,
'llm_api_endpoint' => $llmEndpoint,
'anthropic_api_key_masked' => $maskedApiKey,
'request' => $this->request,
]);