@nathapp/nax-ai 0.88.0 → 0.89.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/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,8 +39,8 @@ unchanged. Rename locally stored Azure credentials to the new provider key
|
|
|
39
39
|
before using them.
|
|
40
40
|
|
|
41
41
|
The refreshed catalog changes pricing, context windows, output limits, and
|
|
42
|
-
thinking capabilities
|
|
43
|
-
|
|
42
|
+
thinking capabilities, and some models may now use a different protocol. Check
|
|
43
|
+
any override that pins a protocol against the refreshed catalog.
|
|
44
44
|
Only chat models and providers with chat models are exposed. Image generation,
|
|
45
45
|
classifiers, and the new `openai` ChatGPT OAuth flow are outside this client's
|
|
46
46
|
current API; permitted OAuth flows remain `openai-codex` and `openrouter`.
|
|
@@ -134,7 +134,7 @@ A `ToolDefinition` can carry an optional `constrainedSampling: { type: "json_sch
|
|
|
134
134
|
|
|
135
135
|
`ResolvedModel.supportsStrictToolSampling === true` identifies a model whose catalog explicitly declares strict JSON Schema tool-argument sampling support; an absent value means nax-ai has no declaration and is not a statement about pi-ai's runtime defaults. This capability constrains arguments only when a tool is called: it does not require a tool call and does not provide structured completion output.
|
|
136
136
|
|
|
137
|
-
Do not filter models on an absent value. Whether an undeclared model behaves as supported is a property of the protocol
|
|
137
|
+
Do not filter models on an absent value. Whether an undeclared model behaves as supported is a property of the protocol. When this was last checked (pi-ai 0.85.1; the package now pins 1.1.0, so re-check on a bump), pi-ai defaulted the two opposite ways: `anthropic-messages` treats an undeclared model as unsupported, while `openai-completions` falls back to endpoint detection that accepts most endpoints. Skipping every model without a declaration is therefore correct for the former and needlessly discards working models for the latter, where a `strict: "require"` call against an undeclared model succeeds whenever pi-ai's detection accepts the endpoint. Only `true` is a positive statement; the field records what the catalog declared, not what a request will do.
|
|
138
138
|
|
|
139
139
|
### Logging in
|
|
140
140
|
|
|
@@ -175,7 +175,7 @@ That constraint is what lets the implementation underneath this surface be repla
|
|
|
175
175
|
|
|
176
176
|
## Requirements
|
|
177
177
|
|
|
178
|
-
- **Node >= 22.19** — the compatibility target.
|
|
178
|
+
- **Node >= 22.19** — the compatibility target. The built package is also smoke-tested on Bun in CI.
|
|
179
179
|
- ESM only. There is no CommonJS build.
|
|
180
180
|
|
|
181
181
|
The package must not use runtime-specific APIs. `Bun.*` and `bun:` imports are rejected by a build gate (`scripts/check-no-bun-apis.ts`) because the primary consumer runs on Bun, so nothing would fail there — the breakage would surface only for someone else, on install.
|
package/package.json
CHANGED