From 46b9044c3f9d8519a56024f032b4b6e0b42aaf2b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 25 Apr 2026 21:39:44 -0700 Subject: [PATCH] docs: update model input modalities and OTEL token-metric attrs Two recent commits added user-facing surface that left signature-style references in docs stale: - 4428661779 Alvin Tang (#20721, thanks @alvinttang) extends the configured model 'input' modality set to also accept 'audio' and 'video', matching what providers like LM Studio already report. docs/plugins/manifest.md model-fields table listed only 'text | image | document', so add 'audio' and 'video'. - 44da034516 Vincent (thanks @oc-factus) adds a bounded openclaw.agent attribute on the openclaw.tokens counter so per-agent dashboards can group usage. docs/gateway/opentelemetry.md metric reference omitted it; add it to the attrs list. --- docs/gateway/opentelemetry.md | 2 +- docs/plugins/manifest.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gateway/opentelemetry.md b/docs/gateway/opentelemetry.md index fee7172ca81..2331636514c 100644 --- a/docs/gateway/opentelemetry.md +++ b/docs/gateway/opentelemetry.md @@ -147,7 +147,7 @@ When any subkey is enabled, model and tool spans get bounded, redacted ### Model usage -- `openclaw.tokens` (counter, attrs: `openclaw.token`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`) +- `openclaw.tokens` (counter, attrs: `openclaw.token`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`, `openclaw.agent`) - `openclaw.cost.usd` (counter, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`) - `openclaw.run.duration_ms` (histogram, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`) - `openclaw.context.tokens` (histogram, attrs: `openclaw.context`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`) diff --git a/docs/plugins/manifest.md b/docs/plugins/manifest.md index 4e392e99b56..40f9cda5397 100644 --- a/docs/plugins/manifest.md +++ b/docs/plugins/manifest.md @@ -708,7 +708,7 @@ Model fields: | `api` | `ModelApi` | Optional per-model API override. | | `baseUrl` | `string` | Optional per-model base URL override. | | `headers` | `Record` | Optional per-model static headers. | -| `input` | `Array<"text" \| "image" \| "document">` | Modalities the model accepts. | +| `input` | `Array<"text" \| "image" \| "document" \| "audio" \| "video">` | Modalities the model accepts. | | `reasoning` | `boolean` | Whether the model exposes reasoning behavior. | | `contextWindow` | `number` | Native provider context window. | | `contextTokens` | `number` | Optional effective runtime context cap when different from `contextWindow`. |