@core-ai/openai 0.25.0 → 0.26.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.
|
@@ -229,7 +229,8 @@ var openaiResponsesGenerateProviderOptionsSchema = z.object({
|
|
|
229
229
|
serviceTier: z.enum(["auto", "default", "flex", "scale", "priority"]).optional(),
|
|
230
230
|
include: z.array(z.string()).optional(),
|
|
231
231
|
parallelToolCalls: z.boolean().optional(),
|
|
232
|
-
user: z.string().optional()
|
|
232
|
+
user: z.string().optional(),
|
|
233
|
+
promptCacheKey: z.string().optional()
|
|
233
234
|
}).strict();
|
|
234
235
|
var openaiChatGenerateProviderOptionsSchema = openaiResponsesGenerateProviderOptionsSchema.omit({
|
|
235
236
|
include: true
|
|
@@ -260,11 +261,14 @@ function parseOpenAIProviderOptions(providerOptions, key, schema) {
|
|
|
260
261
|
}
|
|
261
262
|
return schema.parse(rawOptions);
|
|
262
263
|
}
|
|
263
|
-
function parseOpenAIResponsesGenerateProviderOptions(providerOptions
|
|
264
|
+
function parseOpenAIResponsesGenerateProviderOptions(providerOptions, config = {
|
|
265
|
+
key: "openai",
|
|
266
|
+
schema: openaiResponsesGenerateProviderOptionsSchema
|
|
267
|
+
}) {
|
|
264
268
|
return parseOpenAIProviderOptions(
|
|
265
269
|
providerOptions,
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
config.key,
|
|
271
|
+
config.schema
|
|
268
272
|
);
|
|
269
273
|
}
|
|
270
274
|
function parseOpenAIChatGenerateProviderOptions(providerOptions, config = {
|
|
@@ -353,6 +357,14 @@ function convertToolChoice(choice) {
|
|
|
353
357
|
};
|
|
354
358
|
}
|
|
355
359
|
|
|
360
|
+
// src/shared/usage.ts
|
|
361
|
+
function normalizeOutputTokens(outputTokens, reasoningTokens, accounting = "included") {
|
|
362
|
+
if (accounting === "separate" && reasoningTokens !== void 0) {
|
|
363
|
+
return outputTokens + reasoningTokens;
|
|
364
|
+
}
|
|
365
|
+
return outputTokens;
|
|
366
|
+
}
|
|
367
|
+
|
|
356
368
|
// src/shared/utils.ts
|
|
357
369
|
import { ValidationError } from "@core-ai/core-ai";
|
|
358
370
|
function safeParseJsonObject(json) {
|
|
@@ -603,7 +615,8 @@ function mapOpenAIProviderOptionsToRequestFields(options) {
|
|
|
603
615
|
...options?.stopSequences ? { stop: options.stopSequences } : {},
|
|
604
616
|
...options?.frequencyPenalty !== void 0 ? { frequency_penalty: options.frequencyPenalty } : {},
|
|
605
617
|
...options?.presencePenalty !== void 0 ? { presence_penalty: options.presencePenalty } : {},
|
|
606
|
-
...options?.seed !== void 0 ? { seed: options.seed } : {}
|
|
618
|
+
...options?.seed !== void 0 ? { seed: options.seed } : {},
|
|
619
|
+
...options?.promptCacheKey !== void 0 ? { prompt_cache_key: options.promptCacheKey } : {}
|
|
607
620
|
};
|
|
608
621
|
}
|
|
609
622
|
function mapResponseFormatToRequestFields(format) {
|
|
@@ -667,7 +680,11 @@ function mapGenerateResponse(response, adapterOptions = {}) {
|
|
|
667
680
|
finishReason: mapFinishReason(firstChoice.finish_reason),
|
|
668
681
|
usage: {
|
|
669
682
|
inputTokens: response.usage?.prompt_tokens ?? 0,
|
|
670
|
-
outputTokens:
|
|
683
|
+
outputTokens: normalizeOutputTokens(
|
|
684
|
+
response.usage?.completion_tokens ?? 0,
|
|
685
|
+
reasoningTokens,
|
|
686
|
+
adapterOptions.reasoningTokenAccounting
|
|
687
|
+
),
|
|
671
688
|
inputTokenDetails: {
|
|
672
689
|
cacheReadTokens: response.usage?.prompt_tokens_details?.cached_tokens ?? 0,
|
|
673
690
|
cacheWriteTokens: 0
|
|
@@ -766,7 +783,11 @@ async function* transformStream(stream, adapterOptions = {}) {
|
|
|
766
783
|
const reasoningTokens = chunk.usage.completion_tokens_details?.reasoning_tokens;
|
|
767
784
|
usage = {
|
|
768
785
|
inputTokens: chunk.usage.prompt_tokens ?? 0,
|
|
769
|
-
outputTokens:
|
|
786
|
+
outputTokens: normalizeOutputTokens(
|
|
787
|
+
chunk.usage.completion_tokens ?? 0,
|
|
788
|
+
reasoningTokens,
|
|
789
|
+
adapterOptions.reasoningTokenAccounting
|
|
790
|
+
),
|
|
770
791
|
inputTokenDetails: {
|
|
771
792
|
cacheReadTokens: chunk.usage.prompt_tokens_details?.cached_tokens ?? 0,
|
|
772
793
|
cacheWriteTokens: 0
|
|
@@ -1361,6 +1382,7 @@ function createOpenAIChatCompletionsModel(client, modelId, modelOptions) {
|
|
|
1361
1382
|
capabilities,
|
|
1362
1383
|
compatibility: compatibilityOptions !== void 0 && compatibilityOptions.reasoning !== false,
|
|
1363
1384
|
maxTokensParameter: compatibilityOptions?.maxTokensParameter,
|
|
1385
|
+
reasoningTokenAccounting: compatibilityOptions?.reasoningTokenAccounting,
|
|
1364
1386
|
providerId: provider,
|
|
1365
1387
|
providerOptions: modelOptions.providerOptions,
|
|
1366
1388
|
reasoning: typeof compatibilityOptions?.reasoning === "object" ? compatibilityOptions.reasoning : void 0
|
|
@@ -1626,7 +1648,8 @@ function createStreamRequest2(modelId, options, adapterOptions = {}) {
|
|
|
1626
1648
|
function createRequest2(modelId, options, stream, adapterOptions) {
|
|
1627
1649
|
const resolved = resolveAdapterOptions(modelId, adapterOptions);
|
|
1628
1650
|
const openaiOptions = parseOpenAIResponsesGenerateProviderOptions(
|
|
1629
|
-
options.providerOptions
|
|
1651
|
+
options.providerOptions,
|
|
1652
|
+
adapterOptions.providerOptions
|
|
1630
1653
|
);
|
|
1631
1654
|
const request = {
|
|
1632
1655
|
...createRequestBase2(modelId, options, resolved),
|
|
@@ -1634,7 +1657,8 @@ function createRequest2(modelId, options, stream, adapterOptions) {
|
|
|
1634
1657
|
...options.structuredOutputFormat ? { text: { format: options.structuredOutputFormat } } : {},
|
|
1635
1658
|
...mapOpenAIProviderOptionsToRequestFields2(openaiOptions)
|
|
1636
1659
|
};
|
|
1637
|
-
|
|
1660
|
+
const reasoningMode = resolved.capabilities.reasoning.mode;
|
|
1661
|
+
if (reasoningMode === "always-on" || options.reasoning && reasoningMode !== "unsupported") {
|
|
1638
1662
|
request.include = mergeInclude(request.include, [
|
|
1639
1663
|
ENCRYPTED_REASONING_INCLUDE
|
|
1640
1664
|
]);
|
|
@@ -1710,7 +1734,8 @@ function mapOpenAIProviderOptionsToRequestFields2(options) {
|
|
|
1710
1734
|
...options?.serviceTier !== void 0 ? { service_tier: options.serviceTier } : {},
|
|
1711
1735
|
...options?.include ? { include: options.include } : {},
|
|
1712
1736
|
...options?.parallelToolCalls !== void 0 ? { parallel_tool_calls: options.parallelToolCalls } : {},
|
|
1713
|
-
...options?.user !== void 0 ? { user: options.user } : {}
|
|
1737
|
+
...options?.user !== void 0 ? { user: options.user } : {},
|
|
1738
|
+
...options?.promptCacheKey !== void 0 ? { prompt_cache_key: options.promptCacheKey } : {}
|
|
1714
1739
|
};
|
|
1715
1740
|
}
|
|
1716
1741
|
function mapGenerateResponse2(response, adapterOptions = {}) {
|
|
@@ -2166,7 +2191,7 @@ function mapReasoningToRequestFields2(options, capabilities) {
|
|
|
2166
2191
|
if (!options.reasoning) {
|
|
2167
2192
|
return {};
|
|
2168
2193
|
}
|
|
2169
|
-
if (capabilities.reasoning.mode === "unsupported") {
|
|
2194
|
+
if (capabilities.reasoning.mode === "unsupported" || capabilities.reasoning.supportedEfforts.length === 0) {
|
|
2170
2195
|
return {};
|
|
2171
2196
|
}
|
|
2172
2197
|
const effort = toOpenAIReasoningEffort(
|
|
@@ -2193,9 +2218,13 @@ function isReasoningItem(item) {
|
|
|
2193
2218
|
}
|
|
2194
2219
|
|
|
2195
2220
|
// src/chat-model.ts
|
|
2196
|
-
function createOpenAIChatModel(client, modelId, capabilities,
|
|
2197
|
-
const provider = providerId;
|
|
2198
|
-
const adapterOptions = {
|
|
2221
|
+
function createOpenAIChatModel(client, modelId, capabilities, modelOptions = {}) {
|
|
2222
|
+
const provider = modelOptions.providerId ?? DEFAULT_PROVIDER_ID;
|
|
2223
|
+
const adapterOptions = {
|
|
2224
|
+
capabilities,
|
|
2225
|
+
providerId: provider,
|
|
2226
|
+
providerOptions: modelOptions.providerOptions
|
|
2227
|
+
};
|
|
2199
2228
|
async function callOpenAIResponsesApi(request, signal) {
|
|
2200
2229
|
try {
|
|
2201
2230
|
return await client.responses.create(request, {
|
|
@@ -2372,7 +2401,13 @@ function createOpenAIProvider(options, factoryOptions = {}) {
|
|
|
2372
2401
|
client,
|
|
2373
2402
|
modelId,
|
|
2374
2403
|
toOpenAIResponsesCapabilities(resolveCapabilities(modelId)),
|
|
2375
|
-
|
|
2404
|
+
{
|
|
2405
|
+
providerId,
|
|
2406
|
+
providerOptions: {
|
|
2407
|
+
key: providerId,
|
|
2408
|
+
schema: factoryOptions.responsesProviderOptionsSchema ?? openaiResponsesGenerateProviderOptionsSchema
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2376
2411
|
);
|
|
2377
2412
|
const createChatCompletionsModel = (modelId) => {
|
|
2378
2413
|
const capabilities = resolveCapabilities(modelId);
|
|
@@ -2382,14 +2417,15 @@ function createOpenAIProvider(options, factoryOptions = {}) {
|
|
|
2382
2417
|
providerMetadataKey: compatibilityOptions.reasoning.providerMetadataKey ?? providerId
|
|
2383
2418
|
} : compatibilityOptions?.reasoning ?? true,
|
|
2384
2419
|
structuredOutputMode: compatibilityOptions?.structuredOutputMode,
|
|
2385
|
-
maxTokensParameter: compatibilityOptions?.maxTokensParameter
|
|
2420
|
+
maxTokensParameter: compatibilityOptions?.maxTokensParameter,
|
|
2421
|
+
reasoningTokenAccounting: compatibilityOptions?.reasoningTokenAccounting
|
|
2386
2422
|
} : void 0;
|
|
2387
2423
|
return createOpenAIChatCompletionsModel(client, modelId, {
|
|
2388
2424
|
providerId,
|
|
2389
2425
|
capabilities,
|
|
2390
2426
|
compatibility,
|
|
2391
2427
|
providerOptions: {
|
|
2392
|
-
key:
|
|
2428
|
+
key: providerId,
|
|
2393
2429
|
schema: factoryOptions.providerOptionsSchema ?? openaiChatGenerateProviderOptionsSchema
|
|
2394
2430
|
}
|
|
2395
2431
|
});
|
package/dist/compat.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _core_ai_core_ai from '@core-ai/core-ai';
|
|
2
2
|
import { ChatModel } from '@core-ai/core-ai';
|
|
3
|
-
import { O as OpenAIChatClient, a as OpenAIProvider, b as OpenAIProviderBaseOptions } from './provider-factory-
|
|
4
|
-
export { c as OpenAICompatGenerateProviderOptions, d as OpenAICompatRequestOptions, o as openaiCompatGenerateProviderOptionsSchema, e as openaiCompatProviderOptionsSchema } from './provider-factory-
|
|
3
|
+
import { O as OpenAIChatClient, a as OpenAIProvider, b as OpenAIProviderBaseOptions } from './provider-factory-BIr9zZ2d.js';
|
|
4
|
+
export { c as OpenAICompatGenerateProviderOptions, d as OpenAICompatRequestOptions, o as openaiCompatGenerateProviderOptionsSchema, e as openaiCompatProviderOptionsSchema } from './provider-factory-BIr9zZ2d.js';
|
|
5
5
|
import 'openai';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/compat.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as OpenAIProvider$1, b as OpenAIProviderBaseOptions } from './provider-factory-
|
|
2
|
-
export { O as OpenAIChatClient, f as OpenAIChatCompletionsModelOptions, g as OpenAIChatGenerateProviderOptions, h as OpenAIChatProvider, c as OpenAICompatGenerateProviderOptions, d as OpenAICompatRequestOptions,
|
|
1
|
+
import { a as OpenAIProvider$1, b as OpenAIProviderBaseOptions } from './provider-factory-BIr9zZ2d.js';
|
|
2
|
+
export { O as OpenAIChatClient, f as OpenAIChatCompletionsModelOptions, g as OpenAIChatGenerateProviderOptions, h as OpenAIChatGenerateProviderOptionsConfig, i as OpenAIChatProvider, c as OpenAICompatGenerateProviderOptions, d as OpenAICompatRequestOptions, j as OpenAICompatibility, k as OpenAICompatibilityOptions, l as OpenAIEmbedProviderOptions, m as OpenAIImageProviderOptions, n as OpenAIModelCapabilities, p as OpenAIProviderFactoryOptions, q as OpenAIReasoningTokenAccounting, r as OpenAIResponsesGenerateProviderOptions, s as OpenAIResponsesGenerateProviderOptionsConfig, t as OpenAIResponsesProviderOptions, u as OpenAIStructuredOutputMode, v as createOpenAIChatCompletionsModel, w as createOpenAIProvider, x as getOpenAIModelCapabilities, y as openaiChatGenerateProviderOptionsSchema, o as openaiCompatGenerateProviderOptionsSchema, e as openaiCompatProviderOptionsSchema, z as openaiEmbedProviderOptionsSchema, A as openaiImageProviderOptionsSchema, B as openaiResponsesGenerateProviderOptionsSchema, C as openaiResponsesProviderOptionsSchema } from './provider-factory-BIr9zZ2d.js';
|
|
3
3
|
import 'openai';
|
|
4
4
|
import '@core-ai/core-ai';
|
|
5
5
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
openaiImageProviderOptionsSchema,
|
|
11
11
|
openaiResponsesGenerateProviderOptionsSchema,
|
|
12
12
|
openaiResponsesProviderOptionsSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FOVN4IGD.js";
|
|
14
14
|
|
|
15
15
|
// src/provider.ts
|
|
16
16
|
function createOpenAI(options = {}) {
|
|
@@ -12,6 +12,13 @@ declare function getOpenAIModelCapabilities(modelId: string): OpenAIModelCapabil
|
|
|
12
12
|
|
|
13
13
|
type OpenAIStructuredOutputMode = 'json-schema' | 'tool' | 'json-object';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* How an endpoint reports reasoning tokens relative to its output-token total.
|
|
17
|
+
* `included` (OpenAI): the output total already contains them. `separate`
|
|
18
|
+
* (e.g. xAI Chat Completions): they are reported only in the details object.
|
|
19
|
+
*/
|
|
20
|
+
type OpenAIReasoningTokenAccounting = 'included' | 'separate';
|
|
21
|
+
|
|
15
22
|
type OpenAIReasoningCompatibilityOptions = {
|
|
16
23
|
requestField: 'reasoning_content' | 'reasoning';
|
|
17
24
|
providerMetadataKey?: string;
|
|
@@ -20,10 +27,12 @@ type OpenAICompatibilityOptions = {
|
|
|
20
27
|
reasoning?: boolean | OpenAIReasoningCompatibilityOptions;
|
|
21
28
|
structuredOutputMode?: OpenAIStructuredOutputMode;
|
|
22
29
|
maxTokensParameter?: OpenAIChatCompletionsCapabilities['maxTokensParameter'];
|
|
30
|
+
/** Chat Completions only. Defaults to `included`. */
|
|
31
|
+
reasoningTokenAccounting?: OpenAIReasoningTokenAccounting;
|
|
23
32
|
};
|
|
24
33
|
type OpenAICompatibility = boolean | OpenAICompatibilityOptions;
|
|
25
34
|
type OpenAIResolvedReasoningCompatibilityOptions = Required<OpenAIReasoningCompatibilityOptions>;
|
|
26
|
-
type OpenAIResolvedCompatibilityOptions = Pick<OpenAICompatibilityOptions, 'structuredOutputMode' | 'maxTokensParameter'> & {
|
|
35
|
+
type OpenAIResolvedCompatibilityOptions = Pick<OpenAICompatibilityOptions, 'structuredOutputMode' | 'maxTokensParameter' | 'reasoningTokenAccounting'> & {
|
|
27
36
|
reasoning: boolean | OpenAIResolvedReasoningCompatibilityOptions;
|
|
28
37
|
};
|
|
29
38
|
|
|
@@ -39,6 +48,7 @@ declare const openaiResponsesGenerateProviderOptionsSchema: z.ZodObject<{
|
|
|
39
48
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
49
|
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
41
50
|
user: z.ZodOptional<z.ZodString>;
|
|
51
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
42
52
|
}, z.core.$strict>;
|
|
43
53
|
type OpenAIResponsesGenerateProviderOptions = z.infer<typeof openaiResponsesGenerateProviderOptionsSchema>;
|
|
44
54
|
declare const openaiChatGenerateProviderOptionsSchema: z.ZodObject<{
|
|
@@ -52,12 +62,17 @@ declare const openaiChatGenerateProviderOptionsSchema: z.ZodObject<{
|
|
|
52
62
|
priority: "priority";
|
|
53
63
|
}>>;
|
|
54
64
|
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
55
66
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
67
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
57
68
|
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
58
69
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
59
70
|
}, z.core.$strict>;
|
|
60
71
|
type OpenAIChatGenerateProviderOptions = z.infer<typeof openaiChatGenerateProviderOptionsSchema>;
|
|
72
|
+
type OpenAIResponsesGenerateProviderOptionsConfig = {
|
|
73
|
+
key: string;
|
|
74
|
+
schema: z.ZodType<OpenAIResponsesGenerateProviderOptions>;
|
|
75
|
+
};
|
|
61
76
|
type OpenAIChatGenerateProviderOptionsConfig = {
|
|
62
77
|
key: string;
|
|
63
78
|
schema: z.ZodType<OpenAIChatGenerateProviderOptions>;
|
|
@@ -128,6 +143,7 @@ declare const openaiResponsesProviderOptionsSchema: z.ZodObject<{
|
|
|
128
143
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
144
|
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
130
145
|
user: z.ZodOptional<z.ZodString>;
|
|
146
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
131
147
|
}, z.core.$strict>;
|
|
132
148
|
type OpenAIResponsesProviderOptions = OpenAIResponsesGenerateProviderOptions;
|
|
133
149
|
declare const openaiCompatProviderOptionsSchema: z.ZodObject<{
|
|
@@ -141,6 +157,7 @@ declare const openaiCompatProviderOptionsSchema: z.ZodObject<{
|
|
|
141
157
|
priority: "priority";
|
|
142
158
|
}>>;
|
|
143
159
|
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
144
161
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
162
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
146
163
|
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
@@ -157,6 +174,7 @@ declare const openaiCompatGenerateProviderOptionsSchema: z.ZodObject<{
|
|
|
157
174
|
priority: "priority";
|
|
158
175
|
}>>;
|
|
159
176
|
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
160
178
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
179
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
162
180
|
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
@@ -172,6 +190,7 @@ type OpenAIChatCompletionsAdapterOptions = {
|
|
|
172
190
|
providerId?: string;
|
|
173
191
|
providerOptions?: OpenAIChatGenerateProviderOptionsConfig;
|
|
174
192
|
reasoning?: OpenAIResolvedReasoningCompatibilityOptions;
|
|
193
|
+
reasoningTokenAccounting?: OpenAIReasoningTokenAccounting;
|
|
175
194
|
};
|
|
176
195
|
|
|
177
196
|
type OpenAIChatClient = {
|
|
@@ -201,12 +220,15 @@ type OpenAIChatProvider = {
|
|
|
201
220
|
};
|
|
202
221
|
type OpenAIProviderFactoryOptions = {
|
|
203
222
|
modelCapabilities?: ModelCapabilitiesRegistry;
|
|
223
|
+
/** Also the `providerOptions` and reasoning `providerMetadata` key. */
|
|
204
224
|
providerId?: string;
|
|
205
|
-
|
|
225
|
+
/** Chat Completions provider options schema. */
|
|
206
226
|
providerOptionsSchema?: OpenAIChatGenerateProviderOptionsConfig['schema'];
|
|
227
|
+
/** Responses API provider options schema. */
|
|
228
|
+
responsesProviderOptionsSchema?: OpenAIResponsesGenerateProviderOptionsConfig['schema'];
|
|
207
229
|
defaultApi?: 'responses' | 'chat-completions';
|
|
208
230
|
compatibility?: OpenAICompatibility;
|
|
209
231
|
};
|
|
210
232
|
declare function createOpenAIProvider(options: OpenAIProviderBaseOptions, factoryOptions?: OpenAIProviderFactoryOptions): OpenAIProvider;
|
|
211
233
|
|
|
212
|
-
export { type OpenAIChatClient as O, type OpenAIProvider as a, type OpenAIProviderBaseOptions as b, type OpenAICompatGenerateProviderOptions as c, type OpenAICompatRequestOptions as d, openaiCompatProviderOptionsSchema as e, type OpenAIChatCompletionsModelOptions as f, type OpenAIChatGenerateProviderOptions as g, type
|
|
234
|
+
export { openaiImageProviderOptionsSchema as A, openaiResponsesGenerateProviderOptionsSchema as B, openaiResponsesProviderOptionsSchema as C, type OpenAIChatClient as O, type OpenAIProvider as a, type OpenAIProviderBaseOptions as b, type OpenAICompatGenerateProviderOptions as c, type OpenAICompatRequestOptions as d, openaiCompatProviderOptionsSchema as e, type OpenAIChatCompletionsModelOptions as f, type OpenAIChatGenerateProviderOptions as g, type OpenAIChatGenerateProviderOptionsConfig as h, type OpenAIChatProvider as i, type OpenAICompatibility as j, type OpenAICompatibilityOptions as k, type OpenAIEmbedProviderOptions as l, type OpenAIImageProviderOptions as m, type OpenAIModelCapabilities as n, openaiCompatGenerateProviderOptionsSchema as o, type OpenAIProviderFactoryOptions as p, type OpenAIReasoningTokenAccounting as q, type OpenAIResponsesGenerateProviderOptions as r, type OpenAIResponsesGenerateProviderOptionsConfig as s, type OpenAIResponsesProviderOptions as t, type OpenAIStructuredOutputMode as u, createOpenAIChatCompletionsModel as v, createOpenAIProvider as w, getOpenAIModelCapabilities as x, openaiChatGenerateProviderOptionsSchema as y, openaiEmbedProviderOptionsSchema as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@core-ai/openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "OpenAI provider package for @core-ai/core-ai",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Omnifact (https://omnifact.ai)",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test:watch": "vitest"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@core-ai/core-ai": "^0.
|
|
53
|
+
"@core-ai/core-ai": "^0.26.0",
|
|
54
54
|
"openai": "^6.46.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|