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:
+6
-6
@@ -79,13 +79,13 @@ require_once __DIR__ . '/includes/layout.php';
|
||||
</div>
|
||||
<p class="upload-hint">Concise: short and to-the-point (2-3 paragraphs). Standard: balanced correspondence. Detailed: full background, all arguments, and complete legal reasoning.</p>
|
||||
|
||||
<!-- Engine -->
|
||||
<div class="control-row" id="korrEngineControl">
|
||||
<span class="control-label">Engine</span>
|
||||
<label><input type="radio" name="korrEngine" value="azure_mini" checked> ☁️ Quick <small class="control-hint">(~40-70s)</small></label>
|
||||
<label><input type="radio" name="korrEngine" value="claude_sonnet"> ☁️ Thorough ★★ <small class="control-hint">(~70-120s)</small></label>
|
||||
<!-- Quality tier -->
|
||||
<div class="control-row" id="korrTierControl">
|
||||
<span class="control-label">Quality</span>
|
||||
<label><input type="radio" name="korrTier" value="quick" checked> Quick ★ <small class="control-hint">(Claude Haiku · fast · 3 credits)</small></label>
|
||||
<label><input type="radio" name="korrTier" value="pro"> Pro <small class="control-hint">(Claude Sonnet · best · 6 credits)</small></label>
|
||||
</div>
|
||||
<p class="upload-hint">Quick uses Claude Haiku 4.5 for drafting — fast and solid for standard correspondence. Thorough uses Claude Sonnet 4.6 — better at multi-statute cases, complex appeal grounds, and ECHR framing.</p>
|
||||
<p class="upload-hint">Quick uses Claude Haiku 4.5 for drafting — fast and solid for standard correspondence (3 credits). Pro uses Claude Sonnet 4.6 — better at multi-statute cases, complex appeal grounds, and ECHR framing (6 credits).</p>
|
||||
|
||||
<!-- Domain persona -->
|
||||
<div class="control-row corpus-persona is-hidden" id="korrPersonaControl">
|
||||
|
||||
Reference in New Issue
Block a user