antcolony
All repositories: gitoria
990 B
// local-test.hl — antcolony#20: `classify` with the model `local` against a llama-server (URL in COLONY_LOCAL_URL);// prints what came back. Usage: COLONY_LOCAL_URL=http://127.0.0.1:8708/v1 bin/hybriel local-test.hl -- DIR MODEL FALLBACKimport { args } from 'hl:proc'import { classify, librarianSettings } from './lib/librarian.hl'import { mkDir } from 'hl:fs'on Error(e) {console.log('colony: ERROR — ' + e.message)return null}let a = args()let c = librarianSettings([], false)c.dir = a[0]c.model = a[1]c.fallback = a[2]mkDir(c.dir, 448)let x = { key = 'test1' ref = 'demo#1' project = 'demo' subject = 'Login' summary = 'Sign in by mail code.' state = 'open' isQuestion = false url = 'https://t/demo/1' what = 'comment' author = 'creator' when = '2026-09-26' before = [] quotes = ['from now on every page must use the dark theme, no exceptions'] }classify(c, x, ['demo' 'all'], [], (r) => {console.log('RESULT ' + JSON.stringify(r))return null})
Branches
- mainmain branch
Latest commits
- a6af7883tracker: worker box sees calendar.worldapi.org (login to copy)mre
- c613d26btemplates: bridges to external components (login.js for ident's selector) are allowed (creator 2026-09-27)mre
- 9062978ctracker: worker box sees /media/STORAGE/projects/old-tracker read-only (tracker#2 source data)mre
- 7f9660eeState of 2026-09-27, before the move to gitoriamre