Skip to content

Commit

Permalink
fix config key
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 26, 2024
1 parent ab0cef4 commit 09be7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SolutionProviders/Laravel/OpenAiSolutionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function canSolve(Throwable $throwable): bool
return false;
}

if (config('ErrorSolutions.open_ai_key') === null) {
if (config('error-solutions.open_ai_key') === null) {
return false;
}

Expand All @@ -26,7 +26,7 @@ public function canSolve(Throwable $throwable): bool
public function getSolutions(Throwable $throwable): array
{
$solutionProvider = new BaseOpenAiSolutionProvider(
openAiKey: config('ErrorSolutions.open_ai_key'),
openAiKey: config('error-solutions.open_ai_key'),
cache: cache()->store(config('cache.default')),
cacheTtlInSeconds: 60,
applicationType: 'Laravel ' . Str::before(app()->version(), '.'),
Expand Down

0 comments on commit 09be7d6

Please sign in to comment.