Skip to content

Commit

Permalink
Update src/Jobs/ScanWithGPT.php
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
joaojkuligowski and coderabbitai[bot] authored Jan 20, 2025
1 parent 6399386 commit 615d89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/ScanWithGPT.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function handle(): void

$result = json_decode($response->body(), true);

if (!isset($response['choices'][0]['message']['content'])) {
if (!isset($result['choices'][0]['message']['content'])) {
Log::error('OpenAI API request failed', [
'status' => $response->status(),
'body' => $response->body()
Expand Down

0 comments on commit 615d89e

Please sign in to comment.