diff --git a/includes/bootstrap.php b/includes/bootstrap.php index 88fecdf..afa0281 100644 --- a/includes/bootstrap.php +++ b/includes/bootstrap.php @@ -966,23 +966,7 @@ function dbnToolsRunLegalCheck(string $brief, string $docType): array ); $text = trim((string)($response['choices'][0]['message']['content'] ?? '')); } catch (Throwable $e) { - // v3 unavailable — fall back to qwen2.5:7b as safety net - } - - // Fallback: if v3 timed out or returned empty, retry with qwen2.5:7b - if (empty($text) || str_word_count($text) < 8) { - try { - $fallback = dbnToolsCallGpuLlm( - [ - ['role' => 'system', 'content' => $sysMsg], - ['role' => 'user', 'content' => $question], - ], - array_merge($opts, ['model' => 'qwen2.5:7b', 'timeout' => 30]) - ); - $text = trim((string)($fallback['choices'][0]['message']['content'] ?? '')); - } catch (Throwable $e) { - return []; - } + return []; // v3 timed out or unavailable — skip legal check (non-critical) } if (empty($text) || str_word_count($text) < 15) {