- Git URLs: git.mobiletic.net/mobiletic/anonymizer -> .../mobiletic-labs/anonymizer (homepage, repository, bugs, CI badge, clone instructions). - npm package renamed @mobiletic/anonymizer -> @mobiletic-labs/anonymizer across package.json, lockfile, README, CONTRIBUTING, examples, issue template. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
25 lines
997 B
Markdown
25 lines
997 B
Markdown
# Live example
|
|
|
|
[`demo.mjs`](./demo.mjs) runs `@mobiletic-labs/anonymizer` against a real
|
|
OpenAI-compatible LLM (built with Gemma 4 via Infomaniak) on a set of fictional
|
|
Swiss e-learning chats: 5 single messages of rising complexity (up to 5 people,
|
|
with rare attributes the model must coin itself) and 5 multi-turn conversations
|
|
(with long-range back-references across turns). It writes the formatted output to
|
|
[`RESULTS.md`](./RESULTS.md).
|
|
|
|
> This is a **live example**, not a CI unit test — it needs an API key and calls a
|
|
> real endpoint. The deterministic test suite lives in [`../test`](../test).
|
|
|
|
## Run
|
|
|
|
```bash
|
|
cd ..
|
|
npm install
|
|
npm run build # examples/demo.mjs imports the built package
|
|
cp examples/.env.example examples/.env # then fill in your endpoint + key
|
|
npm run example # → regenerates examples/RESULTS.md
|
|
```
|
|
|
|
`examples/.env` is git-ignored. All personal data in the scripts and results is
|
|
**fictional**, generated for demonstration.
|