Redact tool: rich UI, multilingual, engine choice, output formats
- Custom inline form (EN/NO/UK/PL lang switcher) replacing generic stub - Engine selector: Azure gpt-4o-mini (default), gpt-4o, GPU cuttlefish, regex-only - Entity type toggles: names, organisations, places, dates of birth - Output formats: contextual role tags, generic [PERSON], Norwegian pseudonyms - Keep officials mode: judges/experts kept as [JUDGE: Andersen] format - Exempt names list: specific names excluded from redaction - Hint paragraphs explaining each option in all four languages - Backend: engine routing, callGpuLlm(), applyGenericTags(), applyPseudonymization() - AzureOpenAiGateway: withDeployment() clone pattern for per-call model override Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,13 @@ final class DbnAzureOpenAiGateway
|
||||
return $missing;
|
||||
}
|
||||
|
||||
public function withDeployment(string $deployment): static
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->config['chat_deployment'] = $deployment;
|
||||
return $clone;
|
||||
}
|
||||
|
||||
public function chatDeployment(): string
|
||||
{
|
||||
return (string)$this->config['chat_deployment'];
|
||||
|
||||
Reference in New Issue
Block a user