Fix: Remove Application class references, use string literals for app ID and version
This commit is contained in:
@@ -32,7 +32,7 @@ class LLMService {
|
||||
* Check if LLM service is configured
|
||||
*/
|
||||
public function isConfigured(): bool {
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', Application::APP_NAME);
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', 'analyticshub');
|
||||
return !empty($apiKey);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class LLMService {
|
||||
$this->logger->info("Generating LLM report for: {$client->getName()}");
|
||||
|
||||
try {
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', Application::APP_NAME);
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', 'analyticshub');
|
||||
|
||||
if (empty($apiKey)) {
|
||||
throw new \Exception('Anthropic API key not configured');
|
||||
|
||||
Reference in New Issue
Block a user