883d813f1b6e6b3fd78c47d685efd195d672d4e2
- expandQueries(): truncate seedDescription to 2000 chars (full uploads were 48K+ tokens, exceeding the 35s timeout with Sonnet); switch to Haiku gateway when Bedrock is active (fast + adequate for sub-Q generation); timeout → 60s - interpretSeed(): same Haiku + 60s fix for English non-advocate path - synthesise(): add explicit azure_mini + Bedrock → Haiku branch so the fast engine actually uses Haiku (~20-40s) instead of falling through to Sonnet (~180s) - advocate.php: relabel azure_mini as "Claude Haiku 4.5 (fast)" with accurate timing; relabel claude_sonnet as "(thorough)" to reflect the distinction Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Do Better Norge Legal Tools Hub
MVP docroot for tools.dobetternorge.no.
Required environment
- CaveauAI client access for
DBN_CAVEAU_CLIENT_SLUGandDBN_CAVEAU_PACKAGE_SLUG DBN_AZURE_OPENAI_ENDPOINTDBN_AZURE_OPENAI_API_KEYDBN_AZURE_OPENAI_API_VERSIONDBN_AZURE_OPENAI_CHAT_DEPLOYMENTDBN_AZURE_OPENAI_EMBEDDING_DEPLOYMENT
Optional:
DBN_AI_PORTAL_ROOT(defaults to siblingai-portal)DBN_CAVEAU_CLIENT_SLUG(defaults todobetter)DBN_CAVEAU_PACKAGE_SLUG(defaults tofamily-legal)DBN_TOOLS_SUPPORT_DIRDBN_TOOLS_METADATA_LOG
Authentication
The login form authenticates against Caveau client_users for the configured
client slug. The client must be active, the user must be active, and the client
must have an active subscription to the configured corpus package.
Use scripts/setup-caveau-access.php for repeatable local/production setup of
the Do Better Norge Caveau owner account, family-legal subscription, and
white-label domain mappings. Pass the account password through
DBN_SETUP_PASSWORD at runtime only; do not commit it.
The APIs process pasted text in memory and write only metadata such as tool name, latency, language, source count, chunk count, deployment, and anonymous session id.
Description
Languages
PHP
77.3%
JavaScript
13.6%
CSS
9.1%