docs: add examples/ (live demo + RESULTS) and slim the README examples

- examples/demo.mjs: live demo (5 single messages up to 5 people with rare
  auto-coined attributes + 5 escalating multi-turn conversations with
  long-range back-references); self-references the package via exports
- examples/RESULTS.md: its generated output (10 examples)
- examples/.env.example + examples/README.md; `npm run example` script
- README: replace the long examples section with two representative examples
  (dense 5-person message + 6-turn conversation) and a badge/link to
  examples/RESULTS.md for the full set
- eslint ignores examples/**, prettier ignores generated examples/RESULTS.md,
  .gitignore un-ignores .env.example

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mobiletic
2026-07-01 15:22:00 +01:00
parent d119c366b7
commit dcb0a3a448
9 changed files with 771 additions and 124 deletions

6
examples/.env.example Normal file
View File

@@ -0,0 +1,6 @@
# Copy to examples/.env and fill in — .env is git-ignored, never commit your key.
# Any OpenAI-compatible endpoint works; the package appends "/chat/completions".
INFOMANIAK_AI_BASE_URL= # e.g. https://api.infomaniak.com/2/ai/<product_id>/openai/v1
INFOMANIAK_AI_API_KEY= # your API token
GEMMA_MODEL= # model id (e.g. google/gemma-4-31B-it)
PRIVACY_GEMMA_TIMEOUT_MS=60000