Debug (ai)
This commit is contained in:
@@ -61,11 +61,11 @@ public static function suggestArticleTitles($current_title, $supporting_data, $s
|
|||||||
|
|
||||||
$reply = self::chatCompletion($system_prompt, $current_title, 'gpt-3.5-turbo');
|
$reply = self::chatCompletion($system_prompt, $current_title, 'gpt-3.5-turbo');
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
return json_decode($reply, false);
|
return json_decode($reply, false);
|
||||||
} catch (Exception $e) {
|
// } catch (Exception $e) {
|
||||||
return null;
|
// return null;
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user