@plumbus/ai-decision-openai 0.2.0 → 0.3.0-beta.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 +5 -0
- package/README.md +12 -12
- package/dist/.tsbuildinfo +1 -1
- package/instructions/framework.md +6 -6
- package/package.json +4 -4
|
@@ -6,17 +6,17 @@ Decisions API is in public beta; this adapter follows OpenAI's documentation as
|
|
|
6
6
|
|
|
7
7
|
## Install and ownership
|
|
8
8
|
|
|
9
|
-
Install `@plumbus/ai-decision-openai` explicitly. Its core peer is exactly `"0.
|
|
9
|
+
Install `@plumbus/ai-decision-openai` explicitly. Its core peer is exactly `">=0.8.0-beta.0 <0.9.0"`; select the `plumbus-next` dist-tag.
|
|
10
10
|
Consumers reuse Zod/testing utilities from core; do not install them separately, and
|
|
11
11
|
do not install the `openai` SDK for this adapter. Use this package for bounded typed
|
|
12
12
|
decisions. Use core generation and embeddings (the `openai` text provider) for text
|
|
13
13
|
responses and vector inference.
|
|
14
14
|
|
|
15
|
-
Core checks every `ctx.ai` result again with its own copy of `@plumbus/ai-decision
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
Core checks every `ctx.ai` result again with its own copy of `@plumbus/ai-decision`.
|
|
16
|
+
This beta family shares `~0.3.0-beta.1`, including OpenAI rounding support; install
|
|
17
|
+
matching beta versions together. Stable-line apps use core 0.7.9 and shared contracts
|
|
18
|
+
0.2.3+. An older validator rejects OpenAI's rounded answers as `invalid_response`
|
|
19
|
+
after the call is billed.
|
|
20
20
|
|
|
21
21
|
Public exports: `createOpenAIDecisionAdapter` — construct an explicitly configured adapter;
|
|
22
22
|
`OpenAIDecisionInputRates` — bundled input USD per million tokens; `DecisionProviderError` —
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumbus/ai-decision-openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.0",
|
|
4
4
|
"description": "OpenAI Decisions API typed decision provider adapter for Plumbus.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"node": ">=20.6.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@plumbus/core": "0.
|
|
39
|
+
"@plumbus/core": ">=0.8.0-beta.0 <0.9.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@biomejs/biome": "^2.4.6",
|
|
43
43
|
"@types/node": "^25.4.0",
|
|
44
44
|
"typescript": "^5.7.0",
|
|
45
45
|
"vitest": "^3.2.4",
|
|
46
|
-
"@plumbus/core": "0.
|
|
46
|
+
"@plumbus/core": "0.8.0-beta.10"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@plumbus/ai-decision": "~0.
|
|
49
|
+
"@plumbus/ai-decision": "~0.3.0-beta.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsc -b",
|