Per-tenant resources: repository, storage and language model declared by each tenant #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
The instance holds no content of its own. Each tenant declares the resources its curation runs on:
An instance administrator may let a tenant use the language model configured for the instance; every call is then logged with the tokens consumed. A private repository can be created for a tenant on the forge of the instance, on request.
Today every curation route reads instance-wide singletons (one repository path, one storage, one model adapter) and the themes come from the instance configuration, so a new instance shows themes nobody declared.
Design
tenants.settings:repository(url, branch),storage(endpoint, region, bucket),ai(modeown/instance/none, provider, model, base URL),soa,axes,facets.TenantResourcesof@quatrain/tenancy: working copy of the repository, storage adapter, model adapter, each built on first use and rebuilt when the settings change./t/<tenant>/…only, inside the tenant scope. Instance-wide content routes disappear. Ingestion jobs carry the tenant.axesno longer required; axes and facets of the instance file are ignored for content.ai.mode = instancecan only be set by an instance administrator.@quatrain/ai).@quatrain/git-forgejo.admindeclares the repository, storage and model of its tenant. Only an instance administrator authorises the instance model and creates a repository.Steps (one pull request each)
@quatrain/ai: adapters report token usage of each call.Part of #25 (effective tenant selector).