mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
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: -4428661779Alvin 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'. -44da034516Vincent (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.
This commit is contained in:
@@ -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`)
|
||||
|
||||
@@ -708,7 +708,7 @@ Model fields:
|
||||
| `api` | `ModelApi` | Optional per-model API override. |
|
||||
| `baseUrl` | `string` | Optional per-model base URL override. |
|
||||
| `headers` | `Record<string, string>` | 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`. |
|
||||
|
||||
Reference in New Issue
Block a user