@x12i/openrouter-runtime 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,7 +63,7 @@ You can still pass an explicit `logger` to override the console logger.
63
63
 
64
64
  `agentId` is optional. When it is set, OpenRouter's activity log shows it in the **App** column. The runtime sends that value as `X-Title` and `X-OpenRouter-Title`, after `defaultHeaders`, so it wins over `appAttribution.appName` for that call. `appAttribution.siteUrl` is still sent as `HTTP-Referer` when set. Omit `agentId` when you do not have one.
65
65
 
66
- `metadata` is optional. String, number, and boolean values, plus `agentId`, are stored as one record on the request `metadata` object: `m.0`, `m.1`, and so on. Read it back with `decodeProviderMetadata`. The original `metadata` object is still copied onto the normalized response. Objects and arrays are not stored in the record. The record must fit in 16 pieces of 256 characters.
66
+ `metadata` is optional. String, number, and boolean values, plus `agentId`, are stored as one record on the request `metadata` object: `m.0`, `m.1`, and so on. Read it back with `decodeProviderMetadata` (wire object or its JSON string, such as Cloudflare `cf-aig-metadata`). The original `metadata` object is still copied onto the normalized response. Objects and arrays are not stored in the record. The record must fit in 16 pieces of 256 characters.
67
67
 
68
68
  ```ts
69
69
  await runtime.run({