@warlock.js/ai-openai 5.34.0 → 5.34.2
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 +6 -0
- package/llms-full.txt +13 -0
- package/llms.txt +1 -0
- package/package.json +3 -3
- package/skills/index.md +9 -0
- package/skills/README.md +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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.34.2 - 2026-10-19
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Replace the loose skill catalog with a package index that points to the provider setup topic, and include orientation in generated LLM projections.
|
|
12
|
+
|
|
7
13
|
## 5.32.0 - 2026-10-18
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/llms-full.txt
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
> Generated artifact. Concatenates every SKILL.md and reference file under `@warlock.js/ai-openai/skills/`. Re-run `node scripts/generate-llms.mjs` after any change.
|
|
6
6
|
|
|
7
|
+
## Package orientation
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
description: "Provider adapter for OpenAI and compatible gateways including Azure and OpenRouter in Warlock AI applications. Exports `OpenAISDK` with model and provider configuration for the shared AI contracts. Use when connecting this provider, configuring baseURL, reasoning, prompt caching, embeddings and image models, or diagnosing provider requests and usage. Read `setup-openai` for construction and examples using OPENAI_API_KEY. Not this package: agent loops, tools and workflows → @warlock.js/ai; HTTP and MCP tools → @warlock.js/ai-tools."
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# @warlock.js/ai-openai
|
|
14
|
+
|
|
15
|
+
This adapter supplies provider-backed models for `@warlock.js/ai`. Read `setup-openai.md` to construct `OpenAISDK`, configure baseURL, reasoning, prompt caching, embeddings and image models, and understand provider-specific behavior.
|
|
16
|
+
|
|
17
|
+
For agent composition, read the `run-ai-agent` topic of the `@warlock.js/ai` package. Keep provider configuration here and application orchestration in that package.
|
|
18
|
+
|
|
19
|
+
|
|
7
20
|
## setup-openai `@warlock.js/ai-openai/setup-openai/SKILL.md`
|
|
8
21
|
|
|
9
22
|
---
|
package/llms.txt
CHANGED
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
|
|
7
7
|
## Skills
|
|
8
8
|
|
|
9
|
+
- [Package orientation](@warlock.js/ai-openai/skills/index.md): Provider adapter for OpenAI and compatible gateways including Azure and OpenRouter in Warlock AI applications. Exports `OpenAISDK` with model and provider configuration for the shared AI contracts. Use when connecting this provider, configuring baseURL, reasoning, prompt caching, embeddings and image models, or diagnosing provider requests and usage. Read `setup-openai` for construction and examples using OPENAI_API_KEY. Not this package: agent loops, tools and workflows → @warlock.js/ai; HTTP and MCP tools → @warlock.js/ai-tools.
|
|
9
10
|
- [setup-openai](@warlock.js/ai-openai/setup-openai/SKILL.md): Wire @warlock.js/ai-openai — new OpenAISDK({apiKey, baseURL?, provider?, pricing?}) for OpenAI / Azure / OpenRouter, .model({name, vision?, reasoning?, structuredOutput?, responseFormat?, pdf?, audio?}) for ModelContract, .embedder({name, dimensions?}) for embeddings, .image({name, pricing?}) for gpt-image-*/dall-e-* image generation (via ai.image). PDF input maps to OpenAI file parts (opt-in pdf:true), audio input to input_audio (opt-in audio:true). Triggers: `providerOptions`, `OpenAICallOptions`, `countTokens`, `OpenAISDK`, `kimiSearchTool`, `kimiFetchTool`, `KIMI_SERVER_TOOL_PRICING`, `.model`, `.embedder`, `.image`, `.embed`, `.embedMany`, `baseURL`, `pricing`, `responseSchema`, `responseFormat`, `reasoning_effort`, `reasoningTokens`, `cachedTokens`, `cacheWriteTokens`, `inputIncludesCache`, `OPENAI_MODEL_PRICING`, `openAIPricingFor`, `ProviderOverloadedError`, `gpt-image`, `dall-e`, `ai.image`, `pdf input`, `input_audio`, o-series / gpt-5 reasoning, `api: "responses"`, Responses API, `ai.providerTool`, hosted `web_search`, `streamChunks`, `reasoning_content`, reasoning with tools, prompt caching; "wire openai into a warlock agent", "configure gpt-4o", "use o3 / gpt-5 reasoning effort", "route through openrouter or azure openai", "openai embeddings with warlock", "generate images with gpt-image / dall-e", "send a pdf / audio to gpt-4o"; typical import `import { OpenAISDK } from "@warlock.js/ai-openai"`. Skip: the ai.image verb surface — the `generate-images` topic of the `warlock-js-ai` skill; agent wiring — the `run-ai-agent` topic of the `warlock-js-ai` skill; adapter comparison — the `pick-ai-provider` topic of the `warlock-js-ai` skill; competing adapters `@warlock.js/ai-anthropic`, `@warlock.js/ai-bedrock`, `@warlock.js/ai-google`, `@warlock.js/ai-ollama`; raw `openai` SDK, Vercel `@ai-sdk/openai`.
|
package/package.json
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"openai": "^7.23.0",
|
|
18
|
-
"@warlock.js/logger": "5.34.
|
|
18
|
+
"@warlock.js/logger": "5.34.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@warlock.js/ai": "5.34.
|
|
21
|
+
"@warlock.js/ai": "5.34.2"
|
|
22
22
|
},
|
|
23
|
-
"version": "5.34.
|
|
23
|
+
"version": "5.34.2",
|
|
24
24
|
"main": "./cjs/index.cjs",
|
|
25
25
|
"module": "./esm/index.mjs",
|
|
26
26
|
"types": "./esm/index.d.mts",
|
package/skills/index.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Provider adapter for OpenAI and compatible gateways including Azure and OpenRouter in Warlock AI applications. Exports `OpenAISDK` with model and provider configuration for the shared AI contracts. Use when connecting this provider, configuring baseURL, reasoning, prompt caching, embeddings and image models, or diagnosing provider requests and usage. Read `setup-openai` for construction and examples using OPENAI_API_KEY. Not this package: agent loops, tools and workflows → @warlock.js/ai; HTTP and MCP tools → @warlock.js/ai-tools."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# @warlock.js/ai-openai
|
|
6
|
+
|
|
7
|
+
This adapter supplies provider-backed models for `@warlock.js/ai`. Read `setup-openai.md` to construct `OpenAISDK`, configure baseURL, reasoning, prompt caching, embeddings and image models, and understand provider-specific behavior.
|
|
8
|
+
|
|
9
|
+
For agent composition, read the `run-ai-agent` topic of the `@warlock.js/ai` package. Keep provider configuration here and application orchestration in that package.
|
package/skills/README.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# `@warlock.js/ai-openai` — skills index
|
|
2
|
-
|
|
3
|
-
Per-task skills. Cross-references name the topic ("the `<topic>` topic"), and for another package add its skill ("the `<topic>` topic of the `warlock-js-<pkg>` skill").
|
|
4
|
-
|
|
5
|
-
## Skills
|
|
6
|
-
|
|
7
|
-
### `setup-openai`
|
|
8
|
-
|
|
9
|
-
Wire @warlock.js/ai-openai — new OpenAISDK({apiKey, baseURL?, provider?, pricing?}) for OpenAI / Azure / OpenRouter, .model({name, vision?, reasoning?, structuredOutput?, responseFormat?}) for ModelContract, .embedder({name, dimensions?}) for embeddings. Covers o-series / gpt-5 reasoning (reasoning_effort), automatic prompt caching with cost-truth usage (cachedTokens/reasoningTokens), and the per-model pricing registry. Load when wiring an OpenAI-backed model into a @warlock.js agent or routing via an OpenAI-compatible gateway.
|