@warlock.js/ai-anthropic 5.44.0 → 5.45.0
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/CHANGELOG.md +8 -0
- package/cjs/index.cjs +47 -2
- package/cjs/index.cjs.map +1 -1
- package/esm/known-context-windows.mjs +16 -0
- package/esm/known-context-windows.mjs.map +1 -1
- package/esm/model.d.mts.map +1 -1
- package/esm/model.mjs +3 -1
- package/esm/model.mjs.map +1 -1
- package/esm/utils/to-anthropic-messages.d.mts.map +1 -1
- package/esm/utils/to-anthropic-messages.mjs +29 -1
- package/esm/utils/to-anthropic-messages.mjs.map +1 -1
- package/llms-full.txt +4 -0
- package/package.json +3 -3
- package/skills/SKILL.md +4 -0
package/skills/SKILL.md
CHANGED
|
@@ -503,3 +503,7 @@ and [fee reservations](https://warlock.js.org/v/latest/ai/recipes/cost-budgets-a
|
|
|
503
503
|
## List models
|
|
504
504
|
|
|
505
505
|
`await anthropic.models()` returns `ModelInfo[]` from `GET /v1/models` (release date as `created`, `contextWindow` / `maxOutputTokens` when reported).
|
|
506
|
+
|
|
507
|
+
## Context window
|
|
508
|
+
|
|
509
|
+
Every known Claude release reports `capabilities.contextWindow` (1M for the 4.6 line and the Claude 5 families, 200K for earlier ones); `anthropic.model({ name, contextWindow })` wins and covers unlisted ids.
|