@warlock.js/ai-openai 5.39.2 → 5.40.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 +12 -0
- package/cjs/index.cjs +799 -623
- package/cjs/index.cjs.map +1 -1
- package/esm/index.d.mts +2 -1
- package/esm/index.mjs +2 -1
- package/esm/list-models.mjs +54 -0
- package/esm/list-models.mjs.map +1 -0
- package/esm/model.mjs +31 -1
- package/esm/model.mjs.map +1 -1
- package/esm/native-search.mjs +47 -0
- package/esm/native-search.mjs.map +1 -0
- package/esm/provider-options.d.mts +1 -1
- package/esm/responses-model.d.mts +155 -0
- package/esm/responses-model.d.mts.map +1 -0
- package/esm/responses-model.mjs +15 -6
- package/esm/responses-model.mjs.map +1 -1
- package/esm/sdk.d.mts +28 -1
- package/esm/sdk.d.mts.map +1 -1
- package/esm/sdk.mjs +49 -1
- package/esm/sdk.mjs.map +1 -1
- package/esm/utils/hosted-output.mjs +2 -2
- package/esm/utils/hosted-output.mjs.map +1 -1
- package/llms-full.txt +8 -0
- package/package.json +3 -3
- package/skills/SKILL.md +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to `@warlock.js/ai-openai` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.40.0 - 2026-10-29
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `openai.models()` lists the models the key can use from `GET /models` as `ModelInfo[]`, following pagination. Works on OpenAI-compatible gateways too, with the SDK's provider label. Groq's `context_window` and `active`, Mistral's `name`, `description`, `max_context_length` and `capabilities`, and `created_at` dates are read when present.
|
|
12
|
+
- `OpenAIResponsesModel` is exported, and `OpenAISDK.compatibleResponses()` builds it for vendor packages that serve `/v1/responses` (used by the xAI adapter). That mode sends `store: false` and leaves out the OpenAI-only `include` fields.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- On the direct `"openai"` provider, a call that carries the hosted `web_search` tool (or its dated and `_preview` variants) is now served by the Responses API automatically instead of failing with a 400 on Chat Completions. Calls without it stay on Chat Completions.
|
|
17
|
+
- Hosted `web_search` now fails with a clear `InvalidRequestError`, before any request, on models OpenAI documents as unable to search (`gpt-3.5*`, `gpt-4`, `gpt-4-turbo`, `gpt-4.1-nano`, `o1-mini`, `o1-preview`, `o3-mini` and non-chat ids), on `gpt-5*` with minimal reasoning, and on a model pinned to `api: "chat"`. Nothing falls back silently.
|
|
18
|
+
|
|
7
19
|
## 5.34.3 - 2026-10-20
|
|
8
20
|
|
|
9
21
|
### Changed
|