Skip to content

Commit 46b9044

Browse files
committed
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: - 4428661 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'. - 44da034 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.
1 parent 9b93b7d commit 46b9044

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/gateway/opentelemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ When any subkey is enabled, model and tool spans get bounded, redacted
147147

148148
### Model usage
149149

150-
- `openclaw.tokens` (counter, attrs: `openclaw.token`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`)
150+
- `openclaw.tokens` (counter, attrs: `openclaw.token`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`, `openclaw.agent`)
151151
- `openclaw.cost.usd` (counter, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`)
152152
- `openclaw.run.duration_ms` (histogram, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`)
153153
- `openclaw.context.tokens` (histogram, attrs: `openclaw.context`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`)

docs/plugins/manifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ Model fields:
708708
| `api` | `ModelApi` | Optional per-model API override. |
709709
| `baseUrl` | `string` | Optional per-model base URL override. |
710710
| `headers` | `Record<string, string>` | Optional per-model static headers. |
711-
| `input` | `Array<"text" \| "image" \| "document">` | Modalities the model accepts. |
711+
| `input` | `Array<"text" \| "image" \| "document" \| "audio" \| "video">` | Modalities the model accepts. |
712712
| `reasoning` | `boolean` | Whether the model exposes reasoning behavior. |
713713
| `contextWindow` | `number` | Native provider context window. |
714714
| `contextTokens` | `number` | Optional effective runtime context cap when different from `contextWindow`. |

0 commit comments

Comments
 (0)