You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8b0b304
Browse filesBrowse the repository at this point in the historyBrowse files
Built-in providers and models live in the static catalog at `packages/cli/src/provider/catalog.json` (one model per line, in the `Provider.Model` shape; `api.url` is left out for providers whose SDK knows its own endpoint, and each provider also carries `npm`/`api` defaults for models added through config). To add or update a built-in model, edit that file; providers that need custom loading also need an entry in `CUSTOM_LOADERS` in `packages/cli/src/provider/provider.ts`.
30
+
31
+
Any other OpenAI-compatible provider does not need a code change: users define it under `provider` in `aictrl.json`.
Copy file name to clipboardExpand all lines: EVENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@ For compatibility with sessions written before usage provenance was persisted, a
268
268
**`context`** (context-window utilization):
269
269
270
270
-`used` (number) — tokens occupying the model's context window this turn: `input + cache.read + cache.write`.
271
-
-`limit` (number) — the model's total context-window size in tokens, sourced from the models.dev registry(`model.limit.context`).
271
+
-`limit` (number) — the model's total context-window size in tokens, sourced from the provider registry: the built-in model catalog plus `provider` config (`model.limit.context`). With `aictrl run --attach`, the attached server's provider registry is used instead.
272
272
-`ratio` (number) — `used / limit` (≥0; may exceed 1 if usage exceeds the model's registered limit). A value approaching or exceeding 1 signals context-exhaustion risk.
273
273
-`null` — emitted when the model's context limit is not known (e.g. unregistered custom endpoint), or usage is missing.
0 commit comments