@core-ai/openai-compat 0.16.0 → 0.17.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 +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -52,12 +52,12 @@ should not be interpreted as reasoning output.
|
|
|
52
52
|
|
|
53
53
|
Structured output uses a forced function tool by default for broad endpoint
|
|
54
54
|
compatibility. If the endpoint supports strict JSON Schema response formats,
|
|
55
|
-
opt in with `structuredOutputMode: '
|
|
55
|
+
opt in with `structuredOutputMode: 'json-schema'`:
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
58
|
const provider = createOpenAICompat({
|
|
59
59
|
apiKey: process.env.API_KEY,
|
|
60
60
|
baseURL: 'https://gateway.example.com/v1',
|
|
61
|
-
structuredOutputMode: '
|
|
61
|
+
structuredOutputMode: 'json-schema',
|
|
62
62
|
});
|
|
63
63
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ type OpenAICompatProviderOptions = OpenAIProviderBaseOptions & {
|
|
|
6
6
|
reasoning?: boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Structured output transport. Defaults to `tool` for broad compatibility.
|
|
9
|
-
* Use `
|
|
9
|
+
* Use `json-schema` when the endpoint supports strict JSON Schema response formats.
|
|
10
|
+
* Use `json-object` when it only supports JSON Mode.
|
|
10
11
|
*/
|
|
11
12
|
structuredOutputMode?: OpenAIStructuredOutputMode;
|
|
12
13
|
/**
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@core-ai/openai-compat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "OpenAI-compatible Chat Completions provider for @core-ai/core-ai",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Omnifact (https://omnifact.ai)",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"test:watch": "vitest"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@core-ai/core-ai": "^0.
|
|
49
|
-
"@core-ai/openai": "^0.
|
|
48
|
+
"@core-ai/core-ai": "^0.17.0",
|
|
49
|
+
"@core-ai/openai": "^0.17.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"zod": "^4.0.0"
|