WIP Hub 1.6.0: AI proxy for Cross Events 2.0
Signed /installs/ai/status and /installs/ai/complete (protocol 3b): the Hub holds the Claude key, holds each call's worst case against the licence's monthly cap in a locked transaction, calls Claude Haiku 5.5 and meters real cost and charged amount (markup) in rand. Settings -> AI, licence markup override, AI use on the install page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,17 @@ and `HUB_PUBLIC_KEY` (the public key shown in Hub → Settings) in Cross Events'
|
||||
- **Notices** (Notices page) are banners on churches' sites for their admins and supervisors, emails
|
||||
to them, or both — e.g. planned maintenance.
|
||||
|
||||
## AI (Cross Events 2.0)
|
||||
|
||||
Sites call AI through the Hub (protocol §3b), so the Claude API key never leaves this server.
|
||||
Set it up in **Settings → AI**: the key, the model (Claude Haiku 5.5), its prices, the exchange rate
|
||||
and the default markup — AI stays off for every site until the key and exchange rate are saved;
|
||||
**Test the saved key** checks them. Each licence has a monthly **AI cap** in rand (0 = off) and an
|
||||
optional markup override, on the customer's page. The cap counts what the church is charged
|
||||
(real cost plus markup); the Hub checks the worst case before every call, so a month can't run over.
|
||||
Use per site (real cost, charged, profit) is on Settings → AI and on each install's page. No prompt
|
||||
or response text is stored.
|
||||
|
||||
## The licence signing key
|
||||
|
||||
Licences are tokens signed with an Ed25519 key. **The private key exists only on the Hub server**;
|
||||
|
||||
Reference in New Issue
Block a user