feat(tools): converge two-tier Quick/Pro selector onto .no fork
Port the dobetterlegal-tools two-tier quality stack to dobetternorge.no: QUALITY_TIERS registry + resolveTier (ToolModels), dbnToolsResolveToolRun (bootstrap), tier read+charge in the 6 analytical endpoints, Quick/Pro UI + payload.tier on the 6 tool pages/JS, and the bounded corpusContextForSummarize RAG fix (per-passage trim + total budget + reranker_enabled). Back-compat: requests without `tier` keep legacy engine behavior. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+5
-7
@@ -16,14 +16,12 @@ require_once __DIR__ . '/includes/layout.php';
|
||||
<button type="button" class="lang-btn sum-lang-btn" data-lang="pl">🇵🇱 PL</button>
|
||||
</div>
|
||||
|
||||
<div class="control-row" id="sumEngineControl">
|
||||
<span class="control-label">Engine</span>
|
||||
<label><input type="radio" name="sumEngine" value="claude_haiku" checked> Standard ★ <small class="control-hint">(Claude Haiku · fast)</small></label>
|
||||
<label><input type="radio" name="sumEngine" value="claude_sonnet"> Deep <small class="control-hint">(Claude Sonnet · best)</small></label>
|
||||
<label><input type="radio" name="sumEngine" value="azure_mini"> Azure mini <small class="control-hint">(gpt-4o-mini)</small></label>
|
||||
<label><input type="radio" name="sumEngine" value="azure_full"> Azure full <small class="control-hint">(gpt-4o)</small></label>
|
||||
<div class="control-row" id="sumTierControl">
|
||||
<span class="control-label">Quality</span>
|
||||
<label><input type="radio" name="sumTier" value="quick" checked> Quick ★ <small class="control-hint">(Claude Haiku · fast · 1 credit)</small></label>
|
||||
<label><input type="radio" name="sumTier" value="pro"> Pro <small class="control-hint">(Claude Sonnet · best · 2 credits)</small></label>
|
||||
</div>
|
||||
<p class="upload-hint">Standard uses Claude Haiku 4.5 — fast and highly accurate. Deep uses Claude Sonnet 4.6 — best for complex multi-statute documents.</p>
|
||||
<p class="upload-hint">Quick uses Claude Haiku 4.5 — fast and highly accurate (1 credit). Pro uses Claude Sonnet 4.6 — best for complex multi-statute documents (2 credits).</p>
|
||||
|
||||
<div class="control-row" id="sumDepthControl">
|
||||
<span class="control-label">Summary depth</span>
|
||||
|
||||
Reference in New Issue
Block a user