Feature: Add configurable LLM endpoint for Claude-compatible alternatives
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user