Skip to content

Commit

Permalink
fixup! Enh: Improve smart replies prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Jun 12, 2024
1 parent 2e14d7d commit 8d06d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/AiIntegrations/AiIntegrationsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function getSmartReply(Account $account, Mailbox $mailbox, Message $messa
$this->cache->addValue('smartReplies_'.$message->getId(), $replies);
return $decoded;
} catch (JsonException $e) {
return null;
throw new ServiceException('Failed to decode smart replies JSON output', $e);
}
} else {
throw new ServiceException('No language model available for smart replies');
Expand Down

0 comments on commit 8d06d4e

Please sign in to comment.