diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..0fb40d95fd425d85eff7dfb64aaa05918621f6f7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts @@ -0,0 +1,17 @@ +export type Bytes = string | ArrayBuffer | Uint8Array | null | undefined; +/** + * A re-implementation of httpx's `LineDecoder` in Python that handles incrementally + * reading lines from text. + * + * https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258 + */ +export declare class LineDecoder { + #private; + static NEWLINE_CHARS: Set; + static NEWLINE_REGEXP: RegExp; + constructor(); + decode(chunk: Bytes): string[]; + flush(): string[]; +} +export declare function findDoubleNewlineIndex(buffer: Uint8Array): number; +//# sourceMappingURL=line.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5d3352d2c422fd9a60f8137b1c3f460df51d79c0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"line.d.mts","sourceRoot":"","sources":["../../src/internal/decoders/line.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzE;;;;;GAKG;AACH,qBAAa,WAAW;;IAEtB,MAAM,CAAC,aAAa,cAAyB;IAC7C,MAAM,CAAC,cAAc,SAAkB;;IAUvC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE;IA6C9B,KAAK,IAAI,MAAM,EAAE;CAMlB;AA+BD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CA6BjE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bd39367a83e236d19fd1eb681822d9a0945aa355 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts @@ -0,0 +1,17 @@ +export type Bytes = string | ArrayBuffer | Uint8Array | null | undefined; +/** + * A re-implementation of httpx's `LineDecoder` in Python that handles incrementally + * reading lines from text. + * + * https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258 + */ +export declare class LineDecoder { + #private; + static NEWLINE_CHARS: Set; + static NEWLINE_REGEXP: RegExp; + constructor(); + decode(chunk: Bytes): string[]; + flush(): string[]; +} +export declare function findDoubleNewlineIndex(buffer: Uint8Array): number; +//# sourceMappingURL=line.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ccf562926431eb83b777043965e95e9cd96415a4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../src/internal/decoders/line.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzE;;;;;GAKG;AACH,qBAAa,WAAW;;IAEtB,MAAM,CAAC,aAAa,cAAyB;IAC7C,MAAM,CAAC,cAAc,SAAkB;;IAUvC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE;IA6C9B,KAAK,IAAI,MAAM,EAAE;CAMlB;AA+BD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CA6BjE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js new file mode 100644 index 0000000000000000000000000000000000000000..949664f3c52dba341d94429f66fc3a81653e5d43 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js @@ -0,0 +1,113 @@ +"use strict"; +var _LineDecoder_buffer, _LineDecoder_carriageReturnIndex; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LineDecoder = void 0; +exports.findDoubleNewlineIndex = findDoubleNewlineIndex; +const tslib_1 = require("../tslib.js"); +const bytes_1 = require("../utils/bytes.js"); +/** + * A re-implementation of httpx's `LineDecoder` in Python that handles incrementally + * reading lines from text. + * + * https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258 + */ +class LineDecoder { + constructor() { + _LineDecoder_buffer.set(this, void 0); + _LineDecoder_carriageReturnIndex.set(this, void 0); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_buffer, new Uint8Array(), "f"); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + } + decode(chunk) { + if (chunk == null) { + return []; + } + const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk) + : typeof chunk === 'string' ? (0, bytes_1.encodeUTF8)(chunk) + : chunk; + tslib_1.__classPrivateFieldSet(this, _LineDecoder_buffer, (0, bytes_1.concatBytes)([tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f"), binaryChunk]), "f"); + const lines = []; + let patternIndex; + while ((patternIndex = findNewlineIndex(tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f"), tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f"))) != null) { + if (patternIndex.carriage && tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") == null) { + // skip until we either get a corresponding `\n`, a new `\r` or nothing + tslib_1.__classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, patternIndex.index, "f"); + continue; + } + // we got double \r or \rtext\n + if (tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") != null && + (patternIndex.index !== tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") + 1 || patternIndex.carriage)) { + lines.push((0, bytes_1.decodeUTF8)(tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(0, tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") - 1))); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_buffer, tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f")), "f"); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + continue; + } + const endIndex = tslib_1.__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") !== null ? patternIndex.preceding - 1 : patternIndex.preceding; + const line = (0, bytes_1.decodeUTF8)(tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(0, endIndex)); + lines.push(line); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_buffer, tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(patternIndex.index), "f"); + tslib_1.__classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + } + return lines; + } + flush() { + if (!tslib_1.__classPrivateFieldGet(this, _LineDecoder_buffer, "f").length) { + return []; + } + return this.decode('\n'); + } +} +exports.LineDecoder = LineDecoder; +_LineDecoder_buffer = new WeakMap(), _LineDecoder_carriageReturnIndex = new WeakMap(); +// prettier-ignore +LineDecoder.NEWLINE_CHARS = new Set(['\n', '\r']); +LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g; +/** + * This function searches the buffer for the end patterns, (\r or \n) + * and returns an object with the index preceding the matched newline and the + * index after the newline char. `null` is returned if no new line is found. + * + * ```ts + * findNewLineIndex('abc\ndef') -> { preceding: 2, index: 3 } + * ``` + */ +function findNewlineIndex(buffer, startIndex) { + const newline = 0x0a; // \n + const carriage = 0x0d; // \r + for (let i = startIndex ?? 0; i < buffer.length; i++) { + if (buffer[i] === newline) { + return { preceding: i, index: i + 1, carriage: false }; + } + if (buffer[i] === carriage) { + return { preceding: i, index: i + 1, carriage: true }; + } + } + return null; +} +function findDoubleNewlineIndex(buffer) { + // This function searches the buffer for the end patterns (\r\r, \n\n, \r\n\r\n) + // and returns the index right after the first occurrence of any pattern, + // or -1 if none of the patterns are found. + const newline = 0x0a; // \n + const carriage = 0x0d; // \r + for (let i = 0; i < buffer.length - 1; i++) { + if (buffer[i] === newline && buffer[i + 1] === newline) { + // \n\n + return i + 2; + } + if (buffer[i] === carriage && buffer[i + 1] === carriage) { + // \r\r + return i + 2; + } + if (buffer[i] === carriage && + buffer[i + 1] === newline && + i + 3 < buffer.length && + buffer[i + 2] === carriage && + buffer[i + 3] === newline) { + // \r\n\r\n + return i + 4; + } + } + return -1; +} +//# sourceMappingURL=line.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js.map new file mode 100644 index 0000000000000000000000000000000000000000..724edf3c3c2462015d4dc17a254502ce15eae5da --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.js.map @@ -0,0 +1 @@ +{"version":3,"file":"line.js","sourceRoot":"","sources":["../../src/internal/decoders/line.ts"],"names":[],"mappings":";;;;AAyGA,wDA6BC;;AAtID,6CAAqE;AAIrE;;;;;GAKG;AACH,MAAa,WAAW;IAQtB;QAHA,sCAAoB;QACpB,mDAAoC;QAGlC,+BAAA,IAAI,uBA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,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM;YACrB,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,QAAQ;YAC1B,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,OAAO,EACzB,CAAC;YACD,WAAW;YACX,OAAO,CAAC,GAAG,CAAC,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs new file mode 100644 index 0000000000000000000000000000000000000000..3e1207c0883f85ed285902ea8516b0a4a3b30520 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs @@ -0,0 +1,108 @@ +var _LineDecoder_buffer, _LineDecoder_carriageReturnIndex; +import { __classPrivateFieldGet, __classPrivateFieldSet } from "../tslib.mjs"; +import { concatBytes, decodeUTF8, encodeUTF8 } from "../utils/bytes.mjs"; +/** + * A re-implementation of httpx's `LineDecoder` in Python that handles incrementally + * reading lines from text. + * + * https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258 + */ +export class LineDecoder { + constructor() { + _LineDecoder_buffer.set(this, void 0); + _LineDecoder_carriageReturnIndex.set(this, void 0); + __classPrivateFieldSet(this, _LineDecoder_buffer, new Uint8Array(), "f"); + __classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + } + decode(chunk) { + if (chunk == null) { + return []; + } + const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk) + : typeof chunk === 'string' ? encodeUTF8(chunk) + : chunk; + __classPrivateFieldSet(this, _LineDecoder_buffer, concatBytes([__classPrivateFieldGet(this, _LineDecoder_buffer, "f"), binaryChunk]), "f"); + const lines = []; + let patternIndex; + while ((patternIndex = findNewlineIndex(__classPrivateFieldGet(this, _LineDecoder_buffer, "f"), __classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f"))) != null) { + if (patternIndex.carriage && __classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") == null) { + // skip until we either get a corresponding `\n`, a new `\r` or nothing + __classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, patternIndex.index, "f"); + continue; + } + // we got double \r or \rtext\n + if (__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") != null && + (patternIndex.index !== __classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") + 1 || patternIndex.carriage)) { + lines.push(decodeUTF8(__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(0, __classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") - 1))); + __classPrivateFieldSet(this, _LineDecoder_buffer, __classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(__classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f")), "f"); + __classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + continue; + } + const endIndex = __classPrivateFieldGet(this, _LineDecoder_carriageReturnIndex, "f") !== null ? patternIndex.preceding - 1 : patternIndex.preceding; + const line = decodeUTF8(__classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(0, endIndex)); + lines.push(line); + __classPrivateFieldSet(this, _LineDecoder_buffer, __classPrivateFieldGet(this, _LineDecoder_buffer, "f").subarray(patternIndex.index), "f"); + __classPrivateFieldSet(this, _LineDecoder_carriageReturnIndex, null, "f"); + } + return lines; + } + flush() { + if (!__classPrivateFieldGet(this, _LineDecoder_buffer, "f").length) { + return []; + } + return this.decode('\n'); + } +} +_LineDecoder_buffer = new WeakMap(), _LineDecoder_carriageReturnIndex = new WeakMap(); +// prettier-ignore +LineDecoder.NEWLINE_CHARS = new Set(['\n', '\r']); +LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g; +/** + * This function searches the buffer for the end patterns, (\r or \n) + * and returns an object with the index preceding the matched newline and the + * index after the newline char. `null` is returned if no new line is found. + * + * ```ts + * findNewLineIndex('abc\ndef') -> { preceding: 2, index: 3 } + * ``` + */ +function findNewlineIndex(buffer, startIndex) { + const newline = 0x0a; // \n + const carriage = 0x0d; // \r + for (let i = startIndex ?? 0; i < buffer.length; i++) { + if (buffer[i] === newline) { + return { preceding: i, index: i + 1, carriage: false }; + } + if (buffer[i] === carriage) { + return { preceding: i, index: i + 1, carriage: true }; + } + } + return null; +} +export function findDoubleNewlineIndex(buffer) { + // This function searches the buffer for the end patterns (\r\r, \n\n, \r\n\r\n) + // and returns the index right after the first occurrence of any pattern, + // or -1 if none of the patterns are found. + const newline = 0x0a; // \n + const carriage = 0x0d; // \r + for (let i = 0; i < buffer.length - 1; i++) { + if (buffer[i] === newline && buffer[i + 1] === newline) { + // \n\n + return i + 2; + } + if (buffer[i] === carriage && buffer[i + 1] === carriage) { + // \r\r + return i + 2; + } + if (buffer[i] === carriage && + buffer[i + 1] === newline && + i + 3 < buffer.length && + buffer[i + 2] === carriage && + buffer[i + 3] === newline) { + // \r\n\r\n + return i + 4; + } + } + return -1; +} +//# sourceMappingURL=line.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2ef413a960a9d7e5c8774c5ad3e81ad35d32e2a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/decoders/line.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"line.mjs","sourceRoot":"","sources":["../../src/internal/decoders/line.ts"],"names":[],"mappings":";;OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE;AAI9C;;;;;GAKG;AACH,MAAM,OAAO,WAAW;IAQtB;QAHA,sCAAoB;QACpB,mDAAoC;QAGlC,uBAAA,IAAI,uBAAW,IAAI,UAAU,EAAE,MAAA,CAAC;QACh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C,CAAC,KAAK,QAAQ;YAC1B,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,OAAO,EACzB,CAAC;YACD,WAAW;YACX,OAAO,CAAC,GAAG,CAAC,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/errors.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/errors.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4ad2a9cda30207e7a2b1bfe5fd9405085706b14b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/errors.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"errors.mjs","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,KAAK,IAAI;QACZ,uCAAuC;QACvC,CAAC,CAAC,MAAM,IAAI,GAAG,IAAK,GAAW,CAAC,IAAI,KAAK,YAAY,CAAC;YACpD,aAAa;YACb,CAAC,SAAS,IAAI,GAAG,IAAI,MAAM,CAAE,GAAW,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAChG,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAS,EAAE;IAC7C,IAAI,GAAG,YAAY,KAAK;QAAE,OAAO,GAAG,CAAC;IACrC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC;YACH,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,gBAAgB,EAAE,CAAC;gBAC7D,8DAA8D;gBAC9D,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBAC5E,IAAI,GAAG,CAAC,KAAK;oBAAE,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;gBACvC,8DAA8D;gBAC9D,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK;oBAAE,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;gBACvD,IAAI,GAAG,CAAC,IAAI;oBAAE,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;gBACpC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,IAAI,CAAC;YACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACxC,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..355d3f7b51191c3ed1f9a3d990409b88655010a8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts @@ -0,0 +1,20 @@ +type HeaderValue = string | undefined | null; +export type HeadersLike = Headers | readonly HeaderValue[][] | Record | undefined | null | NullableHeaders; +declare const brand_privateNullableHeaders: unique symbol; +/** + * @internal + * Users can pass explicit nulls to unset default headers. When we parse them + * into a standard headers type we need to preserve that information. + */ +export type NullableHeaders = { + /** Brand check, prevent users from creating a NullableHeaders. */ + [brand_privateNullableHeaders]: true; + /** Parsed headers. */ + values: Headers; + /** Set of lowercase header names explicitly set to null. */ + nulls: Set; +}; +export declare const buildHeaders: (newHeaders: HeadersLike[]) => NullableHeaders; +export declare const isEmptyHeaders: (headers: HeadersLike) => boolean; +export {}; +//# sourceMappingURL=headers.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f9796c595bde95a24859c6e8d81bef8988920c31 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,SAAS,WAAW,EAAE,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,WAAW,EAAE,CAAC,GACpD,SAAS,GACT,IAAI,GACJ,eAAe,CAAC;AAEpB,QAAA,MAAM,4BAA4B,eAAyD,CAAC;AAE5F;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kEAAkE;IAClE,CAAC,4BAA4B,CAAC,EAAE,IAAI,CAAC;IACrC,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC;AA2CF,eAAO,MAAM,YAAY,GAAI,YAAY,WAAW,EAAE,KAAG,eAqBxD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,YAGlD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1a866f1842b27c9f827e0feadab4d491de82e280 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts @@ -0,0 +1,20 @@ +type HeaderValue = string | undefined | null; +export type HeadersLike = Headers | readonly HeaderValue[][] | Record | undefined | null | NullableHeaders; +declare const brand_privateNullableHeaders: unique symbol; +/** + * @internal + * Users can pass explicit nulls to unset default headers. When we parse them + * into a standard headers type we need to preserve that information. + */ +export type NullableHeaders = { + /** Brand check, prevent users from creating a NullableHeaders. */ + [brand_privateNullableHeaders]: true; + /** Parsed headers. */ + values: Headers; + /** Set of lowercase header names explicitly set to null. */ + nulls: Set; +}; +export declare const buildHeaders: (newHeaders: HeadersLike[]) => NullableHeaders; +export declare const isEmptyHeaders: (headers: HeadersLike) => boolean; +export {}; +//# sourceMappingURL=headers.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..26c22260211da09965dcded874791ddd48556384 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,SAAS,WAAW,EAAE,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,WAAW,EAAE,CAAC,GACpD,SAAS,GACT,IAAI,GACJ,eAAe,CAAC;AAEpB,QAAA,MAAM,4BAA4B,eAAyD,CAAC;AAE5F;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kEAAkE;IAClE,CAAC,4BAA4B,CAAC,EAAE,IAAI,CAAC;IACrC,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC;AA2CF,eAAO,MAAM,YAAY,GAAI,YAAY,WAAW,EAAE,KAAG,eAqBxD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,YAGlD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js new file mode 100644 index 0000000000000000000000000000000000000000..6726fa2acf7daac48e75e9719dc36c7a2de1189d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js @@ -0,0 +1,79 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isEmptyHeaders = exports.buildHeaders = void 0; +const values_1 = require("./utils/values.js"); +const brand_privateNullableHeaders = /* @__PURE__ */ Symbol('brand.privateNullableHeaders'); +function* iterateHeaders(headers) { + if (!headers) + return; + if (brand_privateNullableHeaders in headers) { + const { values, nulls } = headers; + yield* values.entries(); + for (const name of nulls) { + yield [name, null]; + } + return; + } + let shouldClear = false; + let iter; + if (headers instanceof Headers) { + iter = headers.entries(); + } + else if ((0, values_1.isReadonlyArray)(headers)) { + iter = headers; + } + else { + shouldClear = true; + iter = Object.entries(headers ?? {}); + } + for (let row of iter) { + const name = row[0]; + if (typeof name !== 'string') + throw new TypeError('expected header name to be a string'); + const values = (0, values_1.isReadonlyArray)(row[1]) ? row[1] : [row[1]]; + let didClear = false; + for (const value of values) { + if (value === undefined) + continue; + // Objects keys always overwrite older headers, they never append. + // Yield a null to clear the header before adding the new values. + if (shouldClear && !didClear) { + didClear = true; + yield [name, null]; + } + yield [name, value]; + } + } +} +const buildHeaders = (newHeaders) => { + const targetHeaders = new Headers(); + const nullHeaders = new Set(); + for (const headers of newHeaders) { + const seenHeaders = new Set(); + for (const [name, value] of iterateHeaders(headers)) { + const lowerName = name.toLowerCase(); + if (!seenHeaders.has(lowerName)) { + targetHeaders.delete(name); + seenHeaders.add(lowerName); + } + if (value === null) { + targetHeaders.delete(name); + nullHeaders.add(lowerName); + } + else { + targetHeaders.append(name, value); + nullHeaders.delete(lowerName); + } + } + } + return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders }; +}; +exports.buildHeaders = buildHeaders; +const isEmptyHeaders = (headers) => { + for (const _ of iterateHeaders(headers)) + return false; + return true; +}; +exports.isEmptyHeaders = isEmptyHeaders; +//# sourceMappingURL=headers.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js.map new file mode 100644 index 0000000000000000000000000000000000000000..37e33ca6164fa6a4c7b7cd6f91aa8d252f1e5123 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"headers.js","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAAiD;AAWjD,MAAM,4BAA4B,GAAG,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAgB5F,QAAQ,CAAC,CAAC,cAAc,CAAC,OAAoB;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,IAAI,4BAA4B,IAAI,OAAO,EAAE,CAAC;QAC5C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAClC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,OAAO;IACT,CAAC;IAED,IA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C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,KAAK,MAAM,OAAO,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;QACtC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;gBAChC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACN,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAClC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,EAAE,CAAC,4BAA4B,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAC7F,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB;AAEK,MAAM,cAAc,GAAG,CAAC,OAAoB,EAAE,EAAE;IACrD,KAAK,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs new file mode 100644 index 0000000000000000000000000000000000000000..b7712c93a31ec1636126bcce08706e43084a2ed1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs @@ -0,0 +1,74 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { isReadonlyArray } from "./utils/values.mjs"; +const brand_privateNullableHeaders = /* @__PURE__ */ Symbol('brand.privateNullableHeaders'); +function* iterateHeaders(headers) { + if (!headers) + return; + if (brand_privateNullableHeaders in headers) { + const { values, nulls } = headers; + yield* values.entries(); + for (const name of nulls) { + yield [name, null]; + } + return; + } + let shouldClear = false; + let iter; + if (headers instanceof Headers) { + iter = headers.entries(); + } + else if (isReadonlyArray(headers)) { + iter = headers; + } + else { + shouldClear = true; + iter = Object.entries(headers ?? {}); + } + for (let row of iter) { + const name = row[0]; + if (typeof name !== 'string') + throw new TypeError('expected header name to be a string'); + const values = isReadonlyArray(row[1]) ? row[1] : [row[1]]; + let didClear = false; + for (const value of values) { + if (value === undefined) + continue; + // Objects keys always overwrite older headers, they never append. + // Yield a null to clear the header before adding the new values. + if (shouldClear && !didClear) { + didClear = true; + yield [name, null]; + } + yield [name, value]; + } + } +} +export const buildHeaders = (newHeaders) => { + const targetHeaders = new Headers(); + const nullHeaders = new Set(); + for (const headers of newHeaders) { + const seenHeaders = new Set(); + for (const [name, value] of iterateHeaders(headers)) { + const lowerName = name.toLowerCase(); + if (!seenHeaders.has(lowerName)) { + targetHeaders.delete(name); + seenHeaders.add(lowerName); + } + if (value === null) { + targetHeaders.delete(name); + nullHeaders.add(lowerName); + } + else { + targetHeaders.append(name, value); + nullHeaders.delete(lowerName); + } + } + } + return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders }; +}; +export const isEmptyHeaders = (headers) => { + for (const _ of iterateHeaders(headers)) + return false; + return true; +}; +//# sourceMappingURL=headers.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ca16dbe614baf6889255de3ef704ba26a305cb90 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/headers.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"headers.mjs","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,eAAe,EAAE;AAW1B,MAAM,4BAA4B,GAAG,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAgB5F,QAAQ,CAAC,CAAC,cAAc,CAAC,OAAoB;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,IAAI,4BAA4B,IAAI,OAAO,EAAE,CAAC;QAC5C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAClC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,OAAO;IACT,CAAC;IAED,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,IAAiE,CAAC;IACtE,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;QAC/B,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;SAAM,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;QACpC,IAAI,GAAG,OAAO,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,IAAI,CAAC;QACnB,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACpB,I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K,IAAI,EAAE,CAAC;gBACnB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACN,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAClC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,EAAE,CAAC,4BAA4B,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAC7F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAoB,EAAE,EAAE;IACrD,KAAK,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..faddf0674e60aa00001dd04c1c8018da65162d71 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts @@ -0,0 +1,17 @@ +import type { FinalRequestOptions } from "./request-options.mjs"; +import { type OpenAI } from "../client.mjs"; +import type { AbstractPage } from "../pagination.mjs"; +export type APIResponseProps = { + response: Response; + options: FinalRequestOptions; + controller: AbortController; + requestLogID: string; + retryOfRequestLogID: string | undefined; + startTime: number; +}; +export declare function defaultParseResponse(client: OpenAI, props: APIResponseProps): Promise>; +export type WithRequestID = T extends Array | Response | AbstractPage ? T : T extends Record ? T & { + _request_id?: string | null; +} : T; +export declare function addRequestID(value: T, response: Response): WithRequestID; +//# sourceMappingURL=parse.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..521e45a3c9f33505182f2a7dce17e7c16a4f13e6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse.d.mts","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,mBAAmB,EAAE;OAE5B,EAAE,KAAK,MAAM,EAAE;OAEf,KAAK,EAAE,YAAY,EAAE;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CA+C3B;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IACzB,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GACrD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACnE,CAAC,CAAC;AAEN,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAS9E"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f7413be7ece2699a1608b84f2b923fc0595f2392 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts @@ -0,0 +1,17 @@ +import type { FinalRequestOptions } from "./request-options.js"; +import { type OpenAI } from "../client.js"; +import type { AbstractPage } from "../pagination.js"; +export type APIResponseProps = { + response: Response; + options: FinalRequestOptions; + controller: AbortController; + requestLogID: string; + retryOfRequestLogID: string | undefined; + startTime: number; +}; +export declare function defaultParseResponse(client: OpenAI, props: APIResponseProps): Promise>; +export type WithRequestID = T extends Array | Response | AbstractPage ? T : T extends Record ? T & { + _request_id?: string | null; +} : T; +export declare function addRequestID(value: T, response: Response): WithRequestID; +//# sourceMappingURL=parse.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6e64195aa33d1806dcaba721aa502801a48a16c6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,mBAAmB,EAAE;OAE5B,EAAE,KAAK,MAAM,EAAE;OAEf,KAAK,EAAE,YAAY,EAAE;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CA+C3B;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IACzB,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GACrD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACnE,CAAC,CAAC;AAEN,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAS9E"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js new file mode 100644 index 0000000000000000000000000000000000000000..932765c62403298033b65e6269c26e44f4416e6f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js @@ -0,0 +1,55 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultParseResponse = defaultParseResponse; +exports.addRequestID = addRequestID; +const streaming_1 = require("../core/streaming.js"); +const log_1 = require("./utils/log.js"); +async function defaultParseResponse(client, props) { + const { response, requestLogID, retryOfRequestLogID, startTime } = props; + const body = await (async () => { + if (props.options.stream) { + (0, log_1.loggerFor)(client).debug('response', response.status, response.url, response.headers, response.body); + // Note: there is an invariant here that isn't represented in the type system + // that if you set `stream: true` the response type must also be `Stream` + if (props.options.__streamClass) { + return props.options.__streamClass.fromSSEResponse(response, props.controller, client); + } + return streaming_1.Stream.fromSSEResponse(response, props.controller, client); + } + // fetch refuses to read the body when the status code is 204. + if (response.status === 204) { + return null; + } + if (props.options.__binaryResponse) { + return response; + } + const contentType = response.headers.get('content-type'); + const mediaType = contentType?.split(';')[0]?.trim(); + const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json'); + if (isJSON) { + const json = await response.json(); + return addRequestID(json, response); + } + const text = await response.text(); + return text; + })(); + (0, log_1.loggerFor)(client).debug(`[${requestLogID}] response parsed`, (0, log_1.formatRequestDetails)({ + retryOfRequestLogID, + url: response.url, + status: response.status, + body, + durationMs: Date.now() - startTime, + })); + return body; +} +function addRequestID(value, response) { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return value; + } + return Object.defineProperty(value, '_request_id', { + value: response.headers.get('x-request-id'), + enumerable: false, + }); +} +//# sourceMappingURL=parse.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js.map new file mode 100644 index 0000000000000000000000000000000000000000..ad93e8fca918a7926ed17dc3a62dabf160b39219 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parse.js","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAiBtF,oDAkDC;AAOD,oCASC;AAhFD,oDAA2C;AAE3C,wCAA8D;AAYvD,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,KAAuB;IAEvB,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACzE,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAC7B,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACzB,IAAA,eAAS,EAAC,MAAM,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,I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G,EAAE,QAAQ,CAAC,GAAG;QACjB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,IAAI;QACJ,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;KACnC,CAAC,CACH,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAOD,SAAgB,YAAY,CAAI,KAAQ,EAAE,QAAkB;IAC1D,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,KAAyB,CAAC;IACnC,CAAC;IAED,OAAO,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE;QACjD,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;QAC3C,UAAU,EAAE,KAAK;KAClB,CAAqB,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f441d2a9ff98e283d377522f4de86167f84f8118 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { Stream } from "../core/streaming.mjs"; +import { formatRequestDetails, loggerFor } from "./utils/log.mjs"; +export async function defaultParseResponse(client, props) { + const { response, requestLogID, retryOfRequestLogID, startTime } = props; + const body = await (async () => { + if (props.options.stream) { + loggerFor(client).debug('response', response.status, response.url, response.headers, response.body); + // Note: there is an invariant here that isn't represented in the type system + // that if you set `stream: true` the response type must also be `Stream` + if (props.options.__streamClass) { + return props.options.__streamClass.fromSSEResponse(response, props.controller, client); + } + return Stream.fromSSEResponse(response, props.controller, client); + } + // fetch refuses to read the body when the status code is 204. + if (response.status === 204) { + return null; + } + if (props.options.__binaryResponse) { + return response; + } + const contentType = response.headers.get('content-type'); + const mediaType = contentType?.split(';')[0]?.trim(); + const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json'); + if (isJSON) { + const json = await response.json(); + return addRequestID(json, response); + } + const text = await response.text(); + return text; + })(); + loggerFor(client).debug(`[${requestLogID}] response parsed`, formatRequestDetails({ + retryOfRequestLogID, + url: response.url, + status: response.status, + body, + durationMs: Date.now() - startTime, + })); + return body; +} +export function addRequestID(value, response) { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return value; + } + return Object.defineProperty(value, '_request_id', { + value: response.headers.get('x-request-id'), + enumerable: false, + }); +} +//# sourceMappingURL=parse.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6787df870569038545754471a95647460d3a9cbe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/parse.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"parse.mjs","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,MAAM,EAAE;OAEV,EAAE,oBAAoB,EAAE,SAAS,EAAE;AAY1C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,KAAuB;IAEvB,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACzE,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAC7B,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACzB,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAA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GAAG;QACjB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,IAAI;QACJ,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;KACnC,CAAC,CACH,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAOD,MAAM,UAAU,YAAY,CAAI,KAAQ,EAAE,QAAkB;IAC1D,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,KAAyB,CAAC;IACnC,CAAC;IAED,OAAO,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE;QACjD,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;QAC3C,UAAU,EAAE,KAAK;KAClB,CAAqB,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..ded39ad610f00d2762d4a14ba85233823d001e1f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts @@ -0,0 +1,7 @@ +import type { Format } from "./types.mjs"; +export declare const default_format: Format; +export declare const default_formatter: (v: PropertyKey) => string; +export declare const formatters: Record string>; +export declare const RFC1738 = "RFC1738"; +export declare const RFC3986 = "RFC3986"; +//# sourceMappingURL=formats.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..0d05113b1f867525407d7ba7faec706f3599b11d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"formats.d.mts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,MAAM,EAAE;AAEtB,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..69664ebb3df77dae486a6a42e4e21fe844d29101 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts @@ -0,0 +1,7 @@ +import type { Format } from "./types.js"; +export declare const default_format: Format; +export declare const default_formatter: (v: PropertyKey) => string; +export declare const formatters: Record string>; +export declare const RFC1738 = "RFC1738"; +export declare const RFC3986 = "RFC3986"; +//# sourceMappingURL=formats.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..212adf04347eddac84fb989a1372c0e9e1587cb1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,MAAM,EAAE;AAEtB,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js new file mode 100644 index 0000000000000000000000000000000000000000..a0fe0a2c9c5b69cd6587e8f4e8055d3e51b64112 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_formatter = exports.default_format = void 0; +exports.default_format = 'RFC3986'; +const default_formatter = (v) => String(v); +exports.default_formatter = default_formatter; +exports.formatters = { + RFC1738: (v) => String(v).replace(/%20/g, '+'), + RFC3986: exports.default_formatter, +}; +exports.RFC1738 = 'RFC1738'; +exports.RFC3986 = 'RFC3986'; +//# sourceMappingURL=formats.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js.map new file mode 100644 index 0000000000000000000000000000000000000000..21884ecf60a058bf809322fbcd9f9b02d72e2d98 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAW,SAAS,CAAC;AACzC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAlD,QAAA,iBAAiB,qBAAiC;AAClD,QAAA,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,yBAAiB;CAC3B,CAAC;AACW,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,OAAO,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs new file mode 100644 index 0000000000000000000000000000000000000000..456c60558852918a8b47247111efba673900d129 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs @@ -0,0 +1,9 @@ +export const default_format = 'RFC3986'; +export const default_formatter = (v) => String(v); +export const formatters = { + RFC1738: (v) => String(v).replace(/%20/g, '+'), + RFC3986: default_formatter, +}; +export const RFC1738 = 'RFC1738'; +export const RFC3986 = 'RFC3986'; +//# sourceMappingURL=formats.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..0a71f2627ba36ef399a5730c085693918f1e191f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/formats.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"formats.mjs","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAW,SAAS,CAAC;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,iBAAiB;CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..c2c050f6c24e761df8b8bcd99c6bb9f7ff0f2eea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts @@ -0,0 +1,10 @@ +declare const formats: { + formatters: Record string>; + RFC1738: string; + RFC3986: string; + default: import("./types").Format; +}; +export { stringify } from "./stringify.mjs"; +export { formats }; +export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from "./types.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..afa9dc1393185f50afbabd7ffa76a7e9d3e90890 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;CAKZ,CAAC;OAEK,EAAE,SAAS,EAAE;AACpB,OAAO,EAAE,OAAO,EAAE,CAAC;YAEP,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..843de7a349475ba48220cf8c28a8885e70294cbb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts @@ -0,0 +1,10 @@ +declare const formats: { + formatters: Record string>; + RFC1738: string; + RFC3986: string; + default: import("./types").Format; +}; +export { stringify } from "./stringify.js"; +export { formats }; +export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from "./types.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..dea8c97eed13da8ff30acda87d9370cf08bd45a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;CAKZ,CAAC;OAEK,EAAE,SAAS,EAAE;AACpB,OAAO,EAAE,OAAO,EAAE,CAAC;YAEP,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js new file mode 100644 index 0000000000000000000000000000000000000000..292aed61d16b811d47da52199a851e4fd4479a22 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.formats = exports.stringify = void 0; +const formats_1 = require("./formats.js"); +const formats = { + formatters: formats_1.formatters, + RFC1738: formats_1.RFC1738, + RFC3986: formats_1.RFC3986, + default: formats_1.default_format, +}; +exports.formats = formats; +var stringify_1 = require("./stringify.js"); +Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_1.stringify; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..fc1c8d47f568f09a167a3fed691077069cd18a49 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":";;;AAAA,0CAAyE;AAEzE,MAAM,OAAO,GAAG;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,wBAAc;CACxB,CAAC;AAGO,0BAAO;AADhB,4CAAwC;AAA/B,sGAAA,SAAS,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..166b754ddd92cefa3fc0ca87dae578f316ebd5ef --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs @@ -0,0 +1,10 @@ +import { default_format, formatters, RFC1738, RFC3986 } from "./formats.mjs"; +const formats = { + formatters, + RFC1738, + RFC3986, + default: default_format, +}; +export { stringify } from "./stringify.mjs"; +export { formats }; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1d63c5a85d28987fae205a3a6d051e270b4653e8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE;AAEvD,MAAM,OAAO,GAAG;IACd,UAAU;IACV,OAAO;IACP,OAAO;IACP,OAAO,EAAE,cAAc;CACxB,CAAC;OAEK,EAAE,SAAS,EAAE;AACpB,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4cffe8d382adc508fa18b317f3bec17fdd9555eb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts @@ -0,0 +1,3 @@ +import type { StringifyOptions } from "./types.mjs"; +export declare function stringify(object: any, opts?: StringifyOptions): string; +//# sourceMappingURL=stringify.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..7236721ea9556e2083e76dfa877be64cc3780613 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"stringify.d.mts","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"OAEO,KAAK,EAAyB,gBAAgB,EAAE;AA+SvD,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,GAAE,gBAAqB,UA+EjE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ab8d8b0b30406ec4c97efe87fa7adbf4488d25e0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts @@ -0,0 +1,3 @@ +import type { StringifyOptions } from "./types.js"; +export declare function stringify(object: any, opts?: StringifyOptions): string; +//# sourceMappingURL=stringify.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..5b74a5496b17f5282bf2b70f28c2ab00cefe3201 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stringify.d.ts","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"OAEO,KAAK,EAAyB,gBAAgB,EAAE;AA+SvD,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,GAAE,gBAAqB,UA+EjE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js new file mode 100644 index 0000000000000000000000000000000000000000..1e77922ad1a5cdcc8c9007df4a15a05531a5b219 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js @@ -0,0 +1,277 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.stringify = stringify; +const utils_1 = require("./utils.js"); +const formats_1 = require("./formats.js"); +const values_1 = require("../utils/values.js"); +const array_prefix_generators = { + brackets(prefix) { + return String(prefix) + '[]'; + }, + comma: 'comma', + indices(prefix, key) { + return String(prefix) + '[' + key + ']'; + }, + repeat(prefix) { + return String(prefix); + }, +}; +const push_to_array = function (arr, value_or_array) { + Array.prototype.push.apply(arr, (0, values_1.isArray)(value_or_array) ? value_or_array : [value_or_array]); +}; +let toISOString; +const defaults = { + addQueryPrefix: false, + allowDots: false, + allowEmptyArrays: false, + arrayFormat: 'indices', + charset: 'utf-8', + charsetSentinel: false, + delimiter: '&', + encode: true, + encodeDotInKeys: false, + encoder: utils_1.encode, + encodeValuesOnly: false, + format: formats_1.default_format, + formatter: formats_1.default_formatter, + /** @deprecated */ + indices: false, + serializeDate(date) { + return (toISOString ?? (toISOString = Function.prototype.call.bind(Date.prototype.toISOString)))(date); + }, + skipNulls: false, + strictNullHandling: false, +}; +function is_non_nullish_primitive(v) { + return (typeof v === 'string' || + typeof v === 'number' || + typeof v === 'boolean' || + typeof v === 'symbol' || + typeof v === 'bigint'); +} +const sentinel = {}; +function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { + let obj = object; + let tmp_sc = sideChannel; + let step = 0; + let find_flag = false; + while ((tmp_sc = tmp_sc.get(sentinel)) !== void undefined && !find_flag) { + // Where object last appeared in the ref tree + const pos = tmp_sc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } + else { + find_flag = true; // Break while + } + } + if (typeof tmp_sc.get(sentinel) === 'undefined') { + step = 0; + } + } + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } + else if (obj instanceof Date) { + obj = serializeDate?.(obj); + } + else if (generateArrayPrefix === 'comma' && (0, values_1.isArray)(obj)) { + obj = (0, utils_1.maybe_map)(obj, function (value) { + if (value instanceof Date) { + return serializeDate?.(value); + } + return value; + }); + } + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? + // @ts-expect-error + encoder(prefix, defaults.encoder, charset, 'key', format) + : prefix; + } + obj = ''; + } + if (is_non_nullish_primitive(obj) || (0, utils_1.is_buffer)(obj)) { + if (encoder) { + const key_value = encodeValuesOnly ? prefix + // @ts-expect-error + : encoder(prefix, defaults.encoder, charset, 'key', format); + return [ + formatter?.(key_value) + + '=' + + // @ts-expect-error + formatter?.(encoder(obj, defaults.encoder, charset, 'value', format)), + ]; + } + return [formatter?.(prefix) + '=' + formatter?.(String(obj))]; + } + const values = []; + if (typeof obj === 'undefined') { + return values; + } + let obj_keys; + if (generateArrayPrefix === 'comma' && (0, values_1.isArray)(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + // @ts-expect-error values only + obj = (0, utils_1.maybe_map)(obj, encoder); + } + obj_keys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } + else if ((0, values_1.isArray)(filter)) { + obj_keys = filter; + } + else { + const keys = Object.keys(obj); + obj_keys = sort ? keys.sort(sort) : keys; + } + const encoded_prefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix); + const adjusted_prefix = commaRoundTrip && (0, values_1.isArray)(obj) && obj.length === 1 ? encoded_prefix + '[]' : encoded_prefix; + if (allowEmptyArrays && (0, values_1.isArray)(obj) && obj.length === 0) { + return adjusted_prefix + '[]'; + } + for (let j = 0; j < obj_keys.length; ++j) { + const key = obj_keys[j]; + const value = + // @ts-ignore + typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; + if (skipNulls && value === null) { + continue; + } + // @ts-ignore + const encoded_key = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key; + const key_prefix = (0, values_1.isArray)(obj) ? + typeof generateArrayPrefix === 'function' ? + generateArrayPrefix(adjusted_prefix, encoded_key) + : adjusted_prefix + : adjusted_prefix + (allowDots ? '.' + encoded_key : '[' + encoded_key + ']'); + sideChannel.set(object, step); + const valueSideChannel = new WeakMap(); + valueSideChannel.set(sentinel, sideChannel); + push_to_array(values, inner_stringify(value, key_prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, + // @ts-ignore + generateArrayPrefix === 'comma' && encodeValuesOnly && (0, values_1.isArray)(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel)); + } + return values; +} +function normalize_stringify_options(opts = defaults) { + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); + } + if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { + throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); + } + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + const charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + let format = formats_1.default_format; + if (typeof opts.format !== 'undefined') { + if (!(0, utils_1.has)(formats_1.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + const formatter = formats_1.formatters[format]; + let filter = defaults.filter; + if (typeof opts.filter === 'function' || (0, values_1.isArray)(opts.filter)) { + filter = opts.filter; + } + let arrayFormat; + if (opts.arrayFormat && opts.arrayFormat in array_prefix_generators) { + arrayFormat = opts.arrayFormat; + } + else if ('indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } + else { + arrayFormat = defaults.arrayFormat; + } + if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } + const allowDots = typeof opts.allowDots === 'undefined' ? + !!opts.encodeDotInKeys === true ? + true + : defaults.allowDots + : !!opts.allowDots; + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + // @ts-ignore + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + arrayFormat: arrayFormat, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + commaRoundTrip: !!opts.commaRoundTrip, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + // @ts-ignore + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling, + }; +} +function stringify(object, opts = {}) { + let obj = object; + const options = normalize_stringify_options(opts); + let obj_keys; + let filter; + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } + else if ((0, values_1.isArray)(options.filter)) { + filter = options.filter; + obj_keys = filter; + } + const keys = []; + if (typeof obj !== 'object' || obj === null) { + return ''; + } + const generateArrayPrefix = array_prefix_generators[options.arrayFormat]; + const commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; + if (!obj_keys) { + obj_keys = Object.keys(obj); + } + if (options.sort) { + obj_keys.sort(options.sort); + } + const sideChannel = new WeakMap(); + for (let i = 0; i < obj_keys.length; ++i) { + const key = obj_keys[i]; + if (options.skipNulls && obj[key] === null) { + continue; + } + push_to_array(keys, inner_stringify(obj[key], key, + // @ts-expect-error + generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel)); + } + const joined = keys.join(options.delimiter); + let prefix = options.addQueryPrefix === true ? '?' : ''; + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } + else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } + return joined.length > 0 ? prefix + joined : ''; +} +//# sourceMappingURL=stringify.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js.map new file mode 100644 index 0000000000000000000000000000000000000000..4cb80acf497fb7543a2bc04741a2e1190028887b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":";;AAiTA,8BA+EC;AAhYD,sCAA4D;AAC5D,0CAA0E;AAE1E,+CAA0C;AAE1C,MAAM,uBAAuB,GAAG;IAC9B,QAAQ,CAAC,MAAmB;QAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC/B,CAAC;IACD,KAAK,EAAE,OAAO;IACd,OAAO,CAAC,MAAmB,EAAE,GAAW;QACtC,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,MAAmB;QACxB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;CACF,CAAC;AAEF,MAAM,aAAa,GAAG,UAAU,GAAU,EAAE,c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f,WAAW,CACZ,CACF,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5C,IAAI,MAAM,GAAG,OAAO,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAExD,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC5B,IAAI,OAAO,CAAC,OAAO,KAAK,YAAY,EAAE,CAAC;YACrC,qFAAqF;YACrF,MAAM,IAAI,sBAAsB,CAAC;QACnC,CAAC;aAAM,CAAC;YACN,0BAA0B;YAC1B,MAAM,IAAI,iBAAiB,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs new file mode 100644 index 0000000000000000000000000000000000000000..fc17994335883deb15e970d30a411bb077b00858 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs @@ -0,0 +1,274 @@ +import { encode, is_buffer, maybe_map, has } from "./utils.mjs"; +import { default_format, default_formatter, formatters } from "./formats.mjs"; +import { isArray } from "../utils/values.mjs"; +const array_prefix_generators = { + brackets(prefix) { + return String(prefix) + '[]'; + }, + comma: 'comma', + indices(prefix, key) { + return String(prefix) + '[' + key + ']'; + }, + repeat(prefix) { + return String(prefix); + }, +}; +const push_to_array = function (arr, value_or_array) { + Array.prototype.push.apply(arr, isArray(value_or_array) ? value_or_array : [value_or_array]); +}; +let toISOString; +const defaults = { + addQueryPrefix: false, + allowDots: false, + allowEmptyArrays: false, + arrayFormat: 'indices', + charset: 'utf-8', + charsetSentinel: false, + delimiter: '&', + encode: true, + encodeDotInKeys: false, + encoder: encode, + encodeValuesOnly: false, + format: default_format, + formatter: default_formatter, + /** @deprecated */ + indices: false, + serializeDate(date) { + return (toISOString ?? (toISOString = Function.prototype.call.bind(Date.prototype.toISOString)))(date); + }, + skipNulls: false, + strictNullHandling: false, +}; +function is_non_nullish_primitive(v) { + return (typeof v === 'string' || + typeof v === 'number' || + typeof v === 'boolean' || + typeof v === 'symbol' || + typeof v === 'bigint'); +} +const sentinel = {}; +function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { + let obj = object; + let tmp_sc = sideChannel; + let step = 0; + let find_flag = false; + while ((tmp_sc = tmp_sc.get(sentinel)) !== void undefined && !find_flag) { + // Where object last appeared in the ref tree + const pos = tmp_sc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } + else { + find_flag = true; // Break while + } + } + if (typeof tmp_sc.get(sentinel) === 'undefined') { + step = 0; + } + } + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } + else if (obj instanceof Date) { + obj = serializeDate?.(obj); + } + else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = maybe_map(obj, function (value) { + if (value instanceof Date) { + return serializeDate?.(value); + } + return value; + }); + } + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? + // @ts-expect-error + encoder(prefix, defaults.encoder, charset, 'key', format) + : prefix; + } + obj = ''; + } + if (is_non_nullish_primitive(obj) || is_buffer(obj)) { + if (encoder) { + const key_value = encodeValuesOnly ? prefix + // @ts-expect-error + : encoder(prefix, defaults.encoder, charset, 'key', format); + return [ + formatter?.(key_value) + + '=' + + // @ts-expect-error + formatter?.(encoder(obj, defaults.encoder, charset, 'value', format)), + ]; + } + return [formatter?.(prefix) + '=' + formatter?.(String(obj))]; + } + const values = []; + if (typeof obj === 'undefined') { + return values; + } + let obj_keys; + if (generateArrayPrefix === 'comma' && isArray(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + // @ts-expect-error values only + obj = maybe_map(obj, encoder); + } + obj_keys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } + else if (isArray(filter)) { + obj_keys = filter; + } + else { + const keys = Object.keys(obj); + obj_keys = sort ? keys.sort(sort) : keys; + } + const encoded_prefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix); + const adjusted_prefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encoded_prefix + '[]' : encoded_prefix; + if (allowEmptyArrays && isArray(obj) && obj.length === 0) { + return adjusted_prefix + '[]'; + } + for (let j = 0; j < obj_keys.length; ++j) { + const key = obj_keys[j]; + const value = + // @ts-ignore + typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; + if (skipNulls && value === null) { + continue; + } + // @ts-ignore + const encoded_key = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key; + const key_prefix = isArray(obj) ? + typeof generateArrayPrefix === 'function' ? + generateArrayPrefix(adjusted_prefix, encoded_key) + : adjusted_prefix + : adjusted_prefix + (allowDots ? '.' + encoded_key : '[' + encoded_key + ']'); + sideChannel.set(object, step); + const valueSideChannel = new WeakMap(); + valueSideChannel.set(sentinel, sideChannel); + push_to_array(values, inner_stringify(value, key_prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, + // @ts-ignore + generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel)); + } + return values; +} +function normalize_stringify_options(opts = defaults) { + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); + } + if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { + throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); + } + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + const charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + let format = default_format; + if (typeof opts.format !== 'undefined') { + if (!has(formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + const formatter = formatters[format]; + let filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + let arrayFormat; + if (opts.arrayFormat && opts.arrayFormat in array_prefix_generators) { + arrayFormat = opts.arrayFormat; + } + else if ('indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } + else { + arrayFormat = defaults.arrayFormat; + } + if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } + const allowDots = typeof opts.allowDots === 'undefined' ? + !!opts.encodeDotInKeys === true ? + true + : defaults.allowDots + : !!opts.allowDots; + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + // @ts-ignore + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + arrayFormat: arrayFormat, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + commaRoundTrip: !!opts.commaRoundTrip, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + // @ts-ignore + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling, + }; +} +export function stringify(object, opts = {}) { + let obj = object; + const options = normalize_stringify_options(opts); + let obj_keys; + let filter; + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } + else if (isArray(options.filter)) { + filter = options.filter; + obj_keys = filter; + } + const keys = []; + if (typeof obj !== 'object' || obj === null) { + return ''; + } + const generateArrayPrefix = array_prefix_generators[options.arrayFormat]; + const commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; + if (!obj_keys) { + obj_keys = Object.keys(obj); + } + if (options.sort) { + obj_keys.sort(options.sort); + } + const sideChannel = new WeakMap(); + for (let i = 0; i < obj_keys.length; ++i) { + const key = obj_keys[i]; + if (options.skipNulls && obj[key] === null) { + continue; + } + push_to_array(keys, inner_stringify(obj[key], key, + // @ts-expect-error + generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel)); + } + const joined = keys.join(options.delimiter); + let prefix = options.addQueryPrefix === true ? '?' : ''; + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } + else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } + return joined.length > 0 ? prefix + joined : ''; +} +//# sourceMappingURL=stringify.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c83d1253e9cdf13b235eeaee236662120d9ac095 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/stringify.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"stringify.mjs","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE;OACrC,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE;OAEjD,EAAE,OAAO,EAAE;AAElB,MAAM,uBAAuB,GAAG;IAC9B,QAAQ,CAAC,MAAmB;QAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC/B,CAAC;IACD,KAAK,EAAE,OAAO;IACd,OAAO,CAAC,MAAmB,EAAE,GAAW;QACtC,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,MAAmB;QACxB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;CACF,CAAC;AAEF,MAAM,aAAa,GAAG,UAAU,GAAU,EAAE,cAAmB;IAC7D,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEF,IAAI,WAAW,CAAC;AAEhB,MAAM,QAAQ,GAAG;IACf,cAAc,EAAE,KAAK;IACrB,SAAS,EAAE,KAAK;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CAAC;YACN,0BAA0B;YAC1B,MAAM,IAAI,iBAAiB,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..d870760b55576979514889e9f39f705d316617b9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts @@ -0,0 +1,57 @@ +export type Format = 'RFC1738' | 'RFC3986'; +export type DefaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; +export type DefaultDecoder = (str: string, decoder?: any, charset?: string) => string; +export type BooleanOptional = boolean | undefined; +export type StringifyBaseOptions = { + delimiter?: string; + allowDots?: boolean; + encodeDotInKeys?: boolean; + strictNullHandling?: boolean; + skipNulls?: boolean; + encode?: boolean; + encoder?: (str: any, defaultEncoder: DefaultEncoder, charset: string, type: 'key' | 'value', format?: Format) => string; + filter?: Array | ((prefix: PropertyKey, value: any) => any); + arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma'; + indices?: boolean; + sort?: ((a: PropertyKey, b: PropertyKey) => number) | null; + serializeDate?: (d: Date) => string; + format?: 'RFC1738' | 'RFC3986'; + formatter?: (str: PropertyKey) => string; + encodeValuesOnly?: boolean; + addQueryPrefix?: boolean; + charset?: 'utf-8' | 'iso-8859-1'; + charsetSentinel?: boolean; + allowEmptyArrays?: boolean; + commaRoundTrip?: boolean; +}; +export type StringifyOptions = StringifyBaseOptions; +export type ParseBaseOptions = { + comma?: boolean; + delimiter?: string | RegExp; + depth?: number | false; + decoder?: (str: string, defaultDecoder: DefaultDecoder, charset: string, type: 'key' | 'value') => any; + arrayLimit?: number; + parseArrays?: boolean; + plainObjects?: boolean; + allowPrototypes?: boolean; + allowSparse?: boolean; + parameterLimit?: number; + strictDepth?: boolean; + strictNullHandling?: boolean; + ignoreQueryPrefix?: boolean; + charset?: 'utf-8' | 'iso-8859-1'; + charsetSentinel?: boolean; + interpretNumericEntities?: boolean; + allowEmptyArrays?: boolean; + duplicates?: 'combine' | 'first' | 'last'; + allowDots?: boolean; + decodeDotInKeys?: boolean; +}; +export type ParseOptions = ParseBaseOptions; +export type ParsedQs = { + [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[]; +}; +export type NonNullableProperties = { + [K in keyof T]-?: Exclude; +}; +//# sourceMappingURL=types.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..54bb0bdb93826ca4c44f9f8598fcd91bbd460309 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/internal/qs/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAC1F,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAEtF,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAA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IAAI,CAAC;CAClD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..989a959a1cf0fb16940c37240128a268ebdc2e30 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts @@ -0,0 +1,57 @@ +export type Format = 'RFC1738' | 'RFC3986'; +export type DefaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; +export type DefaultDecoder = (str: string, decoder?: any, charset?: string) => string; +export type BooleanOptional = boolean | undefined; +export type StringifyBaseOptions = { + delimiter?: string; + allowDots?: boolean; + encodeDotInKeys?: boolean; + strictNullHandling?: boolean; + skipNulls?: boolean; + encode?: boolean; + encoder?: (str: any, defaultEncoder: DefaultEncoder, charset: string, type: 'key' | 'value', format?: Format) => string; + filter?: Array | ((prefix: PropertyKey, value: any) => any); + arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma'; + indices?: boolean; + sort?: ((a: PropertyKey, b: PropertyKey) => number) | null; + serializeDate?: (d: Date) => string; + format?: 'RFC1738' | 'RFC3986'; + formatter?: (str: PropertyKey) => string; + encodeValuesOnly?: boolean; + addQueryPrefix?: boolean; + charset?: 'utf-8' | 'iso-8859-1'; + charsetSentinel?: boolean; + allowEmptyArrays?: boolean; + commaRoundTrip?: boolean; +}; +export type StringifyOptions = StringifyBaseOptions; +export type ParseBaseOptions = { + comma?: boolean; + delimiter?: string | RegExp; + depth?: number | false; + decoder?: (str: string, defaultDecoder: DefaultDecoder, charset: string, type: 'key' | 'value') => any; + arrayLimit?: number; + parseArrays?: boolean; + plainObjects?: boolean; + allowPrototypes?: boolean; + allowSparse?: boolean; + parameterLimit?: number; + strictDepth?: boolean; + strictNullHandling?: boolean; + ignoreQueryPrefix?: boolean; + charset?: 'utf-8' | 'iso-8859-1'; + charsetSentinel?: boolean; + interpretNumericEntities?: boolean; + allowEmptyArrays?: boolean; + duplicates?: 'combine' | 'first' | 'last'; + allowDots?: boolean; + decodeDotInKeys?: boolean; +}; +export type ParseOptions = ParseBaseOptions; +export type ParsedQs = { + [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[]; +}; +export type NonNullableProperties = { + [K in keyof T]-?: Exclude; +}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..83608b9ad4a40fe35740977a2ad7c5edd05781bb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/internal/qs/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAC1F,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAEtF,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CACR,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,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,KAAK,GAAG,CAAC;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAE5C,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;CACtE,CAAC;AAGF,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;KACpC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAClD,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js new file mode 100644 index 0000000000000000000000000000000000000000..11e638d1ee44ae0dcb1feb5aef676ea74a7d4df3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3f947ace6cec18c95342845e0ab76c51552de9fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/internal/qs/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs new file mode 100644 index 0000000000000000000000000000000000000000..ce3aaacc9b65f971207c7833c2825c31e165c600 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=types.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..e64a9c6af7cbc47e7e1d6c026c90628e3ca56569 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/types.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/internal/qs/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..282e02bfaeb05623e4550d7bd30c4bd113768389 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts @@ -0,0 +1,15 @@ +import type { DefaultEncoder, Format } from "./types.mjs"; +export declare let has: (obj: object, key: PropertyKey) => boolean; +export declare function merge(target: any, source: any, options?: { + plainObjects?: boolean; + allowPrototypes?: boolean; +}): any; +export declare function assign_single_source(target: any, source: any): any; +export declare function decode(str: string, _: any, charset: string): string; +export declare const encode: (str: any, defaultEncoder: DefaultEncoder, charset: string, type: 'key' | 'value', format: Format) => string; +export declare function compact(value: any): any; +export declare function is_regexp(obj: any): boolean; +export declare function is_buffer(obj: any): boolean; +export declare function combine(a: any, b: any): never[]; +export declare function maybe_map(val: T[], fn: (v: T) => T): T | T[]; +//# sourceMappingURL=utils.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..3a1dfaba8d2e3fef03f6a449fcfbff822acadbf9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../../src/internal/qs/utils.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE;AAGtC,eAAO,IAAI,GAAG,GAAI,KAAK,MAAM,EAAE,KAAK,WAAW,KAAG,OAGjD,CAAC;AA4CF,wBAAgB,KAAK,CACnB,MAAM,EAAE,GAAG,EACX,MAAM,EAAE,GAAG,EACX,OAAO,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,OAwDpE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAK5D;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAY1D;AAID,eAAO,MAAM,MAAM,EAAE,CACnB,GAAG,EAAE,GAAG,EACR,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,KAAK,GAAG,OAAO,EACrB,MAAM,EAAE,MAAM,KACX,MAuEJ,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,OAuBjC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,WAEjC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,WAMjC;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,WAErC;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WASrD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fa73204b5f621293589202f5b75cf901d7e3bb36 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts @@ -0,0 +1,15 @@ +import type { DefaultEncoder, Format } from "./types.js"; +export declare let has: (obj: object, key: PropertyKey) => boolean; +export declare function merge(target: any, source: any, options?: { + plainObjects?: boolean; + allowPrototypes?: boolean; +}): any; +export declare function assign_single_source(target: any, source: any): any; +export declare function decode(str: string, _: any, charset: string): string; +export declare const encode: (str: any, defaultEncoder: DefaultEncoder, charset: string, type: 'key' | 'value', format: Format) => string; +export declare function compact(value: any): any; +export declare function is_regexp(obj: any): boolean; +export declare function is_buffer(obj: any): boolean; +export declare function combine(a: any, b: any): never[]; +export declare function maybe_map(val: T[], fn: (v: T) => T): T | T[]; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..38c96676820ca6bed54d31d638ae4e0972b4121d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/internal/qs/utils.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE;AAGtC,eAAO,IAAI,GAAG,GAAI,KAAK,MAAM,EAAE,KAAK,WAAW,KAAG,OAGjD,CAAC;AA4CF,wBAAgB,KAAK,CACnB,MAAM,EAAE,GAAG,EACX,MAAM,EAAE,GAAG,EACX,OAAO,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,OAwDpE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAK5D;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAY1D;AAID,eAAO,MAAM,MAAM,EAAE,CACnB,GAAG,EAAE,GAAG,EACR,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,KAAK,GAAG,OAAO,EACrB,MAAM,EAAE,MAAM,KACX,MAuEJ,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,OAuBjC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,WAEjC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,WAMjC;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,WAErC;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WASrD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..a08c610ef00eaed3d5fea370daae010462e63233 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js @@ -0,0 +1,230 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.encode = exports.has = void 0; +exports.merge = merge; +exports.assign_single_source = assign_single_source; +exports.decode = decode; +exports.compact = compact; +exports.is_regexp = is_regexp; +exports.is_buffer = is_buffer; +exports.combine = combine; +exports.maybe_map = maybe_map; +const formats_1 = require("./formats.js"); +const values_1 = require("../utils/values.js"); +let has = (obj, key) => ((exports.has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty)), + (0, exports.has)(obj, key)); +exports.has = has; +const hex_table = /* @__PURE__ */ (() => { + const array = []; + for (let i = 0; i < 256; ++i) { + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + } + return array; +})(); +function compact_queue(queue) { + while (queue.length > 1) { + const item = queue.pop(); + if (!item) + continue; + const obj = item.obj[item.prop]; + if ((0, values_1.isArray)(obj)) { + const compacted = []; + for (let j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted.push(obj[j]); + } + } + // @ts-ignore + item.obj[item.prop] = compacted; + } + } +} +function array_to_object(source, options) { + const obj = options && options.plainObjects ? Object.create(null) : {}; + for (let i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + return obj; +} +function merge(target, source, options = {}) { + if (!source) { + return target; + } + if (typeof source !== 'object') { + if ((0, values_1.isArray)(target)) { + target.push(source); + } + else if (target && typeof target === 'object') { + if ((options && (options.plainObjects || options.allowPrototypes)) || !(0, exports.has)(Object.prototype, source)) { + target[source] = true; + } + } + else { + return [target, source]; + } + return target; + } + if (!target || typeof target !== 'object') { + return [target].concat(source); + } + let mergeTarget = target; + if ((0, values_1.isArray)(target) && !(0, values_1.isArray)(source)) { + // @ts-ignore + mergeTarget = array_to_object(target, options); + } + if ((0, values_1.isArray)(target) && (0, values_1.isArray)(source)) { + source.forEach(function (item, i) { + if ((0, exports.has)(target, i)) { + const targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } + else { + target.push(item); + } + } + else { + target[i] = item; + } + }); + return target; + } + return Object.keys(source).reduce(function (acc, key) { + const value = source[key]; + if ((0, exports.has)(acc, key)) { + acc[key] = merge(acc[key], value, options); + } + else { + acc[key] = value; + } + return acc; + }, mergeTarget); +} +function assign_single_source(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +} +function decode(str, _, charset) { + const strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } + catch (e) { + return strWithoutPlus; + } +} +const limit = 1024; +const encode = (str, _defaultEncoder, charset, _kind, format) => { + // This code was originally written by Brian White for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + let string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } + else if (typeof str !== 'string') { + string = String(str); + } + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + let out = ''; + for (let j = 0; j < string.length; j += limit) { + const segment = string.length >= limit ? string.slice(j, j + limit) : string; + const arr = []; + for (let i = 0; i < segment.length; ++i) { + let c = segment.charCodeAt(i); + if (c === 0x2d || // - + c === 0x2e || // . + c === 0x5f || // _ + c === 0x7e || // ~ + (c >= 0x30 && c <= 0x39) || // 0-9 + (c >= 0x41 && c <= 0x5a) || // a-z + (c >= 0x61 && c <= 0x7a) || // A-Z + (format === formats_1.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + arr[arr.length] = segment.charAt(i); + continue; + } + if (c < 0x80) { + arr[arr.length] = hex_table[c]; + continue; + } + if (c < 0x800) { + arr[arr.length] = hex_table[0xc0 | (c >> 6)] + hex_table[0x80 | (c & 0x3f)]; + continue; + } + if (c < 0xd800 || c >= 0xe000) { + arr[arr.length] = + hex_table[0xe0 | (c >> 12)] + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)]; + continue; + } + i += 1; + c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff)); + arr[arr.length] = + hex_table[0xf0 | (c >> 18)] + + hex_table[0x80 | ((c >> 12) & 0x3f)] + + hex_table[0x80 | ((c >> 6) & 0x3f)] + + hex_table[0x80 | (c & 0x3f)]; + } + out += arr.join(''); + } + return out; +}; +exports.encode = encode; +function compact(value) { + const queue = [{ obj: { o: value }, prop: 'o' }]; + const refs = []; + for (let i = 0; i < queue.length; ++i) { + const item = queue[i]; + // @ts-ignore + const obj = item.obj[item.prop]; + const keys = Object.keys(obj); + for (let j = 0; j < keys.length; ++j) { + const key = keys[j]; + const val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue.push({ obj: obj, prop: key }); + refs.push(val); + } + } + } + compact_queue(queue); + return value; +} +function is_regexp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +} +function is_buffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +} +function combine(a, b) { + return [].concat(a, b); +} +function maybe_map(val, fn) { + if ((0, values_1.isArray)(val)) { + const mapped = []; + for (let i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +} +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3ebc3bdba287781d00bb47a681fc32039572a5b4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/internal/qs/utils.ts"],"names":[],"mappings":";;;AAmDA,sBA2DC;AAED,oDAKC;AAED,wBAYC;AAmFD,0BAuBC;AAED,8BAEC;AAED,8BAMC;AAED,0BAEC;AAED,8BASC;AAxQD,0CAAoC;AAEpC,+CAA0C;AAEnC,IAAI,GAAG,GAAG,CAAC,GAAW,EAAE,GAAgB,EAAW,EAAE,CAAC,CAC3D,CAAC,WAAG,GAAI,MAAc,CAAC,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC/F,IAAA,WAAG,EAAC,GAAG,EAAE,GAAG,CAAC,CACd,CAAC;AAHS,QAAA,GAAG,OAGZ;AAEF,MAAM,SAAS,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACtC,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,QAA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AAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC;IAED,aAAa,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,SAAS,CAAC,GAAQ;IAChC,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;AACnE,CAAC;AAED,SAAgB,SAAS,CAAC,GAAQ;IAChC,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,WAAW,CAAC,QAAQ,IAAI,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1F,CAAC;AAED,SAAgB,OAAO,CAAC,CAAM,EAAE,CAAM;IACpC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACzB,CAAC;AAED,SAAgB,SAAS,CAAI,GAAQ,EAAE,EAAe;IACpD,IAAI,IAAA,gBAAO,EAAC,GAAG,CAAC,EAAE,CAAC;QACjB,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs new file mode 100644 index 0000000000000000000000000000000000000000..9bc5a0ba000de71a36eb5568807fc30380d18d58 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs @@ -0,0 +1,217 @@ +import { RFC1738 } from "./formats.mjs"; +import { isArray } from "../utils/values.mjs"; +export let has = (obj, key) => ((has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty)), + has(obj, key)); +const hex_table = /* @__PURE__ */ (() => { + const array = []; + for (let i = 0; i < 256; ++i) { + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + } + return array; +})(); +function compact_queue(queue) { + while (queue.length > 1) { + const item = queue.pop(); + if (!item) + continue; + const obj = item.obj[item.prop]; + if (isArray(obj)) { + const compacted = []; + for (let j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted.push(obj[j]); + } + } + // @ts-ignore + item.obj[item.prop] = compacted; + } + } +} +function array_to_object(source, options) { + const obj = options && options.plainObjects ? Object.create(null) : {}; + for (let i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + return obj; +} +export function merge(target, source, options = {}) { + if (!source) { + return target; + } + if (typeof source !== 'object') { + if (isArray(target)) { + target.push(source); + } + else if (target && typeof target === 'object') { + if ((options && (options.plainObjects || options.allowPrototypes)) || !has(Object.prototype, source)) { + target[source] = true; + } + } + else { + return [target, source]; + } + return target; + } + if (!target || typeof target !== 'object') { + return [target].concat(source); + } + let mergeTarget = target; + if (isArray(target) && !isArray(source)) { + // @ts-ignore + mergeTarget = array_to_object(target, options); + } + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has(target, i)) { + const targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } + else { + target.push(item); + } + } + else { + target[i] = item; + } + }); + return target; + } + return Object.keys(source).reduce(function (acc, key) { + const value = source[key]; + if (has(acc, key)) { + acc[key] = merge(acc[key], value, options); + } + else { + acc[key] = value; + } + return acc; + }, mergeTarget); +} +export function assign_single_source(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +} +export function decode(str, _, charset) { + const strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } + catch (e) { + return strWithoutPlus; + } +} +const limit = 1024; +export const encode = (str, _defaultEncoder, charset, _kind, format) => { + // This code was originally written by Brian White for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + let string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } + else if (typeof str !== 'string') { + string = String(str); + } + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + let out = ''; + for (let j = 0; j < string.length; j += limit) { + const segment = string.length >= limit ? string.slice(j, j + limit) : string; + const arr = []; + for (let i = 0; i < segment.length; ++i) { + let c = segment.charCodeAt(i); + if (c === 0x2d || // - + c === 0x2e || // . + c === 0x5f || // _ + c === 0x7e || // ~ + (c >= 0x30 && c <= 0x39) || // 0-9 + (c >= 0x41 && c <= 0x5a) || // a-z + (c >= 0x61 && c <= 0x7a) || // A-Z + (format === RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + arr[arr.length] = segment.charAt(i); + continue; + } + if (c < 0x80) { + arr[arr.length] = hex_table[c]; + continue; + } + if (c < 0x800) { + arr[arr.length] = hex_table[0xc0 | (c >> 6)] + hex_table[0x80 | (c & 0x3f)]; + continue; + } + if (c < 0xd800 || c >= 0xe000) { + arr[arr.length] = + hex_table[0xe0 | (c >> 12)] + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)]; + continue; + } + i += 1; + c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff)); + arr[arr.length] = + hex_table[0xf0 | (c >> 18)] + + hex_table[0x80 | ((c >> 12) & 0x3f)] + + hex_table[0x80 | ((c >> 6) & 0x3f)] + + hex_table[0x80 | (c & 0x3f)]; + } + out += arr.join(''); + } + return out; +}; +export function compact(value) { + const queue = [{ obj: { o: value }, prop: 'o' }]; + const refs = []; + for (let i = 0; i < queue.length; ++i) { + const item = queue[i]; + // @ts-ignore + const obj = item.obj[item.prop]; + const keys = Object.keys(obj); + for (let j = 0; j < keys.length; ++j) { + const key = keys[j]; + const val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue.push({ obj: obj, prop: key }); + refs.push(val); + } + } + } + compact_queue(queue); + return value; +} +export function is_regexp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +} +export function is_buffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +} +export function combine(a, b) { + return [].concat(a, b); +} +export function maybe_map(val, fn) { + if (isArray(val)) { + const mapped = []; + for (let i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +} +//# sourceMappingURL=utils.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ee04c2ab6b0ae0f443d3932222b0ea792928a42e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/qs/utils.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../../src/internal/qs/utils.ts"],"names":[],"mappings":"OAAO,EAAE,OAAO,EAAE;OAEX,EAAE,OAAO,EAAE;AAElB,MAAM,CAA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AACzB,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,GAAQ,EAAE,EAAe;IACpD,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACjB,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..7a5b2e6380cb9e42020a5b817c8efe1ff6670f8b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts @@ -0,0 +1,78 @@ +import { NullableHeaders } from "./headers.mjs"; +import type { BodyInit } from "./builtin-types.mjs"; +import { Stream } from "../core/streaming.mjs"; +import type { HTTPMethod, MergedRequestInit } from "./types.mjs"; +import { type HeadersLike } from "./headers.mjs"; +export type FinalRequestOptions = RequestOptions & { + method: HTTPMethod; + path: string; +}; +export type RequestOptions = { + /** + * The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete'). + */ + method?: HTTPMethod; + /** + * The URL path for the request. + * + * @example "/v1/foo" + */ + path?: string; + /** + * Query parameters to include in the request URL. + */ + query?: object | undefined | null; + /** + * The request body. Can be a string, JSON object, FormData, or other supported types. + */ + body?: unknown; + /** + * HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples. + */ + headers?: HeadersLike; + /** + * The maximum number of times that the client will retry a request in case of a + * temporary failure, like a network error or a 5XX error from the server. + * + * @default 2 + */ + maxRetries?: number; + stream?: boolean | undefined; + /** + * The maximum amount of time (in milliseconds) that the client should wait for a response + * from the server before timing out a single request. + * + * @unit milliseconds + */ + timeout?: number; + /** + * Additional `RequestInit` options to be passed to the underlying `fetch` call. + * These options will be merged with the client's default fetch options. + */ + fetchOptions?: MergedRequestInit; + /** + * An AbortSignal that can be used to cancel the request. + */ + signal?: AbortSignal | undefined | null; + /** + * A unique key for this request to enable idempotency. + */ + idempotencyKey?: string; + /** + * Override the default base URL for this specific request. + */ + defaultBaseURL?: string | undefined; + __metadata?: Record; + __binaryResponse?: boolean | undefined; + __streamClass?: typeof Stream; +}; +export type EncodedContent = { + bodyHeaders: HeadersLike; + body: BodyInit; +}; +export type RequestEncoder = (request: { + headers: NullableHeaders; + body: unknown; +}) => EncodedContent; +export declare const FallbackEncoder: RequestEncoder; +//# sourceMappingURL=request-options.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..ff84bf150b259635fe8d4a8d06576dc3eec284dd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"request-options.d.mts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,EAAE,MAAM,EAAE;OACV,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..786ddbb8a9d2ca8055bbb3000a9657d3430e705a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts @@ -0,0 +1,78 @@ +import { NullableHeaders } from "./headers.js"; +import type { BodyInit } from "./builtin-types.js"; +import { Stream } from "../core/streaming.js"; +import type { HTTPMethod, MergedRequestInit } from "./types.js"; +import { type HeadersLike } from "./headers.js"; +export type FinalRequestOptions = RequestOptions & { + method: HTTPMethod; + path: string; +}; +export type RequestOptions = { + /** + * The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete'). + */ + method?: HTTPMethod; + /** + * The URL path for the request. + * + * @example "/v1/foo" + */ + path?: string; + /** + * Query parameters to include in the request URL. + */ + query?: object | undefined | null; + /** + * The request body. Can be a string, JSON object, FormData, or other supported types. + */ + body?: unknown; + /** + * HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples. + */ + headers?: HeadersLike; + /** + * The maximum number of times that the client will retry a request in case of a + * temporary failure, like a network error or a 5XX error from the server. + * + * @default 2 + */ + maxRetries?: number; + stream?: boolean | undefined; + /** + * The maximum amount of time (in milliseconds) that the client should wait for a response + * from the server before timing out a single request. + * + * @unit milliseconds + */ + timeout?: number; + /** + * Additional `RequestInit` options to be passed to the underlying `fetch` call. + * These options will be merged with the client's default fetch options. + */ + fetchOptions?: MergedRequestInit; + /** + * An AbortSignal that can be used to cancel the request. + */ + signal?: AbortSignal | undefined | null; + /** + * A unique key for this request to enable idempotency. + */ + idempotencyKey?: string; + /** + * Override the default base URL for this specific request. + */ + defaultBaseURL?: string | undefined; + __metadata?: Record; + __binaryResponse?: boolean | undefined; + __streamClass?: typeof Stream; +}; +export type EncodedContent = { + bodyHeaders: HeadersLike; + body: BodyInit; +}; +export type RequestEncoder = (request: { + headers: NullableHeaders; + body: unknown; +}) => EncodedContent; +export declare const FallbackEncoder: RequestEncoder; +//# sourceMappingURL=request-options.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..62e784f18a441c225b375ba5e5eaa53637b033b0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,EAAE,MAAM,EAAE;OACV,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js new file mode 100644 index 0000000000000000000000000000000000000000..4cf2829ad01649666b5a98a9cee5268d494542a2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js @@ -0,0 +1,14 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FallbackEncoder = void 0; +const FallbackEncoder = ({ headers, body }) => { + return { + bodyHeaders: { + 'content-type': 'application/json', + }, + body: JSON.stringify(body), + }; +}; +exports.FallbackEncoder = FallbackEncoder; +//# sourceMappingURL=request-options.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9160d313b03989bfd93fb05a1f15293a7b8065ef --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAsF/E,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs new file mode 100644 index 0000000000000000000000000000000000000000..312df3532b08623fcb6f6de5614347d93440dd89 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export const FallbackEncoder = ({ headers, body }) => { + return { + bodyHeaders: { + 'content-type': 'application/json', + }, + body: JSON.stringify(body), + }; +}; +//# sourceMappingURL=request-options.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6dcc6f03046984e63abd42b7625432805916ee80 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/request-options.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAsFtF,MAAM,CAAC,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..407a6d08814c6966f99c1f8300157fc838e0837a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts @@ -0,0 +1,17 @@ +/** + * Shims for types that we can't always rely on being available globally. + * + * Note: these only exist at the type-level, there is no corresponding runtime + * version for any of these symbols. + */ +type NeverToAny = T extends never ? any : T; +/** @ts-ignore */ +type _DOMReadableStream = globalThis.ReadableStream; +/** @ts-ignore */ +type _NodeReadableStream = import('stream/web').ReadableStream; +type _ConditionalNodeReadableStream = typeof globalThis extends { + ReadableStream: any; +} ? never : _NodeReadableStream; +type _ReadableStream = NeverToAny<([0] extends [1 & _DOMReadableStream] ? never : _DOMReadableStream) | ([0] extends [1 & _ConditionalNodeReadableStream] ? never : _ConditionalNodeReadableStream)>; +export type { _ReadableStream as ReadableStream }; +//# sourceMappingURL=shim-types.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5ef827c791208be5f66d1832c57ff4942d7321dc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"shim-types.d.mts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f2bc2e7da4a7d6b01b8b119ca690757032a298f6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts @@ -0,0 +1,17 @@ +/** + * Shims for types that we can't always rely on being available globally. + * + * Note: these only exist at the type-level, there is no corresponding runtime + * version for any of these symbols. + */ +type NeverToAny = T extends never ? any : T; +/** @ts-ignore */ +type _DOMReadableStream = globalThis.ReadableStream; +/** @ts-ignore */ +type _NodeReadableStream = import('stream/web').ReadableStream; +type _ConditionalNodeReadableStream = typeof globalThis extends { + ReadableStream: any; +} ? never : _NodeReadableStream; +type _ReadableStream = NeverToAny<([0] extends [1 & _DOMReadableStream] ? never : _DOMReadableStream) | ([0] extends [1 & _ConditionalNodeReadableStream] ? never : _ConditionalNodeReadableStream)>; +export type { _ReadableStream as ReadableStream }; +//# sourceMappingURL=shim-types.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..66ecda1a3a0f5623206be8dd49a154c25e7abd3d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shim-types.d.ts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js new file mode 100644 index 0000000000000000000000000000000000000000..c5e5031ef895d4a6c61288b56b36d093efe0b3cc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js @@ -0,0 +1,4 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=shim-types.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js.map new file mode 100644 index 0000000000000000000000000000000000000000..cb30e0459ebfd01538bf234432340958bbbd9f85 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shim-types.js","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":";AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs new file mode 100644 index 0000000000000000000000000000000000000000..7f918e27249c018420245c6513cab5346c9f7e4e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export {}; +//# sourceMappingURL=shim-types.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4082696eda469129d62b8617544346c8c46ca6dc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shim-types.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"shim-types.mjs","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..51e47ef174efe30defaa8dc397b745b40110f88d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts @@ -0,0 +1,20 @@ +import type { Fetch } from "./builtin-types.mjs"; +import type { ReadableStream } from "./shim-types.mjs"; +export declare function getDefaultFetch(): Fetch; +type ReadableStreamArgs = ConstructorParameters; +export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream; +export declare function ReadableStreamFrom(iterable: Iterable | AsyncIterable): ReadableStream; +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export declare function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIterator; +/** + * Cancels a ReadableStream we don't need to consume. + * See https://undici.nodejs.org/#/?id=garbage-collection + */ +export declare function CancelReadableStream(stream: any): Promise; +export {}; +//# sourceMappingURL=shims.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f207b2e74ff938424aedbb885d4aef06738232fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"shims.d.mts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..814098894e467a8d5b75ce9e918dc513ae0a9bec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts @@ -0,0 +1,20 @@ +import type { Fetch } from "./builtin-types.js"; +import type { ReadableStream } from "./shim-types.js"; +export declare function getDefaultFetch(): Fetch; +type ReadableStreamArgs = ConstructorParameters; +export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream; +export declare function ReadableStreamFrom(iterable: Iterable | AsyncIterable): ReadableStream; +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export declare function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIterator; +/** + * Cancels a ReadableStream we don't need to consume. + * See https://undici.nodejs.org/#/?id=garbage-collection + */ +export declare function CancelReadableStream(stream: any): Promise; +export {}; +//# sourceMappingURL=shims.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..24e12130f3caac52ee92308c50696b9eb726b9b2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js new file mode 100644 index 0000000000000000000000000000000000000000..6fe68548b47a63066f003325e0dfb67db4e1453a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js @@ -0,0 +1,92 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDefaultFetch = getDefaultFetch; +exports.makeReadableStream = makeReadableStream; +exports.ReadableStreamFrom = ReadableStreamFrom; +exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable; +exports.CancelReadableStream = CancelReadableStream; +function getDefaultFetch() { + if (typeof fetch !== 'undefined') { + return fetch; + } + throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`'); +} +function makeReadableStream(...args) { + const ReadableStream = globalThis.ReadableStream; + if (typeof ReadableStream === 'undefined') { + // Note: All of the platforms / runtimes we officially support already define + // `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes. + throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`'); + } + return new ReadableStream(...args); +} +function ReadableStreamFrom(iterable) { + let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator](); + return makeReadableStream({ + start() { }, + async pull(controller) { + const { done, value } = await iter.next(); + if (done) { + controller.close(); + } + else { + controller.enqueue(value); + } + }, + async cancel() { + await iter.return?.(); + }, + }); +} +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +function ReadableStreamToAsyncIterable(stream) { + if (stream[Symbol.asyncIterator]) + return stream; + const reader = stream.getReader(); + return { + async next() { + try { + const result = await reader.read(); + if (result?.done) + reader.releaseLock(); // release lock when stream becomes closed + return result; + } + catch (e) { + reader.releaseLock(); // release lock when stream becomes errored + throw e; + } + }, + async return() { + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; + return { done: true, value: undefined }; + }, + [Symbol.asyncIterator]() { + return this; + }, + }; +} +/** + * Cancels a ReadableStream we don't need to consume. + * See https://undici.nodejs.org/#/?id=garbage-collection + */ +async function CancelReadableStream(stream) { + if (stream === null || typeof stream !== 'object') + return; + if (stream[Symbol.asyncIterator]) { + await stream[Symbol.asyncIterator]().return?.(); + return; + } + const reader = stream.getReader(); + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; +} +//# sourceMappingURL=shims.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b21efe84d813c723a612a18d3211b281288242ff --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shims.js","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAYtF,0CAQC;AAID,gDAWC;AAED,gDAkBC;AAQD,sEAyBC;AAMD,oDAYC;AA9FD,SAAgB,eAAe;IAC7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,OAAO,KAAY,CAAC;IACtB,CAAC;IAED,MAAM,IAAI,KAAK,CACb,mJAAmJ,CACpJ,CAAC;AACJ,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAG,IAAwB;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,cAAc,CAAC;IAC1D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE,CAAC;QAC1C,6EAA6E;QAC7E,yFAAyF;QACzF,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,kBAAkB,CAAI,QAAwC;IAC5E,IAAI,IAAI,GACN,MAAM,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC,CA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;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,oBAAoB,CAAC,MAAW;IACpD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO;IAE1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAChD,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACrB,MAAM,aAAa,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d92f1136ed84693cec622135fd5168375832423d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export function getDefaultFetch() { + if (typeof fetch !== 'undefined') { + return fetch; + } + throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`'); +} +export function makeReadableStream(...args) { + const ReadableStream = globalThis.ReadableStream; + if (typeof ReadableStream === 'undefined') { + // Note: All of the platforms / runtimes we officially support already define + // `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes. + throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`'); + } + return new ReadableStream(...args); +} +export function ReadableStreamFrom(iterable) { + let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator](); + return makeReadableStream({ + start() { }, + async pull(controller) { + const { done, value } = await iter.next(); + if (done) { + controller.close(); + } + else { + controller.enqueue(value); + } + }, + async cancel() { + await iter.return?.(); + }, + }); +} +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export function ReadableStreamToAsyncIterable(stream) { + if (stream[Symbol.asyncIterator]) + return stream; + const reader = stream.getReader(); + return { + async next() { + try { + const result = await reader.read(); + if (result?.done) + reader.releaseLock(); // release lock when stream becomes closed + return result; + } + catch (e) { + reader.releaseLock(); // release lock when stream becomes errored + throw e; + } + }, + async return() { + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; + return { done: true, value: undefined }; + }, + [Symbol.asyncIterator]() { + return this; + }, + }; +} +/** + * Cancels a ReadableStream we don't need to consume. + * See https://undici.nodejs.org/#/?id=garbage-collection + */ +export async function CancelReadableStream(stream) { + if (stream === null || typeof stream !== 'object') + return; + if (stream[Symbol.asyncIterator]) { + await stream[Symbol.asyncIterator]().return?.(); + return; + } + const reader = stream.getReader(); + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; +} +//# sourceMappingURL=shims.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..28fb4687f9dce586e4a16a72f2f1604d9cb98433 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/shims.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"shims.mjs","sourceRo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;IACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACrB,MAAM,aAAa,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..ca2d41be9cb15904a54589e035c91602b1277ea7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts @@ -0,0 +1,8 @@ +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export declare function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIterator; +//# sourceMappingURL=stream-utils.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..d637a9943cf59f7603f201f009d5c96dcefe0fe9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"stream-utils.d.mts","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1fd3c25fe15d5b4fd1a98a8046433bf2ca19702a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts @@ -0,0 +1,8 @@ +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export declare function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIterator; +//# sourceMappingURL=stream-utils.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..9e8ce6e650a811a6b9c747da492622cd65db0f3b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stream-utils.d.ts","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js new file mode 100644 index 0000000000000000000000000000000000000000..09c759de0b08bb9bf211a201c77416c7ebc9de91 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable; +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +function ReadableStreamToAsyncIterable(stream) { + if (stream[Symbol.asyncIterator]) + return stream; + const reader = stream.getReader(); + return { + async next() { + try { + const result = await reader.read(); + if (result?.done) + reader.releaseLock(); // release lock when stream becomes closed + return result; + } + catch (e) { + reader.releaseLock(); // release lock when stream becomes errored + throw e; + } + }, + async return() { + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; + return { done: true, value: undefined }; + }, + [Symbol.asyncIterator]() { + return this; + }, + }; +} +//# sourceMappingURL=stream-utils.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js.map new file mode 100644 index 0000000000000000000000000000000000000000..29c13681601ccddb238899b0dc60b9ec4a3b520a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stream-utils.js","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":";;AAMA,sEAyBC;AA/BD;;;;;GAKG;AACH,SAAgB,6BAA6B,CAAI,MAAW;IAC1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,MAAM,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnC,IAAI,MAAM,EAAE,IAAI;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,0CAA0C;gBAClF,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,2CAA2C;gBACjE,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,aAAa,CAAC;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs new file mode 100644 index 0000000000000000000000000000000000000000..6ff54b822d59bb3355d947659f2f964ce148de9d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs @@ -0,0 +1,35 @@ +/** + * Most browsers don't yet have async iterable support for ReadableStream, + * and Node has a very different way of reading bytes from its "ReadableStream". + * + * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 + */ +export function ReadableStreamToAsyncIterable(stream) { + if (stream[Symbol.asyncIterator]) + return stream; + const reader = stream.getReader(); + return { + async next() { + try { + const result = await reader.read(); + if (result?.done) + reader.releaseLock(); // release lock when stream becomes closed + return result; + } + catch (e) { + reader.releaseLock(); // release lock when stream becomes errored + throw e; + } + }, + async return() { + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; + return { done: true, value: undefined }; + }, + [Symbol.asyncIterator]() { + return this; + }, + }; +} +//# sourceMappingURL=stream-utils.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1403c59982c79edf860f93fa51b2941beecdb650 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/stream-utils.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"stream-utils.mjs","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAAI,MAAW;IAC1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,MAAM,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnC,IAAI,MAAM,EAAE,IAAI;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,0CAA0C;gBAClF,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,2CAA2C;gBACjE,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,aAAa,CAAC;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a80cfd574308de514a4a8e9cdc957ded11fe5d94 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts @@ -0,0 +1,45 @@ +import type { FilePropertyBag } from "./builtin-types.mjs"; +type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView; +/** + * Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc. + * Don't add arrayBuffer here, node-fetch doesn't have it + */ +interface BlobLike { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ + slice(start?: number, end?: number): BlobLike; +} +/** + * Intended to match DOM File, node:buffer File, undici File, etc. + */ +interface FileLike extends BlobLike { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ + readonly lastModified: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ + readonly name?: string | undefined; +} +/** + * Intended to match DOM Response, node-fetch Response, undici Response, etc. + */ +export interface ResponseLike { + url: string; + blob(): Promise; +} +export type ToFileInput = FileLike | ResponseLike | Exclude | AsyncIterable; +/** + * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats + * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s + * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible + * @param {Object=} options additional properties + * @param {string=} options.type the MIME type of the content + * @param {number=} options.lastModified the last modified timestamp + * @returns a {@link File} with the given properties + */ +export declare function toFile(value: ToFileInput | PromiseLike, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise; +export {}; +//# sourceMappingURL=to-file.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..92749a31405784a8cfbb634a9b985c212c231bf7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"to-file.d.mts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..7b8b296bf730248128306f9b5558e59f4c86249f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts @@ -0,0 +1,45 @@ +import type { FilePropertyBag } from "./builtin-types.js"; +type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView; +/** + * Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc. + * Don't add arrayBuffer here, node-fetch doesn't have it + */ +interface BlobLike { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ + slice(start?: number, end?: number): BlobLike; +} +/** + * Intended to match DOM File, node:buffer File, undici File, etc. + */ +interface FileLike extends BlobLike { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ + readonly lastModified: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ + readonly name?: string | undefined; +} +/** + * Intended to match DOM Response, node-fetch Response, undici Response, etc. + */ +export interface ResponseLike { + url: string; + blob(): Promise; +} +export type ToFileInput = FileLike | ResponseLike | Exclude | AsyncIterable; +/** + * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats + * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s + * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible + * @param {Object=} options additional properties + * @param {string=} options.type the MIME type of the content + * @param {number=} options.lastModified the last modified timestamp + * @returns a {@link File} with the given properties + */ +export declare function toFile(value: ToFileInput | PromiseLike, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise; +export {}; +//# sourceMappingURL=to-file.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..5625ee801197534c7a3f043f5b7051a52b2bc692 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"to-file.d.ts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js new file mode 100644 index 0000000000000000000000000000000000000000..dd51de8cf151cf78778f5b3680ae0e63d17bc61a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toFile = toFile; +const uploads_1 = require("./uploads.js"); +const uploads_2 = require("./uploads.js"); +/** + * This check adds the arrayBuffer() method type because it is available and used at runtime + */ +const isBlobLike = (value) => value != null && + typeof value === 'object' && + typeof value.size === 'number' && + typeof value.type === 'string' && + typeof value.text === 'function' && + typeof value.slice === 'function' && + typeof value.arrayBuffer === 'function'; +/** + * This check adds the arrayBuffer() method type because it is available and used at runtime + */ +const isFileLike = (value) => value != null && + typeof value === 'object' && + typeof value.name === 'string' && + typeof value.lastModified === 'number' && + isBlobLike(value); +const isResponseLike = (value) => value != null && + typeof value === 'object' && + typeof value.url === 'string' && + typeof value.blob === 'function'; +/** + * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats + * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s + * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible + * @param {Object=} options additional properties + * @param {string=} options.type the MIME type of the content + * @param {number=} options.lastModified the last modified timestamp + * @returns a {@link File} with the given properties + */ +async function toFile(value, name, options) { + (0, uploads_2.checkFileSupport)(); + // If it's a promise, resolve it. + value = await value; + // If we've been given a `File` we don't need to do anything + if (isFileLike(value)) { + if (value instanceof File) { + return value; + } + return (0, uploads_1.makeFile)([await value.arrayBuffer()], value.name); + } + if (isResponseLike(value)) { + const blob = await value.blob(); + name || (name = new URL(value.url).pathname.split(/[\\/]/).pop()); + return (0, uploads_1.makeFile)(await getBytes(blob), name, options); + } + const parts = await getBytes(value); + name || (name = (0, uploads_1.getName)(value)); + if (!options?.type) { + const type = parts.find((part) => typeof part === 'object' && 'type' in part && part.type); + if (typeof type === 'string') { + options = { ...options, type }; + } + } + return (0, uploads_1.makeFile)(parts, name, options); +} +async function getBytes(value) { + let parts = []; + if (typeof value === 'string' || + ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc. + value instanceof ArrayBuffer) { + parts.push(value); + } + else if (isBlobLike(value)) { + parts.push(value instanceof Blob ? value : await value.arrayBuffer()); + } + else if ((0, uploads_1.isAsyncIterable)(value) // includes Readable, ReadableStream, etc. + ) { + for await (const chunk of value) { + parts.push(...(await getBytes(chunk))); // TODO, consider validating? + } + } + else { + const constructor = value?.constructor?.name; + throw new Error(`Unexpected data type: ${typeof value}${constructor ? `; constructor: ${constructor}` : ''}${propsForError(value)}`); + } + return parts; +} +function propsForError(value) { + if (typeof value !== 'object' || value === null) + return ''; + const props = Object.getOwnPropertyNames(value); + return `; props: [${props.map((p) => `"${p}"`).join(', ')}]`; +} +//# sourceMappingURL=to-file.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js.map new file mode 100644 index 0000000000000000000000000000000000000000..eef027a5f4bf083c02e334d8df260695b268519f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.js.map @@ -0,0 +1 @@ +{"version":3,"file":"to-file.js","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":";;AAkFA,wBAqCC;AA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CAAC,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IACxE,CAAC;SAAM,IACL,IAAA,yBAAe,EAAC,KAAK,CAAC,CAAC,0CAA0C;MACjE,CAAC;QACD,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,QAAQ,CAAC,KAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B;QACvF,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,WAAW,GAAG,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC;QAC7C,MAAM,IAAI,KAAK,CACb,yBAAyB,OAAO,KAAK,GACnC,WAAW,CAAC,CAAC,CAAC,kBAAkB,WAAW,EAAE,CAAC,CAAC,CAAC,EAClD,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,aAAa,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c476ff118e665054a85602bc27a93ada34a6b986 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs @@ -0,0 +1,88 @@ +import { getName, makeFile, isAsyncIterable } from "./uploads.mjs"; +import { checkFileSupport } from "./uploads.mjs"; +/** + * This check adds the arrayBuffer() method type because it is available and used at runtime + */ +const isBlobLike = (value) => value != null && + typeof value === 'object' && + typeof value.size === 'number' && + typeof value.type === 'string' && + typeof value.text === 'function' && + typeof value.slice === 'function' && + typeof value.arrayBuffer === 'function'; +/** + * This check adds the arrayBuffer() method type because it is available and used at runtime + */ +const isFileLike = (value) => value != null && + typeof value === 'object' && + typeof value.name === 'string' && + typeof value.lastModified === 'number' && + isBlobLike(value); +const isResponseLike = (value) => value != null && + typeof value === 'object' && + typeof value.url === 'string' && + typeof value.blob === 'function'; +/** + * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats + * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s + * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible + * @param {Object=} options additional properties + * @param {string=} options.type the MIME type of the content + * @param {number=} options.lastModified the last modified timestamp + * @returns a {@link File} with the given properties + */ +export async function toFile(value, name, options) { + checkFileSupport(); + // If it's a promise, resolve it. + value = await value; + // If we've been given a `File` we don't need to do anything + if (isFileLike(value)) { + if (value instanceof File) { + return value; + } + return makeFile([await value.arrayBuffer()], value.name); + } + if (isResponseLike(value)) { + const blob = await value.blob(); + name || (name = new URL(value.url).pathname.split(/[\\/]/).pop()); + return makeFile(await getBytes(blob), name, options); + } + const parts = await getBytes(value); + name || (name = getName(value)); + if (!options?.type) { + const type = parts.find((part) => typeof part === 'object' && 'type' in part && part.type); + if (typeof type === 'string') { + options = { ...options, type }; + } + } + return makeFile(parts, name, options); +} +async function getBytes(value) { + let parts = []; + if (typeof value === 'string' || + ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc. + value instanceof ArrayBuffer) { + parts.push(value); + } + else if (isBlobLike(value)) { + parts.push(value instanceof Blob ? value : await value.arrayBuffer()); + } + else if (isAsyncIterable(value) // includes Readable, ReadableStream, etc. + ) { + for await (const chunk of value) { + parts.push(...(await getBytes(chunk))); // TODO, consider validating? + } + } + else { + const constructor = value?.constructor?.name; + throw new Error(`Unexpected data type: ${typeof value}${constructor ? `; constructor: ${constructor}` : ''}${propsForError(value)}`); + } + return parts; +} +function propsForError(value) { + if (typeof value !== 'object' || value === null) + return ''; + const props = Object.getOwnPropertyNames(value); + return `; props: [${props.map((p) => `"${p}"`).join(', ')}]`; +} +//# sourceMappingURL=to-file.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ad9431304899a7bb40d556cf4a2434fc53482da9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/to-file.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"to-file.mjs","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OAAO,EAAY,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;OAEhD,EAAE,gBAAgB,EAAE;AAmB3B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CAC7F,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU;IAChC,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU;IACjC,OAAO,KAAK,CAAC,WAAW,KAAK,UAAU,CAAC;AAY1C;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CAC7F,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,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BAAyB,OAAO,KAAK,GACnC,WAAW,CAAC,CAAC,CAAC,kBAAkB,WAAW,EAAE,CAAC,CAAC,CAAC,EAClD,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,aAAa,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.js new file mode 100644 index 0000000000000000000000000000000000000000..52fca6cae0fc6adaebdb1e3812894d68d8112a06 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.js @@ -0,0 +1,81 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.__setModuleDefault = exports.__createBinding = void 0; +exports.__classPrivateFieldSet = __classPrivateFieldSet; +exports.__classPrivateFieldGet = __classPrivateFieldGet; +exports.__exportStar = __exportStar; +exports.__importStar = __importStar; +function __classPrivateFieldSet(receiver, state, value, kind, f) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? (f.value = value) : state.set(receiver, value), value; +} +function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} +var __createBinding = Object.create + ? function (o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { + enumerable: true, + get: function () { + return m[k]; + }, + }; + } + Object.defineProperty(o, k2, desc); + } + : function (o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; +exports.__createBinding = __createBinding; +function __exportStar(m, o) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding(o, m, p); +} +var __setModuleDefault = Object.create + ? function (o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } + : function (o, v) { + o["default"] = v; + }; +exports.__setModuleDefault = __setModuleDefault; +var ownKeys = function (o) { + ownKeys = + Object.getOwnPropertyNames || + function (o2) { + var ar = []; + for (var k in o2) + if (Object.prototype.hasOwnProperty.call(o2, k)) + ar[ar.length] = k; + return ar; + }; + return ownKeys(o); +}; +function __importStar(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k = ownKeys(mod), i = 0; i < k.length; i++) + if (k[i] !== "default") + __createBinding(result, mod, k[i]); + } + __setModuleDefault(result, mod); + return result; +} diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a80a132139131ef6ee96359327f51384df6f8b75 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/tslib.mjs @@ -0,0 +1,17 @@ +function __classPrivateFieldSet(receiver, state, value, kind, f) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? (f.value = value) : state.set(receiver, value), value; +} +function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} +export { __classPrivateFieldSet, __classPrivateFieldGet }; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4c233b8faa8ab7896d2cb24b3135c49a181b057e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts @@ -0,0 +1,69 @@ +export type PromiseOrValue = T | Promise; +export type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete'; +export type KeysEnum = { + [P in keyof Required]: true; +}; +export type FinalizedRequestInit = RequestInit & { + headers: Headers; +}; +type NotAny = [0] extends [1 & T] ? never : T; +/** + * Some environments overload the global fetch function, and Parameters only gets the last signature. + */ +type OverloadedParameters = T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; + (...args: infer C): unknown; + (...args: infer D): unknown; +}) ? A | B | C | D : T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; + (...args: infer C): unknown; +}) ? A | B | C : T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; +}) ? A | B : T extends (...args: infer A) => unknown ? A : never; +/** + * These imports attempt to get types from a parent package's dependencies. + * Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which + * would cause typescript to show types not present at runtime. To avoid this, we import + * directly from parent node_modules folders. + * + * We need to check multiple levels because we don't know what directory structure we'll be in. + * For example, pnpm generates directories like this: + * ``` + * node_modules + * ├── .pnpm + * │ └── pkg@1.0.0 + * │ └── node_modules + * │ └── pkg + * │ └── internal + * │ └── types.d.ts + * ├── pkg -> .pnpm/pkg@1.0.0/node_modules/pkg + * └── undici + * ``` + * + * [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition + */ +/** @ts-ignore For users with \@types/node */ +type UndiciTypesRequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with undici */ +type UndiciRequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with \@types/bun */ +type BunRequestInit = globalThis.FetchRequestInit; +/** @ts-ignore For users with node-fetch@2 */ +type NodeFetch2RequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ +type NodeFetch3RequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users who use Deno */ +type FetchRequestInit = NonNullable[1]>; +type RequestInits = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** + * This type contains `RequestInit` options that may be available on the current runtime, + * including per-platform extensions like `dispatcher`, `agent`, `client`, etc. + */ +export type MergedRequestInit = RequestInits & +/** We don't include these in the types as they'll be overridden for every request. */ +Partial>; +export {}; +//# sourceMappingURL=types.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..92d5ceff952ac55a72f1028161b902866713f512 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.mts.map @@ -0,0 +1 @@ +{"version":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G,MAAM,CAAC,OAAO,uDAAuD,EAAE,WAAW,CAAC,CAAC;AACjvB,wCAAwC;AACxC,KAAK,gBAAgB,GAAG,WAAW,CAAC,oBAAoB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAG3E,KAAK,YAAY,GACb,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,iBAAiB,CAAC,GACzB,MAAM,CAAC,cAAc,CAAC,GACtB,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,WAAW,CAAC,GACnB,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE7B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY;AAC1C,sFAAsF;AACtF,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5f7feb0c7010cf50f51339001dbe35a00cc674a1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts @@ -0,0 +1,69 @@ +export type PromiseOrValue = T | Promise; +export type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete'; +export type KeysEnum = { + [P in keyof Required]: true; +}; +export type FinalizedRequestInit = RequestInit & { + headers: Headers; +}; +type NotAny = [0] extends [1 & T] ? never : T; +/** + * Some environments overload the global fetch function, and Parameters only gets the last signature. + */ +type OverloadedParameters = T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; + (...args: infer C): unknown; + (...args: infer D): unknown; +}) ? A | B | C | D : T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; + (...args: infer C): unknown; +}) ? A | B | C : T extends ({ + (...args: infer A): unknown; + (...args: infer B): unknown; +}) ? A | B : T extends (...args: infer A) => unknown ? A : never; +/** + * These imports attempt to get types from a parent package's dependencies. + * Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which + * would cause typescript to show types not present at runtime. To avoid this, we import + * directly from parent node_modules folders. + * + * We need to check multiple levels because we don't know what directory structure we'll be in. + * For example, pnpm generates directories like this: + * ``` + * node_modules + * ├── .pnpm + * │ └── pkg@1.0.0 + * │ └── node_modules + * │ └── pkg + * │ └── internal + * │ └── types.d.ts + * ├── pkg -> .pnpm/pkg@1.0.0/node_modules/pkg + * └── undici + * ``` + * + * [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition + */ +/** @ts-ignore For users with \@types/node */ +type UndiciTypesRequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with undici */ +type UndiciRequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with \@types/bun */ +type BunRequestInit = globalThis.FetchRequestInit; +/** @ts-ignore For users with node-fetch@2 */ +type NodeFetch2RequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ +type NodeFetch3RequestInit = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** @ts-ignore For users who use Deno */ +type FetchRequestInit = NonNullable[1]>; +type RequestInits = NotAny | NotAny | NotAny | NotAny | NotAny | NotAny | NotAny; +/** + * This type contains `RequestInit` options that may be available on the current runtime, + * including per-platform extensions like `dispatcher`, `agent`, `client`, etc. + */ +export type MergedRequestInit = RequestInits & +/** We don't include these in the types as they'll be overridden for every request. */ +Partial>; +export {}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..8155e04cc6f2867c752d24848913deeed157bbcc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/internal/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;CAAE,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEtE,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAEjD;;GAEG;AACH,KAAK,oBAAoB,CAAC,CAAC,IACzB,CAAC,SAAS,CACR;IACE,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;IAC5B,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;IAC5B,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;IAC5B,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;CAC7B,CACF,GACC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GACb,CAAC,SAAS,CACV;IACE,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;IAC5B,CAAC,GAAG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,MAAM,CAAC,OAAO,2CAA2C,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,OAAO,8CAA8C,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,OAAO,iDAAiD,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,OAAO,oDAAoD,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,OAAO,uDAAuD,EAAE,WAAW,CAAC,CAAC;AACjvB,wCAAwC;AACxC,KAAK,gBAAgB,GAAG,WAAW,CAAC,oBAAoB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAG3E,KAAK,YAAY,GACb,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,iBAAiB,CAAC,GACzB,MAAM,CAAC,cAAc,CAAC,GACtB,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,WAAW,CAAC,GACnB,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE7B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY;AAC1C,sFAAsF;AACtF,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js new file mode 100644 index 0000000000000000000000000000000000000000..dcea3286d5b2c834ffea25a4e3cf415744c1ab23 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js @@ -0,0 +1,4 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e32ca0c250afa3098048360198ba9a98d024e04d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/internal/types.ts"],"names":[],"mappings":";AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs new file mode 100644 index 0000000000000000000000000000000000000000..bd595dc41b0505b79369048b85d8ba045188d341 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export {}; +//# sourceMappingURL=types.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..57d7587aeb8e477a82170550aac97f10f38a1b40 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/types.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/internal/types.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..8bd95ea506b38a965ca5fcea0dd809884500c23e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts @@ -0,0 +1,42 @@ +import { type RequestOptions } from "./request-options.mjs"; +import type { FilePropertyBag, Fetch } from "./builtin-types.mjs"; +import type { OpenAI } from "../client.mjs"; +export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | DataView; +type FsReadStream = AsyncIterable & { + path: string | { + toString(): string; + }; +}; +interface BunFile extends Blob { + readonly name?: string | undefined; +} +export declare const checkFileSupport: () => void; +/** + * Typically, this is a native "File" class. + * + * We provide the {@link toFile} utility to convert a variety of objects + * into the File class. + * + * For convenience, you can also pass a fetch Response, or in Node, + * the result of fs.createReadStream(). + */ +export type Uploadable = File | Response | FsReadStream | BunFile; +/** + * Construct a `File` instance. This is used to ensure a helpful error is thrown + * for environments that don't define a global `File` yet. + */ +export declare function makeFile(fileBits: BlobPart[], fileName: string | undefined, options?: FilePropertyBag): File; +export declare function getName(value: any): string | undefined; +export declare const isAsyncIterable: (value: any) => value is AsyncIterable; +/** + * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value. + * Otherwise returns the request as is. + */ +export declare const maybeMultipartFormRequestOptions: (opts: RequestOptions, fetch: OpenAI | Fetch) => Promise; +type MultipartFormRequestOptions = Omit & { + body: unknown; +}; +export declare const multipartFormRequestOptions: (opts: MultipartFormRequestOptions, fetch: OpenAI | Fetch) => Promise; +export declare const createForm: >(body: T | undefined, fetch: OpenAI | Fetch) => Promise; +export {}; +//# sourceMappingURL=uploads.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..d78598a7ad856b53110e744ec29e955debc674e0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/internal/uploads.ts"],"names":[],"mappings":"OAAO,EAAE,KAAK,cAAc,EAAE;OACvB,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE;OAC/B,KAAK,EAAE,MAAM,EAAE;AAGtB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,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AAQ,CASlB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..175fd6aa276c2833fe32225d2d065f66297f62a4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts @@ -0,0 +1,42 @@ +import { type RequestOptions } from "./request-options.js"; +import type { FilePropertyBag, Fetch } from "./builtin-types.js"; +import type { OpenAI } from "../client.js"; +export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | DataView; +type FsReadStream = AsyncIterable & { + path: string | { + toString(): string; + }; +}; +interface BunFile extends Blob { + readonly name?: string | undefined; +} +export declare const checkFileSupport: () => void; +/** + * Typically, this is a native "File" class. + * + * We provide the {@link toFile} utility to convert a variety of objects + * into the File class. + * + * For convenience, you can also pass a fetch Response, or in Node, + * the result of fs.createReadStream(). + */ +export type Uploadable = File | Response | FsReadStream | BunFile; +/** + * Construct a `File` instance. This is used to ensure a helpful error is thrown + * for environments that don't define a global `File` yet. + */ +export declare function makeFile(fileBits: BlobPart[], fileName: string | undefined, options?: FilePropertyBag): File; +export declare function getName(value: any): string | undefined; +export declare const isAsyncIterable: (value: any) => value is AsyncIterable; +/** + * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value. + * Otherwise returns the request as is. + */ +export declare const maybeMultipartFormRequestOptions: (opts: RequestOptions, fetch: OpenAI | Fetch) => Promise; +type MultipartFormRequestOptions = Omit & { + body: unknown; +}; +export declare const multipartFormRequestOptions: (opts: MultipartFormRequestOptions, fetch: OpenAI | Fetch) => Promise; +export declare const createForm: >(body: T | undefined, fetch: OpenAI | Fetch) => Promise; +export {}; +//# sourceMappingURL=uploads.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..615887aee281ad96ab315543713234922b8a34fc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/internal/uploads.ts"],"names":[],"mappings":"OAAO,EAAE,KAAK,cAAc,EAAE;OACvB,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE;OAC/B,KAAK,EAAE,MAAM,EAAE;AAGtB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,QAAQ,CAAC;AAChF,KAAK,YAAY,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,GAAG;QAAE,QAAQ,IAAI,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAG1F,UAAU,OAAQ,SAAQ,IAAI;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB,YAY5B,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC;AAElE;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,QAAQ,EAAE,EACpB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,CAAC,EAAE,eAAe,GACxB,IAAI,CAGN;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CActD;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,aAAa,CAAC,GAAG,CAC0B,CAAC;AAElG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,GAC3C,MAAM,cAAc,EACpB,OAAO,MAAM,GAAG,KAAK,KACpB,OAAO,CAAC,cAAc,CAIxB,CAAC;AAEF,KAAK,2BAA2B,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpF,eAAO,MAAM,2BAA2B,GACtC,MAAM,2BAA2B,EACjC,OAAO,MAAM,GAAG,KAAK,KACpB,OAAO,CAAC,cAAc,CAExB,CAAC;AAkCF,eAAO,MAAM,UAAU,GAAU,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,MAAM,CAAC,GAAG,SAAS,EACnB,OAAO,MAAM,GAAG,KAAK,KACpB,OAAO,CAAC,QAAQ,CASlB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js new file mode 100644 index 0000000000000000000000000000000000000000..5627e5a3ad37fdc30aa673895e3023d5e4644d39 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js @@ -0,0 +1,141 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createForm = exports.multipartFormRequestOptions = exports.maybeMultipartFormRequestOptions = exports.isAsyncIterable = exports.checkFileSupport = void 0; +exports.makeFile = makeFile; +exports.getName = getName; +const shims_1 = require("./shims.js"); +const checkFileSupport = () => { + if (typeof File === 'undefined') { + const { process } = globalThis; + const isOldNode = typeof process?.versions?.node === 'string' && parseInt(process.versions.node.split('.')) < 20; + throw new Error('`File` is not defined as a global, which is required for file uploads.' + + (isOldNode ? + " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." + : '')); + } +}; +exports.checkFileSupport = checkFileSupport; +/** + * Construct a `File` instance. This is used to ensure a helpful error is thrown + * for environments that don't define a global `File` yet. + */ +function makeFile(fileBits, fileName, options) { + (0, exports.checkFileSupport)(); + return new File(fileBits, fileName ?? 'unknown_file', options); +} +function getName(value) { + return (((typeof value === 'object' && + value !== null && + (('name' in value && value.name && String(value.name)) || + ('url' in value && value.url && String(value.url)) || + ('filename' in value && value.filename && String(value.filename)) || + ('path' in value && value.path && String(value.path)))) || + '') + .split(/[\\/]/) + .pop() || undefined); +} +const isAsyncIterable = (value) => value != null && typeof value === 'object' && typeof value[Symbol.asyncIterator] === 'function'; +exports.isAsyncIterable = isAsyncIterable; +/** + * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value. + * Otherwise returns the request as is. + */ +const maybeMultipartFormRequestOptions = async (opts, fetch) => { + if (!hasUploadableValue(opts.body)) + return opts; + return { ...opts, body: await (0, exports.createForm)(opts.body, fetch) }; +}; +exports.maybeMultipartFormRequestOptions = maybeMultipartFormRequestOptions; +const multipartFormRequestOptions = async (opts, fetch) => { + return { ...opts, body: await (0, exports.createForm)(opts.body, fetch) }; +}; +exports.multipartFormRequestOptions = multipartFormRequestOptions; +const supportsFormDataMap = /* @__PURE__ */ new WeakMap(); +/** + * node-fetch doesn't support the global FormData object in recent node versions. Instead of sending + * properly-encoded form data, it just stringifies the object, resulting in a request body of "[object FormData]". + * This function detects if the fetch function provided supports the global FormData object to avoid + * confusing error messages later on. + */ +function supportsFormData(fetchObject) { + const fetch = typeof fetchObject === 'function' ? fetchObject : fetchObject.fetch; + const cached = supportsFormDataMap.get(fetch); + if (cached) + return cached; + const promise = (async () => { + try { + const FetchResponse = ('Response' in fetch ? + fetch.Response + : (await fetch('data:,')).constructor); + const data = new FormData(); + if (data.toString() === (await new FetchResponse(data).text())) { + return false; + } + return true; + } + catch { + // avoid false negatives + return true; + } + })(); + supportsFormDataMap.set(fetch, promise); + return promise; +} +const createForm = async (body, fetch) => { + if (!(await supportsFormData(fetch))) { + throw new TypeError('The provided fetch function does not support file uploads with the current global FormData class.'); + } + const form = new FormData(); + await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value))); + return form; +}; +exports.createForm = createForm; +// We check for Blob not File because Bun.File doesn't inherit from File, +// but they both inherit from Blob and have a `name` property at runtime. +const isNamedBlob = (value) => value instanceof Blob && 'name' in value; +const isUploadable = (value) => typeof value === 'object' && + value !== null && + (value instanceof Response || (0, exports.isAsyncIterable)(value) || isNamedBlob(value)); +const hasUploadableValue = (value) => { + if (isUploadable(value)) + return true; + if (Array.isArray(value)) + return value.some(hasUploadableValue); + if (value && typeof value === 'object') { + for (const k in value) { + if (hasUploadableValue(value[k])) + return true; + } + } + return false; +}; +const addFormValue = async (form, key, value) => { + if (value === undefined) + return; + if (value == null) { + throw new TypeError(`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`); + } + // TODO: make nested formats configurable + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + form.append(key, String(value)); + } + else if (value instanceof Response) { + form.append(key, makeFile([await value.blob()], getName(value))); + } + else if ((0, exports.isAsyncIterable)(value)) { + form.append(key, makeFile([await new Response((0, shims_1.ReadableStreamFrom)(value)).blob()], getName(value))); + } + else if (isNamedBlob(value)) { + form.append(key, value, getName(value)); + } + else if (Array.isArray(value)) { + await Promise.all(value.map((entry) => addFormValue(form, key + '[]', entry))); + } + else if (typeof value === 'object') { + await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop))); + } + else { + throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`); + } +}; +//# sourceMappingURL=uploads.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3b1acca555640aecf1a996e8f5aa2bc9d3614d84 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/internal/uploads.ts"],"names":[],"mappings":";;;AA0CA,4BAOC;AAED,0BAcC;AA9DD,sCAA6C;AAUtC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC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} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs new file mode 100644 index 0000000000000000000000000000000000000000..3f9b5a72ffe191b708c1853485c8e701925baa3f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs @@ -0,0 +1,131 @@ +import { ReadableStreamFrom } from "./shims.mjs"; +export const checkFileSupport = () => { + if (typeof File === 'undefined') { + const { process } = globalThis; + const isOldNode = typeof process?.versions?.node === 'string' && parseInt(process.versions.node.split('.')) < 20; + throw new Error('`File` is not defined as a global, which is required for file uploads.' + + (isOldNode ? + " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." + : '')); + } +}; +/** + * Construct a `File` instance. This is used to ensure a helpful error is thrown + * for environments that don't define a global `File` yet. + */ +export function makeFile(fileBits, fileName, options) { + checkFileSupport(); + return new File(fileBits, fileName ?? 'unknown_file', options); +} +export function getName(value) { + return (((typeof value === 'object' && + value !== null && + (('name' in value && value.name && String(value.name)) || + ('url' in value && value.url && String(value.url)) || + ('filename' in value && value.filename && String(value.filename)) || + ('path' in value && value.path && String(value.path)))) || + '') + .split(/[\\/]/) + .pop() || undefined); +} +export const isAsyncIterable = (value) => value != null && typeof value === 'object' && typeof value[Symbol.asyncIterator] === 'function'; +/** + * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value. + * Otherwise returns the request as is. + */ +export const maybeMultipartFormRequestOptions = async (opts, fetch) => { + if (!hasUploadableValue(opts.body)) + return opts; + return { ...opts, body: await createForm(opts.body, fetch) }; +}; +export const multipartFormRequestOptions = async (opts, fetch) => { + return { ...opts, body: await createForm(opts.body, fetch) }; +}; +const supportsFormDataMap = /* @__PURE__ */ new WeakMap(); +/** + * node-fetch doesn't support the global FormData object in recent node versions. Instead of sending + * properly-encoded form data, it just stringifies the object, resulting in a request body of "[object FormData]". + * This function detects if the fetch function provided supports the global FormData object to avoid + * confusing error messages later on. + */ +function supportsFormData(fetchObject) { + const fetch = typeof fetchObject === 'function' ? fetchObject : fetchObject.fetch; + const cached = supportsFormDataMap.get(fetch); + if (cached) + return cached; + const promise = (async () => { + try { + const FetchResponse = ('Response' in fetch ? + fetch.Response + : (await fetch('data:,')).constructor); + const data = new FormData(); + if (data.toString() === (await new FetchResponse(data).text())) { + return false; + } + return true; + } + catch { + // avoid false negatives + return true; + } + })(); + supportsFormDataMap.set(fetch, promise); + return promise; +} +export const createForm = async (body, fetch) => { + if (!(await supportsFormData(fetch))) { + throw new TypeError('The provided fetch function does not support file uploads with the current global FormData class.'); + } + const form = new FormData(); + await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value))); + return form; +}; +// We check for Blob not File because Bun.File doesn't inherit from File, +// but they both inherit from Blob and have a `name` property at runtime. +const isNamedBlob = (value) => value instanceof Blob && 'name' in value; +const isUploadable = (value) => typeof value === 'object' && + value !== null && + (value instanceof Response || isAsyncIterable(value) || isNamedBlob(value)); +const hasUploadableValue = (value) => { + if (isUploadable(value)) + return true; + if (Array.isArray(value)) + return value.some(hasUploadableValue); + if (value && typeof value === 'object') { + for (const k in value) { + if (hasUploadableValue(value[k])) + return true; + } + } + return false; +}; +const addFormValue = async (form, key, value) => { + if (value === undefined) + return; + if (value == null) { + throw new TypeError(`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`); + } + // TODO: make nested formats configurable + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + form.append(key, String(value)); + } + else if (value instanceof Response) { + form.append(key, makeFile([await value.blob()], getName(value))); + } + else if (isAsyncIterable(value)) { + form.append(key, makeFile([await new Response(ReadableStreamFrom(value)).blob()], getName(value))); + } + else if (isNamedBlob(value)) { + form.append(key, value, getName(value)); + } + else if (Array.isArray(value)) { + await Promise.all(value.map((entry) => addFormValue(form, key + '[]', entry))); + } + else if (typeof value === 'object') { + await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop))); + } + else { + throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`); + } +}; +//# sourceMappingURL=uploads.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b6472f99df16d568634cae625c9b1db2a337e62a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/uploads.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/internal/uploads.ts"],"names":[],"mappings":"OAGO,EAAE,kBAAkB,EAAE;AAU7B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,MAAM,EAAE,OAAO,EAAE,GAAG,UAAiB,CAAC;QACtC,MAAM,SAAS,GACb,OAAO,OAAO,EAAE,QAAQ,EAAE,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACjG,MAAM,IAAI,KAAK,CACb,wEAAwE;YACtE,CAAC,SAAS,CAAC,CAAC;gBACV,4FAA4F;gBAC9F,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAaF;;;GAGG;AACH,MAAM,UAAU,QAAQ,CACtB,QAAoB,EACpB,QAA4B,EAC5B,OAAyB;IAEzB,gBAAgB,EAAE,CAAC;IACnB,OAAO,IAAI,IAAI,CAAC,QAAe,EAAE,QAAQ,IAAI,cAAc,EAAE,OAAO,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAAU;IAChC,OAAO,CACL,CACE,CAAC,OAAO,KAAK,KAAK,QAAQ;QACxB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,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CACzF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..1b382453c98c6b13a2b74737895e3b026ff774c7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts @@ -0,0 +1,7 @@ +export * from "./utils/values.mjs"; +export * from "./utils/base64.mjs"; +export * from "./utils/env.mjs"; +export * from "./utils/log.mjs"; +export * from "./utils/uuid.mjs"; +export * from "./utils/sleep.mjs"; +//# sourceMappingURL=utils.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..39794709188e4fd7f3787cdf79cf47a36a7b6014 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6b8077481d33a287f4c24aa6d1b3751c0c92fd72 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts @@ -0,0 +1,7 @@ +export * from "./utils/values.js"; +export * from "./utils/base64.js"; +export * from "./utils/env.js"; +export * from "./utils/log.js"; +export * from "./utils/uuid.js"; +export * from "./utils/sleep.js"; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e9f48276450f32dd0746af9e44bb69d3bb070384 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..60fe423cd2960e505626fed8e9bed7ab039999b5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js @@ -0,0 +1,11 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("./tslib.js"); +tslib_1.__exportStar(require("./utils/values.js"), exports); +tslib_1.__exportStar(require("./utils/base64.js"), exports); +tslib_1.__exportStar(require("./utils/env.js"), exports); +tslib_1.__exportStar(require("./utils/log.js"), exports); +tslib_1.__exportStar(require("./utils/uuid.js"), exports); +tslib_1.__exportStar(require("./utils/sleep.js"), exports); +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a0d54844404083ca01df9db706262614bfe32c39 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B;AAC/B,4DAA+B;AAC/B,yDAA4B;AAC5B,yDAA4B;AAC5B,0DAA6B;AAC7B,2DAA8B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs new file mode 100644 index 0000000000000000000000000000000000000000..01563e2e2502abeae5d4e3128598a9b406f1a5d8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs @@ -0,0 +1,8 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./utils/values.mjs"; +export * from "./utils/base64.mjs"; +export * from "./utils/env.mjs"; +export * from "./utils/log.mjs"; +export * from "./utils/uuid.mjs"; +export * from "./utils/sleep.mjs"; +//# sourceMappingURL=utils.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..be21c422db336480d77350fea0c73ce3999471e3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..62ba63fbd1bdab5f7b7e359087648dd08a664f58 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts @@ -0,0 +1,9 @@ +export declare const toBase64: (data: string | Uint8Array | null | undefined) => string; +export declare const fromBase64: (str: string) => Uint8Array; +/** + * Converts a Base64 encoded string to a Float32Array. + * @param base64Str - The Base64 encoded string. + * @returns An Array of numbers interpreted as Float32 values. + */ +export declare const toFloat32Array: (base64Str: string) => Array; +//# sourceMappingURL=base64.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..844a859849ac8d2b87626cd9e51c7ed499adb8aa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"base64.d.mts","sourceRoot":"","sources":["../../src/internal/utils/base64.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,KAAG,MAgBvE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,UAgBxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,KAAG,KAAK,CAAC,MAAM,CAiB9D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9ad9acaef9cf120562b51073b5705b2a89b34d0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts @@ -0,0 +1,9 @@ +export declare const toBase64: (data: string | Uint8Array | null | undefined) => string; +export declare const fromBase64: (str: string) => Uint8Array; +/** + * Converts a Base64 encoded string to a Float32Array. + * @param base64Str - The Base64 encoded string. + * @returns An Array of numbers interpreted as Float32 values. + */ +export declare const toFloat32Array: (base64Str: string) => Array; +//# sourceMappingURL=base64.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d9e4537569b56766856ecaa0fda610dfc1c94191 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/internal/utils/base64.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,KAAG,MAgBvE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,UAgBxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,KAAG,KAAK,CAAC,MAAM,CAiB9D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js new file mode 100644 index 0000000000000000000000000000000000000000..49c8eea1b79e78bd3cfc282d851570da99d44250 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js @@ -0,0 +1,61 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toFloat32Array = exports.fromBase64 = exports.toBase64 = void 0; +const error_1 = require("../../core/error.js"); +const bytes_1 = require("./bytes.js"); +const toBase64 = (data) => { + if (!data) + return ''; + if (typeof globalThis.Buffer !== 'undefined') { + return globalThis.Buffer.from(data).toString('base64'); + } + if (typeof data === 'string') { + data = (0, bytes_1.encodeUTF8)(data); + } + if (typeof btoa !== 'undefined') { + return btoa(String.fromCharCode.apply(null, data)); + } + throw new error_1.OpenAIError('Cannot generate base64 string; Expected `Buffer` or `btoa` to be defined'); +}; +exports.toBase64 = toBase64; +const fromBase64 = (str) => { + if (typeof globalThis.Buffer !== 'undefined') { + const buf = globalThis.Buffer.from(str, 'base64'); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); + } + if (typeof atob !== 'undefined') { + const bstr = atob(str); + const buf = new Uint8Array(bstr.length); + for (let i = 0; i < bstr.length; i++) { + buf[i] = bstr.charCodeAt(i); + } + return buf; + } + throw new error_1.OpenAIError('Cannot decode base64 string; Expected `Buffer` or `atob` to be defined'); +}; +exports.fromBase64 = fromBase64; +/** + * Converts a Base64 encoded string to a Float32Array. + * @param base64Str - The Base64 encoded string. + * @returns An Array of numbers interpreted as Float32 values. + */ +const toFloat32Array = (base64Str) => { + if (typeof Buffer !== 'undefined') { + // for Node.js environment + const buf = Buffer.from(base64Str, 'base64'); + return Array.from(new Float32Array(buf.buffer, buf.byteOffset, buf.length / Float32Array.BYTES_PER_ELEMENT)); + } + else { + // for legacy web platform APIs + const binaryStr = atob(base64Str); + const len = binaryStr.length; + const bytes = new Uint8Array(len); + for (let i = 0; i < len; i++) { + bytes[i] = binaryStr.charCodeAt(i); + } + return Array.from(new Float32Array(bytes.buffer)); + } +}; +exports.toFloat32Array = toFloat32Array; +//# sourceMappingURL=base64.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js.map new file mode 100644 index 0000000000000000000000000000000000000000..634a8c0a1eec42cddfad082103807d43dc947838 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base64.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,kBAiBzB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs new file mode 100644 index 0000000000000000000000000000000000000000..7557305208c46836316266c0e7758c9aa4ee0690 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { OpenAIError } from "../../core/error.mjs"; +import { encodeUTF8 } from "./bytes.mjs"; +export const toBase64 = (data) => { + if (!data) + return ''; + if (typeof globalThis.Buffer !== 'undefined') { + return globalThis.Buffer.from(data).toString('base64'); + } + if (typeof data === 'string') { + data = encodeUTF8(data); + } + if (typeof btoa !== 'undefined') { + return btoa(String.fromCharCode.apply(null, data)); + } + throw new OpenAIError('Cannot generate base64 string; Expected `Buffer` or `btoa` to be defined'); +}; +export const fromBase64 = (str) => { + if (typeof globalThis.Buffer !== 'undefined') { + const buf = globalThis.Buffer.from(str, 'base64'); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); + } + if (typeof atob !== 'undefined') { + const bstr = atob(str); + const buf = new Uint8Array(bstr.length); + for (let i = 0; i < bstr.length; i++) { + buf[i] = bstr.charCodeAt(i); + } + return buf; + } + throw new OpenAIError('Cannot decode base64 string; Expected `Buffer` or `atob` to be defined'); +}; +/** + * Converts a Base64 encoded string to a Float32Array. + * @param base64Str - The Base64 encoded string. + * @returns An Array of numbers interpreted as Float32 values. + */ +export const toFloat32Array = (base64Str) => { + if (typeof Buffer !== 'undefined') { + // for Node.js environment + const buf = Buffer.from(base64Str, 'base64'); + return Array.from(new Float32Array(buf.buffer, buf.byteOffset, buf.length / Float32Array.BYTES_PER_ELEMENT)); + } + else { + // for legacy web platform APIs + const binaryStr = atob(base64Str); + const len = binaryStr.length; + const bytes = new Uint8Array(len); + for (let i = 0; i < len; i++) { + bytes[i] = binaryStr.charCodeAt(i); + } + return Array.from(new Float32Array(bytes.buffer)); + } +}; +//# sourceMappingURL=base64.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..50ac140d54292c8d6041076a4ce39c230a082479 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/base64.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"base64.mjs","sourceRoot":"","sources":["../../src/internal/utils/base64.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;AAErB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAA4C,EAAU,EAAE;IAC/E,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,IAAI,OAAQ,UAAkB,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QACtD,OAAQ,UAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAClE,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,IAAW,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,IAAI,WAAW,CAAC,0EAA0E,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAc,EAAE;IACpD,IAAI,OAAQ,UAAkB,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QACtD,MAAM,GAAG,GAA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AAG,CAAC,CAAC;QAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a6219ca298e2e1f1e6545fda6eab3b468ad4a69a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts @@ -0,0 +1,4 @@ +export declare function concatBytes(buffers: Uint8Array[]): Uint8Array; +export declare function encodeUTF8(str: string): Uint8Array; +export declare function decodeUTF8(bytes: Uint8Array): string; +//# sourceMappingURL=bytes.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f554eb726da2af580822569424a03f5b1a3ec9c0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"bytes.d.mts","sourceRoot":"","sources":["../../src/internal/utils/bytes.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAa7D;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,+BAMrC;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,UAM3C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b1dba564586b510100dba533c1b45a28a183821b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts @@ -0,0 +1,4 @@ +export declare function concatBytes(buffers: Uint8Array[]): Uint8Array; +export declare function encodeUTF8(str: string): Uint8Array; +export declare function decodeUTF8(bytes: Uint8Array): string; +//# sourceMappingURL=bytes.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..07fb5f776d332d4e33268b5b9300644579744463 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/internal/utils/bytes.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAa7D;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,+BAMrC;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,UAM3C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js new file mode 100644 index 0000000000000000000000000000000000000000..80b5263a4b627a3108616759f00111a469a29730 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.concatBytes = concatBytes; +exports.encodeUTF8 = encodeUTF8; +exports.decodeUTF8 = decodeUTF8; +function concatBytes(buffers) { + let length = 0; + for (const buffer of buffers) { + length += buffer.length; + } + const output = new Uint8Array(length); + let index = 0; + for (const buffer of buffers) { + output.set(buffer, index); + index += buffer.length; + } + return output; +} +let encodeUTF8_; +function encodeUTF8(str) { + let encoder; + return (encodeUTF8_ ?? + ((encoder = new globalThis.TextEncoder()), (encodeUTF8_ = encoder.encode.bind(encoder))))(str); +} +let decodeUTF8_; +function decodeUTF8(bytes) { + let decoder; + return (decodeUTF8_ ?? + ((decoder = new globalThis.TextDecoder()), (decodeUTF8_ = decoder.decode.bind(decoder))))(bytes); +} +//# sourceMappingURL=bytes.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a80632e1d1e4028918a1adeb5f35ddace5676d41 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bytes.js","sourceRoot":"","sources":["../../src/internal/utils/bytes.ts"],"names":[],"mappings":";;AAAA,kCAaC;AAGD,gCAMC;AAGD,gCAMC;AA/BD,SAAgB,WAAW,CAAC,OAAqB;IAC/C,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1B,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,IAAI,WAAwC,CAAC;AAC7C,SAAgB,UAAU,CAAC,GAAW;IACpC,IAAI,OAAO,CAAC;IACZ,OAAO,CACL,WAAW;QACX,CAAC,CAAC,OAAO,GAAG,IAAK,UAAkB,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAClG,CAAC,GAAG,CAAC,CAAC;AACT,CAAC;AAED,IAAI,WAA0C,CAAC;AAC/C,SAAgB,UAAU,CAAC,KAAiB;IAC1C,IAAI,OAAO,CAAC;IACZ,OAAO,CACL,WAAW;QACX,CAAC,CAAC,OAAO,GAAG,IAAK,UAAkB,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAClG,CAAC,KAAK,CAAC,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5b9bb3896291322ed54c5c514c1ac31b731e493f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs @@ -0,0 +1,26 @@ +export function concatBytes(buffers) { + let length = 0; + for (const buffer of buffers) { + length += buffer.length; + } + const output = new Uint8Array(length); + let index = 0; + for (const buffer of buffers) { + output.set(buffer, index); + index += buffer.length; + } + return output; +} +let encodeUTF8_; +export function encodeUTF8(str) { + let encoder; + return (encodeUTF8_ ?? + ((encoder = new globalThis.TextEncoder()), (encodeUTF8_ = encoder.encode.bind(encoder))))(str); +} +let decodeUTF8_; +export function decodeUTF8(bytes) { + let decoder; + return (decodeUTF8_ ?? + ((decoder = new globalThis.TextDecoder()), (decodeUTF8_ = decoder.decode.bind(decoder))))(bytes); +} +//# sourceMappingURL=bytes.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..cd5fa7541bb03aa1b567176fb37afb745f21d624 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/bytes.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"bytes.mjs","sourceRoot":"","sources":["../../src/internal/utils/bytes.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,OAAqB;IAC/C,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1B,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,IAAI,WAAwC,CAAC;AAC7C,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,IAAI,OAAO,CAAC;IACZ,OAAO,CACL,WAAW;QACX,CAAC,CAAC,OAAO,GAAG,IAAK,UAAkB,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAClG,CAAC,GAAG,CAAC,CAAC;AACT,CAAC;AAED,IAAI,WAA0C,CAAC;AAC/C,MAAM,UAAU,UAAU,CAAC,KAAiB;IAC1C,IAAI,OAAO,CAAC;IACZ,OAAO,CACL,WAAW;QACX,CAAC,CAAC,OAAO,GAAG,IAAK,UAAkB,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAClG,CAAC,KAAK,CAAC,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..1238d47ba51a6c4db33d01c724063d57d66083ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts @@ -0,0 +1,9 @@ +/** + * Read an environment variable. + * + * Trims beginning and trailing whitespace. + * + * Will return undefined if the environment variable doesn't exist or cannot be accessed. + */ +export declare const readEnv: (env: string) => string | undefined; +//# sourceMappingURL=env.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..58fa7dc2923016bed1bb050ba780eaab632decc0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"env.d.mts","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAQ9C,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..62c298576dd95f848ed9436305d08da00f53baef --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts @@ -0,0 +1,9 @@ +/** + * Read an environment variable. + * + * Trims beginning and trailing whitespace. + * + * Will return undefined if the environment variable doesn't exist or cannot be accessed. + */ +export declare const readEnv: (env: string) => string | undefined; +//# sourceMappingURL=env.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d28ad528547253e4605dc72b2adf8f9d0e299b39 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAQ9C,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js new file mode 100644 index 0000000000000000000000000000000000000000..8d454732ae90c144f7f340146a6d04f28c26b90f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js @@ -0,0 +1,22 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readEnv = void 0; +/** + * Read an environment variable. + * + * Trims beginning and trailing whitespace. + * + * Will return undefined if the environment variable doesn't exist or cannot be accessed. + */ +const readEnv = (env) => { + if (typeof globalThis.process !== 'undefined') { + return globalThis.process.env?.[env]?.trim() ?? undefined; + } + if (typeof globalThis.Deno !== 'undefined') { + return globalThis.Deno.env?.get?.(env)?.trim(); + } + return undefined; +}; +exports.readEnv = readEnv; +//# sourceMappingURL=env.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js.map new file mode 100644 index 0000000000000000000000000000000000000000..ad559cac5a7d643304b728ca5340dd7302d39580 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.js.map @@ -0,0 +1 @@ +{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,OAAO,WAQlB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs new file mode 100644 index 0000000000000000000000000000000000000000..58ddfda1938916d13b3ec4c7672fdcfd34592f4d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +/** + * Read an environment variable. + * + * Trims beginning and trailing whitespace. + * + * Will return undefined if the environment variable doesn't exist or cannot be accessed. + */ +export const readEnv = (env) => { + if (typeof globalThis.process !== 'undefined') { + return globalThis.process.env?.[env]?.trim() ?? undefined; + } + if (typeof globalThis.Deno !== 'undefined') { + return globalThis.Deno.env?.get?.(env)?.trim(); + } + return undefined; +}; +//# sourceMappingURL=env.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ed884ae90fc201d242412a88aab177a7e2514633 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/env.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..5df12bccebbdb586af6375469bc05037c7e8dd91 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts @@ -0,0 +1,37 @@ +import { type OpenAI } from "../../client.mjs"; +import { RequestOptions } from "../request-options.mjs"; +type LogFn = (message: string, ...rest: unknown[]) => void; +export type Logger = { + error: LogFn; + warn: LogFn; + info: LogFn; + debug: LogFn; +}; +export type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug'; +export declare const parseLogLevel: (maybeLevel: string | undefined, sourceName: string, client: OpenAI) => LogLevel | undefined; +export declare function loggerFor(client: OpenAI): Logger; +export declare const formatRequestDetails: (details: { + options?: RequestOptions | undefined; + headers?: Headers | Record | undefined; + retryOfRequestLogID?: string | undefined; + retryOf?: string | undefined; + url?: string | undefined; + status?: number | undefined; + method?: string | undefined; + durationMs?: number | undefined; + message?: unknown; + body?: unknown; +}) => { + options?: RequestOptions | undefined; + headers?: Headers | Record | undefined; + retryOfRequestLogID?: string | undefined; + retryOf?: string | undefined; + url?: string | undefined; + status?: number | undefined; + method?: string | undefined; + durationMs?: number | undefined; + message?: unknown; + body?: unknown; +}; +export {}; +//# sourceMappingURL=log.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..e5986c22dde32bc00f3bc6a77bf91352768b1c77 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"log.d.mts","sourceRoot":"","sources":["../../src/internal/utils/log.ts"],"names":[],"mappings":"OAGO,EAAE,KAAK,MAAM,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;AAC3D,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAUnE,eAAO,MAAM,aAAa,GACxB,YAAY,MAAM,GAAG,SAAS,EAC9B,YAAY,MAAM,EAClB,QAAQ,MAAM,KACb,QAAQ,GAAG,SAab,CAAC;AAsBF,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAsBhD;AAED,eAAO,MAAM,oBAAoB,GAAI,SAAS;IAC5C,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACvD,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;cAVW,cAAc,GAAG,SAAS;cAC1B,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;0BAChC,MAAM,GAAG,SAAS;cAC9B,MAAM,GAAG,SAAS;UACtB,MAAM,GAAG,SAAS;aACf,MAAM,GAAG,SAAS;aAClB,MAAM,GAAG,SAAS;iBACd,MAAM,GAAG,SAAS;cACrB,OAAO;WACV,OAAO;CA6Bf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6da941ade874a548d070e6decf4107957351f3cc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts @@ -0,0 +1,37 @@ +import { type OpenAI } from "../../client.js"; +import { RequestOptions } from "../request-options.js"; +type LogFn = (message: string, ...rest: unknown[]) => void; +export type Logger = { + error: LogFn; + warn: LogFn; + info: LogFn; + debug: LogFn; +}; +export type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug'; +export declare const parseLogLevel: (maybeLevel: string | undefined, sourceName: string, client: OpenAI) => LogLevel | undefined; +export declare function loggerFor(client: OpenAI): Logger; +export declare const formatRequestDetails: (details: { + options?: RequestOptions | undefined; + headers?: Headers | Record | undefined; + retryOfRequestLogID?: string | undefined; + retryOf?: string | undefined; + url?: string | undefined; + status?: number | undefined; + method?: string | undefined; + durationMs?: number | undefined; + message?: unknown; + body?: unknown; +}) => { + options?: RequestOptions | undefined; + headers?: Headers | Record | undefined; + retryOfRequestLogID?: string | undefined; + retryOf?: string | undefined; + url?: string | undefined; + status?: number | undefined; + method?: string | undefined; + durationMs?: number | undefined; + message?: unknown; + body?: unknown; +}; +export {}; +//# sourceMappingURL=log.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..c8ce4fc46d958940d94de8d17c8d36af6f08d5aa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/internal/utils/log.ts"],"names":[],"mappings":"OAGO,EAAE,KAAK,MAAM,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;A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OAAO;WACV,OAAO;CA6Bf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js new file mode 100644 index 0000000000000000000000000000000000000000..b0d020c7319a0361ae79c0da7d577744b7e60991 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js @@ -0,0 +1,85 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.formatRequestDetails = exports.parseLogLevel = void 0; +exports.loggerFor = loggerFor; +const values_1 = require("./values.js"); +const levelNumbers = { + off: 0, + error: 200, + warn: 300, + info: 400, + debug: 500, +}; +const parseLogLevel = (maybeLevel, sourceName, client) => { + if (!maybeLevel) { + return undefined; + } + if ((0, values_1.hasOwn)(levelNumbers, maybeLevel)) { + return maybeLevel; + } + loggerFor(client).warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`); + return undefined; +}; +exports.parseLogLevel = parseLogLevel; +function noop() { } +function makeLogFn(fnLevel, logger, logLevel) { + if (!logger || levelNumbers[fnLevel] > levelNumbers[logLevel]) { + return noop; + } + else { + // Don't wrap logger functions, we want the stacktrace intact! + return logger[fnLevel].bind(logger); + } +} +const noopLogger = { + error: noop, + warn: noop, + info: noop, + debug: noop, +}; +let cachedLoggers = /* @__PURE__ */ new WeakMap(); +function loggerFor(client) { + const logger = client.logger; + const logLevel = client.logLevel ?? 'off'; + if (!logger) { + return noopLogger; + } + const cachedLogger = cachedLoggers.get(logger); + if (cachedLogger && cachedLogger[0] === logLevel) { + return cachedLogger[1]; + } + const levelLogger = { + error: makeLogFn('error', logger, logLevel), + warn: makeLogFn('warn', logger, logLevel), + info: makeLogFn('info', logger, logLevel), + debug: makeLogFn('debug', logger, logLevel), + }; + cachedLoggers.set(logger, [logLevel, levelLogger]); + return levelLogger; +} +const formatRequestDetails = (details) => { + if (details.options) { + details.options = { ...details.options }; + delete details.options['headers']; // redundant + leaks internals + } + if (details.headers) { + details.headers = Object.fromEntries((details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(([name, value]) => [ + name, + (name.toLowerCase() === 'authorization' || + name.toLowerCase() === 'cookie' || + name.toLowerCase() === 'set-cookie') ? + '***' + : value, + ])); + } + if ('retryOfRequestLogID' in details) { + if (details.retryOfRequestLogID) { + details.retryOf = details.retryOfRequestLogID; + } + delete details.retryOfRequestLogID; + } + return details; +}; +exports.formatRequestDetails = formatRequestDetails; +//# sourceMappingURL=log.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5b6bc610f87de13ccca601a564be6ca0a8893258 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.js.map @@ -0,0 +1 @@ +{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/internal/utils/log.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AA8DtF,8BAsBC;AAlFD,wCAAkC;AAalC,MAAM,YAAY,GAAG;IACnB,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;CACX,CAAC;AAEK,MAAM,aAAa,GAAG,CAC3B,UAA8B,EAC9B,UAAkB,EAClB,MAAc,EACQ,EAAE;IACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,IAAA,eAAM,EAAC,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC;QACrC,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CACpB,GAAG,UAAU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B,EAAE,CAAC;YAChC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;QAChD,CAAC;QACD,OAAO,OAAO,CAAC,mBAAmB,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAvCW,QAAA,oBAAoB,wBAuC/B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs new file mode 100644 index 0000000000000000000000000000000000000000..fa92925943da4ac2dee1f000e142a9986b5ef6e4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { hasOwn } from "./values.mjs"; +const levelNumbers = { + off: 0, + error: 200, + warn: 300, + info: 400, + debug: 500, +}; +export const parseLogLevel = (maybeLevel, sourceName, client) => { + if (!maybeLevel) { + return undefined; + } + if (hasOwn(levelNumbers, maybeLevel)) { + return maybeLevel; + } + loggerFor(client).warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`); + return undefined; +}; +function noop() { } +function makeLogFn(fnLevel, logger, logLevel) { + if (!logger || levelNumbers[fnLevel] > levelNumbers[logLevel]) { + return noop; + } + else { + // Don't wrap logger functions, we want the stacktrace intact! + return logger[fnLevel].bind(logger); + } +} +const noopLogger = { + error: noop, + warn: noop, + info: noop, + debug: noop, +}; +let cachedLoggers = /* @__PURE__ */ new WeakMap(); +export function loggerFor(client) { + const logger = client.logger; + const logLevel = client.logLevel ?? 'off'; + if (!logger) { + return noopLogger; + } + const cachedLogger = cachedLoggers.get(logger); + if (cachedLogger && cachedLogger[0] === logLevel) { + return cachedLogger[1]; + } + const levelLogger = { + error: makeLogFn('error', logger, logLevel), + warn: makeLogFn('warn', logger, logLevel), + info: makeLogFn('info', logger, logLevel), + debug: makeLogFn('debug', logger, logLevel), + }; + cachedLoggers.set(logger, [logLevel, levelLogger]); + return levelLogger; +} +export const formatRequestDetails = (details) => { + if (details.options) { + details.options = { ...details.options }; + delete details.options['headers']; // redundant + leaks internals + } + if (details.headers) { + details.headers = Object.fromEntries((details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(([name, value]) => [ + name, + (name.toLowerCase() === 'authorization' || + name.toLowerCase() === 'cookie' || + name.toLowerCase() === 'set-cookie') ? + '***' + : value, + ])); + } + if ('retryOfRequestLogID' in details) { + if (details.retryOfRequestLogID) { + details.retryOf = details.retryOfRequestLogID; + } + delete details.retryOfRequestLogID; + } + return details; +}; +//# sourceMappingURL=log.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..dcbc679a678ab182ead61f58e2e2ff534e109bb4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/log.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"log.mjs","sourceRoot":"","sources":["../../src/internal/utils/log.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;AAajB,MAAM,YAAY,GAAG;IACnB,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,UAA8B,EAC9B,UAAkB,EAClB,MAAc,EACQ,EAAE;IACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC;QACrC,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,SA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,CAAC;QACrC,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;YAChC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;QAChD,CAAC;QACD,OAAO,OAAO,CAAC,mBAAmB,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a2482e912233e5b18b8a0ba25e5d646926425b69 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts @@ -0,0 +1,15 @@ +/** + * Percent-encode everything that isn't safe to have in a path without encoding safe chars. + * + * Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3: + * > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" + * > pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + */ +export declare function encodeURIPath(str: string): string; +export declare const createPathTagFunction: (pathEncoder?: typeof encodeURIPath) => (statics: readonly string[], ...params: readonly unknown[]) => string; +/** + * URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced. + */ +export declare const path: (statics: readonly string[], ...params: readonly unknown[]) => string; +//# sourceMappingURL=path.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..af5f12e58c380f4a5f23bf66bc1e3fb370f9feb9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"path.d.mts","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,UAExC;AAID,eAAO,MAAM,qBAAqB,GAAI,kCAA2B,MACjD,SAAS,SAAS,MAAM,EAAE,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,KAAG,MAiEzE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,IAAI,YAtEQ,SAAS,MAAM,EAAE,aAAa,SAAS,OAAO,EAAE,KAAG,MAsEJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..66ddc52b5d63f26ed9752afb6d209a67e202d5a3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts @@ -0,0 +1,15 @@ +/** + * Percent-encode everything that isn't safe to have in a path without encoding safe chars. + * + * Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3: + * > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" + * > pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + */ +export declare function encodeURIPath(str: string): string; +export declare const createPathTagFunction: (pathEncoder?: typeof encodeURIPath) => (statics: readonly string[], ...params: readonly unknown[]) => string; +/** + * URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced. + */ +export declare const path: (statics: readonly string[], ...params: readonly unknown[]) => string; +//# sourceMappingURL=path.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6a41d75bf4a8865dc08bd7afea1ae260e3d17ed0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,UAExC;AAID,eAAO,MAAM,qBAAqB,GAAI,kCAA2B,MACjD,SAAS,SAAS,MAAM,EAAE,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,KAAG,MAiEzE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,IAAI,YAtEQ,SAAS,MAAM,EAAE,aAAa,SAAS,OAAO,EAAE,KAAG,MAsEJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js new file mode 100644 index 0000000000000000000000000000000000000000..3d19f0f800e55fd684d1d6bc5cb52e3df6199cc0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js @@ -0,0 +1,79 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.path = exports.createPathTagFunction = void 0; +exports.encodeURIPath = encodeURIPath; +const error_1 = require("../../core/error.js"); +/** + * Percent-encode everything that isn't safe to have in a path without encoding safe chars. + * + * Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3: + * > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" + * > pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + */ +function encodeURIPath(str) { + return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent); +} +const EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null)); +const createPathTagFunction = (pathEncoder = encodeURIPath) => function path(statics, ...params) { + // If there are no params, no processing is needed. + if (statics.length === 1) + return statics[0]; + let postPath = false; + const invalidSegments = []; + const path = statics.reduce((previousValue, currentValue, index) => { + if (/[?#]/.test(currentValue)) { + postPath = true; + } + const value = params[index]; + let encoded = (postPath ? encodeURIComponent : pathEncoder)('' + value); + if (index !== params.length && + (value == null || + (typeof value === 'object' && + // handle values from other realms + value.toString === + Object.getPrototypeOf(Object.getPrototypeOf(value.hasOwnProperty ?? EMPTY) ?? EMPTY) + ?.toString))) { + encoded = value + ''; + invalidSegments.push({ + start: previousValue.length + currentValue.length, + length: encoded.length, + error: `Value of type ${Object.prototype.toString + .call(value) + .slice(8, -1)} is not a valid path parameter`, + }); + } + return previousValue + currentValue + (index === params.length ? '' : encoded); + }, ''); + const pathOnly = path.split(/[?#]/, 1)[0]; + const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi; + let match; + // Find all invalid segments + while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) { + invalidSegments.push({ + start: match.index, + length: match[0].length, + error: `Value "${match[0]}" can\'t be safely passed as a path parameter`, + }); + } + invalidSegments.sort((a, b) => a.start - b.start); + if (invalidSegments.length > 0) { + let lastEnd = 0; + const underline = invalidSegments.reduce((acc, segment) => { + const spaces = ' '.repeat(segment.start - lastEnd); + const arrows = '^'.repeat(segment.length); + lastEnd = segment.start + segment.length; + return acc + spaces + arrows; + }, ''); + throw new error_1.OpenAIError(`Path parameters result in path with invalid segments:\n${invalidSegments + .map((e) => e.error) + .join('\n')}\n${path}\n${underline}`); + } + return path; +}; +exports.createPathTagFunction = createPathTagFunction; +/** + * URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced. + */ +exports.path = (0, exports.createPathTagFunction)(encodeURIPath); +//# sourceMappingURL=path.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js.map new file mode 100644 index 0000000000000000000000000000000000000000..ad50688d4ecdcd9543143962957fb3a8b3106b02 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.js.map @@ -0,0 +1 @@ +{"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":";;;AAUA,sCAEC;AAZD,+CAA+C;AAE/C;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,GAAW;IACvC,OAAO,GAAG,CAAC,OAAO,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,WAAW,GAAG,aAAa,EAAE,EAAE,CACnE,SAAS,IAAI,CAAC,OAA0B,EAAE,GAAG,MAA0B;IACrE,mDAAmD;IACnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC;IAE7C,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,eAAe,GAAG,EAAE,CAAC;IAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE;QACjE,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAC9B,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC;QACxE,IACE,KAAK,KAAK,MAAM,CAAC,MAAM;YACvB,CAAC,KAAK,IAAI,IAAI;gBACZ,CAAC,OAAO,KAAK,KAAK,QAAQ;oBACxB,kCAAkC;o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,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAElD,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACxD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC1C,OAAO,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;YACzC,OAAO,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;QAC/B,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,IAAI,mBAAW,CACnB,0DAA0D,eAAe;aACtE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;aACnB,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,SAAS,EAAE,CACvC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAlES,QAAA,qBAAqB,yBAkE9B;AAEJ;;GAEG;AACU,QAAA,IAAI,GAAmB,IAAA,6BAAqB,EAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d0f74622344b2ed0a5745ef568c755f07e904eff --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs @@ -0,0 +1,74 @@ +import { OpenAIError } from "../../core/error.mjs"; +/** + * Percent-encode everything that isn't safe to have in a path without encoding safe chars. + * + * Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3: + * > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" + * > pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + */ +export function encodeURIPath(str) { + return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent); +} +const EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null)); +export const createPathTagFunction = (pathEncoder = encodeURIPath) => function path(statics, ...params) { + // If there are no params, no processing is needed. + if (statics.length === 1) + return statics[0]; + let postPath = false; + const invalidSegments = []; + const path = statics.reduce((previousValue, currentValue, index) => { + if (/[?#]/.test(currentValue)) { + postPath = true; + } + const value = params[index]; + let encoded = (postPath ? encodeURIComponent : pathEncoder)('' + value); + if (index !== params.length && + (value == null || + (typeof value === 'object' && + // handle values from other realms + value.toString === + Object.getPrototypeOf(Object.getPrototypeOf(value.hasOwnProperty ?? EMPTY) ?? EMPTY) + ?.toString))) { + encoded = value + ''; + invalidSegments.push({ + start: previousValue.length + currentValue.length, + length: encoded.length, + error: `Value of type ${Object.prototype.toString + .call(value) + .slice(8, -1)} is not a valid path parameter`, + }); + } + return previousValue + currentValue + (index === params.length ? '' : encoded); + }, ''); + const pathOnly = path.split(/[?#]/, 1)[0]; + const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi; + let match; + // Find all invalid segments + while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) { + invalidSegments.push({ + start: match.index, + length: match[0].length, + error: `Value "${match[0]}" can\'t be safely passed as a path parameter`, + }); + } + invalidSegments.sort((a, b) => a.start - b.start); + if (invalidSegments.length > 0) { + let lastEnd = 0; + const underline = invalidSegments.reduce((acc, segment) => { + const spaces = ' '.repeat(segment.start - lastEnd); + const arrows = '^'.repeat(segment.length); + lastEnd = segment.start + segment.length; + return acc + spaces + arrows; + }, ''); + throw new OpenAIError(`Path parameters result in path with invalid segments:\n${invalidSegments + .map((e) => e.error) + .join('\n')}\n${path}\n${underline}`); + } + return path; +}; +/** + * URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced. + */ +export const path = /* @__PURE__ */ createPathTagFunction(encodeURIPath); +//# sourceMappingURL=path.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..f5a10453e5cc520c6d6e103c1f6f3963c1693b05 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/path.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"path.mjs","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE;AAEtB;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,GAAG,CAAC,OAAO,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAEjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,WAAW,GAAG,aAAa,EAAE,EAAE,CACnE,SAAS,IAAI,CAAC,OAA0B,EAAE,GAAG,MAA0B;IACrE,mDAAmD;IACnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC;IAE7C,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,eAAe,GAAG,EAAE,CAAC;IAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE;QAC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GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..80b349379906ba00a2cac60607d10f11a4a56e02 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts @@ -0,0 +1,2 @@ +export declare const sleep: (ms: number) => Promise; +//# sourceMappingURL=sleep.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c2eff131c1d7113774122aacccbf4698aa1dc6c2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"sleep.d.mts","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,kBAA4D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5471d72a685cfd0dd0bcbf0b1fbd6b726b460ab1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts @@ -0,0 +1,2 @@ +export declare const sleep: (ms: number) => Promise; +//# sourceMappingURL=sleep.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..80a85904367cb71bc3767bf8536fdc2dcfdef2a9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,kBAA4D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js new file mode 100644 index 0000000000000000000000000000000000000000..45d1e13c88cc9295254524e40089846a6e9597c1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js @@ -0,0 +1,7 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.sleep = void 0; +const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); +exports.sleep = sleep; +//# sourceMappingURL=sleep.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a6890374140ba63405ea17684dc21e50ed98b12d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAE/E,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAAhF,QAAA,KAAK,SAA2E"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs new file mode 100644 index 0000000000000000000000000000000000000000..784954ac4e075f7a720282ac5b371ab965255d14 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); +//# sourceMappingURL=sleep.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..abf0f4ae4234985dc95bad7a5d22f55d57e8284e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/sleep.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"sleep.mjs","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..80438fd395fa6907e3e682aebe4e20e26b3248c0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts @@ -0,0 +1,5 @@ +/** + * https://stackoverflow.com/a/2117523 + */ +export declare let uuid4: () => any; +//# sourceMappingURL=uuid.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6076b266b3730026e0dac24f333fd0d2d0dcf977 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"uuid.d.mts","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,IAAI,KAAK,WAWf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8939aa147508aab81aba6d46fd9e9dd8186263af --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts @@ -0,0 +1,5 @@ +/** + * https://stackoverflow.com/a/2117523 + */ +export declare let uuid4: () => any; +//# sourceMappingURL=uuid.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..32e5d3930980ccbb0e291a17f331dc2247491ba4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,IAAI,KAAK,WAWf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js new file mode 100644 index 0000000000000000000000000000000000000000..b3a8468efeaaaea80192025f091a38261b06a68e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js @@ -0,0 +1,19 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.uuid4 = void 0; +/** + * https://stackoverflow.com/a/2117523 + */ +let uuid4 = function () { + const { crypto } = globalThis; + if (crypto?.randomUUID) { + exports.uuid4 = crypto.randomUUID.bind(crypto); + return crypto.randomUUID(); + } + const u8 = new Uint8Array(1); + const randomByte = crypto ? () => crypto.getRandomValues(u8)[0] : () => (Math.random() * 0xff) & 0xff; + return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) => (+c ^ (randomByte() & (15 >> (+c / 4)))).toString(16)); +}; +exports.uuid4 = uuid4; +//# sourceMappingURL=uuid.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1342b7741707d6a657b89deb5a833d0a5101fa7a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;GAEG;AACI,IAAI,KAAK,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,GAAG,UAAiB,CAAC;IACrC,IAAI,MAAM,EAAE,UAAU,EAAE,CAAC;QACvB,aAAK,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IACD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACvG,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACtD,CAAC;AACJ,CAAC,CAAC;AAXS,QAAA,KAAK,SAWd"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4fe2cb2569e73445dde44bbf67db6b7d0783e149 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +/** + * https://stackoverflow.com/a/2117523 + */ +export let uuid4 = function () { + const { crypto } = globalThis; + if (crypto?.randomUUID) { + uuid4 = crypto.randomUUID.bind(crypto); + return crypto.randomUUID(); + } + const u8 = new Uint8Array(1); + const randomByte = crypto ? () => crypto.getRandomValues(u8)[0] : () => (Math.random() * 0xff) & 0xff; + return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) => (+c ^ (randomByte() & (15 >> (+c / 4)))).toString(16)); +}; +//# sourceMappingURL=uuid.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..695815f4cc4173c521ec3d982cb12825436ffd64 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/uuid.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"uuid.mjs","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;GAEG;AACH,MAAM,CAAC,IAAI,KAAK,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,GAAG,UAAiB,CAAC;IACrC,IAAI,MAAM,EAAE,UAAU,EAAE,CAAC;QACvB,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IACD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACvG,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACtD,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..682de3a35fc54a18958491c6be008cfc1ea7169e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts @@ -0,0 +1,18 @@ +export declare const isAbsoluteURL: (url: string) => boolean; +export declare let isArray: (val: unknown) => val is unknown[]; +export declare let isReadonlyArray: (val: unknown) => val is readonly unknown[]; +/** Returns an object if the given value isn't an object, otherwise returns as-is */ +export declare function maybeObj(x: unknown): object; +export declare function isEmptyObj(obj: Object | null | undefined): boolean; +export declare function hasOwn(obj: T, key: PropertyKey): key is keyof T; +export declare function isObj(obj: unknown): obj is Record; +export declare const ensurePresent: (value: T | null | undefined) => T; +export declare const validatePositiveInteger: (name: string, n: unknown) => number; +export declare const coerceInteger: (value: unknown) => number; +export declare const coerceFloat: (value: unknown) => number; +export declare const coerceBoolean: (value: unknown) => boolean; +export declare const maybeCoerceInteger: (value: unknown) => number | undefined; +export declare const maybeCoerceFloat: (value: unknown) => number | undefined; +export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined; +export declare const safeJSON: (text: string) => any; +//# sourceMappingURL=values.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..099d330cfe6750c482ae62fa7b2556f928bcad6b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"values.d.mts","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAE3C,CAAC;AAEF,eAAO,IAAI,OAAO,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,OAAO,EAA+C,CAAC;AACnG,eAAO,IAAI,eAAe,EAAc,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,SAAS,OAAO,EAAE,CAAC;AAEpF,oFAAoF;AACpF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAM3C;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIlE;AAGD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,MAAM,CAAC,CAE1F;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAElE;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,CAM9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,GAAG,OAAO,KAAG,MAQlE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAK9C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,MAK5C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAI9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,OAAO,GAAG,SAK7D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,QAMpC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2d51d002d811352aca53663a14ec65b48b671afe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts @@ -0,0 +1,18 @@ +export declare const isAbsoluteURL: (url: string) => boolean; +export declare let isArray: (val: unknown) => val is unknown[]; +export declare let isReadonlyArray: (val: unknown) => val is readonly unknown[]; +/** Returns an object if the given value isn't an object, otherwise returns as-is */ +export declare function maybeObj(x: unknown): object; +export declare function isEmptyObj(obj: Object | null | undefined): boolean; +export declare function hasOwn(obj: T, key: PropertyKey): key is keyof T; +export declare function isObj(obj: unknown): obj is Record; +export declare const ensurePresent: (value: T | null | undefined) => T; +export declare const validatePositiveInteger: (name: string, n: unknown) => number; +export declare const coerceInteger: (value: unknown) => number; +export declare const coerceFloat: (value: unknown) => number; +export declare const coerceBoolean: (value: unknown) => boolean; +export declare const maybeCoerceInteger: (value: unknown) => number | undefined; +export declare const maybeCoerceFloat: (value: unknown) => number | undefined; +export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined; +export declare const safeJSON: (text: string) => any; +//# sourceMappingURL=values.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..478d9e2a8210150382c163fa610b155c3905cd38 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAE3C,CAAC;AAEF,eAAO,IAAI,OAAO,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,OAAO,EAA+C,CAAC;AACnG,eAAO,IAAI,eAAe,EAAc,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,SAAS,OAAO,EAAE,CAAC;AAEpF,oFAAoF;AACpF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAM3C;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIlE;AAGD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,MAAM,CAAC,CAE1F;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAElE;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,CAM9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,GAAG,OAAO,KAAG,MAQlE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAK9C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,MAK5C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAI9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,OAAO,GAAG,SAK7D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,QAMpC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js new file mode 100644 index 0000000000000000000000000000000000000000..8ff704155a863e75ccd8e3d52609d2f86a913e6d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js @@ -0,0 +1,112 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.safeJSON = exports.maybeCoerceBoolean = exports.maybeCoerceFloat = exports.maybeCoerceInteger = exports.coerceBoolean = exports.coerceFloat = exports.coerceInteger = exports.validatePositiveInteger = exports.ensurePresent = exports.isReadonlyArray = exports.isArray = exports.isAbsoluteURL = void 0; +exports.maybeObj = maybeObj; +exports.isEmptyObj = isEmptyObj; +exports.hasOwn = hasOwn; +exports.isObj = isObj; +const error_1 = require("../../core/error.js"); +// https://url.spec.whatwg.org/#url-scheme-string +const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i; +const isAbsoluteURL = (url) => { + return startsWithSchemeRegexp.test(url); +}; +exports.isAbsoluteURL = isAbsoluteURL; +let isArray = (val) => ((exports.isArray = Array.isArray), (0, exports.isArray)(val)); +exports.isArray = isArray; +exports.isReadonlyArray = exports.isArray; +/** Returns an object if the given value isn't an object, otherwise returns as-is */ +function maybeObj(x) { + if (typeof x !== 'object') { + return {}; + } + return x ?? {}; +} +// https://stackoverflow.com/a/34491287 +function isEmptyObj(obj) { + if (!obj) + return true; + for (const _k in obj) + return false; + return true; +} +// https://eslint.org/docs/latest/rules/no-prototype-builtins +function hasOwn(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); +} +function isObj(obj) { + return obj != null && typeof obj === 'object' && !Array.isArray(obj); +} +const ensurePresent = (value) => { + if (value == null) { + throw new error_1.OpenAIError(`Expected a value to be given but received ${value} instead.`); + } + return value; +}; +exports.ensurePresent = ensurePresent; +const validatePositiveInteger = (name, n) => { + if (typeof n !== 'number' || !Number.isInteger(n)) { + throw new error_1.OpenAIError(`${name} must be an integer`); + } + if (n < 0) { + throw new error_1.OpenAIError(`${name} must be a positive integer`); + } + return n; +}; +exports.validatePositiveInteger = validatePositiveInteger; +const coerceInteger = (value) => { + if (typeof value === 'number') + return Math.round(value); + if (typeof value === 'string') + return parseInt(value, 10); + throw new error_1.OpenAIError(`Could not coerce ${value} (type: ${typeof value}) into a number`); +}; +exports.coerceInteger = coerceInteger; +const coerceFloat = (value) => { + if (typeof value === 'number') + return value; + if (typeof value === 'string') + return parseFloat(value); + throw new error_1.OpenAIError(`Could not coerce ${value} (type: ${typeof value}) into a number`); +}; +exports.coerceFloat = coerceFloat; +const coerceBoolean = (value) => { + if (typeof value === 'boolean') + return value; + if (typeof value === 'string') + return value === 'true'; + return Boolean(value); +}; +exports.coerceBoolean = coerceBoolean; +const maybeCoerceInteger = (value) => { + if (value === undefined) { + return undefined; + } + return (0, exports.coerceInteger)(value); +}; +exports.maybeCoerceInteger = maybeCoerceInteger; +const maybeCoerceFloat = (value) => { + if (value === undefined) { + return undefined; + } + return (0, exports.coerceFloat)(value); +}; +exports.maybeCoerceFloat = maybeCoerceFloat; +const maybeCoerceBoolean = (value) => { + if (value === undefined) { + return undefined; + } + return (0, exports.coerceBoolean)(value); +}; +exports.maybeCoerceBoolean = maybeCoerceBoolean; +const safeJSON = (text) => { + try { + return JSON.parse(text); + } + catch (err) { + return undefined; + } +}; +exports.safeJSON = safeJSON; +//# sourceMappingURL=values.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d50526b8d6adff028ae9e0c823b4d952ab86f1a0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.js.map @@ -0,0 +1 @@ +{"version":3,"file":"values.js","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAetF,4BAMC;AAGD,gCAIC;AAGD,wBAEC;AAED,sBAEC;AAnCD,+CAA+C;AAE/C,iDAAiD;AACjD,MAAM,sBAAsB,GAAG,sBA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O,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,KAAK,MAAM,CAAC;IACvD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;AACxB,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEK,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAsB,EAAE;IACvE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AALW,QAAA,kBAAkB,sBAK7B;AAEK,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAsB,EAAE;IACrE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAA,mBAAW,EAAC,KAAK,CAAC,CAAC;AAC5B,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B;AAEK,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAuB,EAAE;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AALW,QAAA,kBAAkB,sBAK7B;AAEK,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs new file mode 100644 index 0000000000000000000000000000000000000000..00cf3ebbd68e606a7081ca4786570f8640bd6c28 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs @@ -0,0 +1,94 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { OpenAIError } from "../../core/error.mjs"; +// https://url.spec.whatwg.org/#url-scheme-string +const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i; +export const isAbsoluteURL = (url) => { + return startsWithSchemeRegexp.test(url); +}; +export let isArray = (val) => ((isArray = Array.isArray), isArray(val)); +export let isReadonlyArray = isArray; +/** Returns an object if the given value isn't an object, otherwise returns as-is */ +export function maybeObj(x) { + if (typeof x !== 'object') { + return {}; + } + return x ?? {}; +} +// https://stackoverflow.com/a/34491287 +export function isEmptyObj(obj) { + if (!obj) + return true; + for (const _k in obj) + return false; + return true; +} +// https://eslint.org/docs/latest/rules/no-prototype-builtins +export function hasOwn(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); +} +export function isObj(obj) { + return obj != null && typeof obj === 'object' && !Array.isArray(obj); +} +export const ensurePresent = (value) => { + if (value == null) { + throw new OpenAIError(`Expected a value to be given but received ${value} instead.`); + } + return value; +}; +export const validatePositiveInteger = (name, n) => { + if (typeof n !== 'number' || !Number.isInteger(n)) { + throw new OpenAIError(`${name} must be an integer`); + } + if (n < 0) { + throw new OpenAIError(`${name} must be a positive integer`); + } + return n; +}; +export const coerceInteger = (value) => { + if (typeof value === 'number') + return Math.round(value); + if (typeof value === 'string') + return parseInt(value, 10); + throw new OpenAIError(`Could not coerce ${value} (type: ${typeof value}) into a number`); +}; +export const coerceFloat = (value) => { + if (typeof value === 'number') + return value; + if (typeof value === 'string') + return parseFloat(value); + throw new OpenAIError(`Could not coerce ${value} (type: ${typeof value}) into a number`); +}; +export const coerceBoolean = (value) => { + if (typeof value === 'boolean') + return value; + if (typeof value === 'string') + return value === 'true'; + return Boolean(value); +}; +export const maybeCoerceInteger = (value) => { + if (value === undefined) { + return undefined; + } + return coerceInteger(value); +}; +export const maybeCoerceFloat = (value) => { + if (value === undefined) { + return undefined; + } + return coerceFloat(value); +}; +export const maybeCoerceBoolean = (value) => { + if (value === undefined) { + return undefined; + } + return coerceBoolean(value); +}; +export const safeJSON = (text) => { + try { + return JSON.parse(text); + } + catch (err) { + return undefined; + } +}; +//# sourceMappingURL=values.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..e83421dfd3a5b39bcae9beaf18e0fecd13127f99 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/internal/utils/values.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,iDAAiD;AACjD,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAW,EAAW,EAAE;IACpD,OAAO,sBAAsB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAI,OAAO,GAAG,CAAC,GAAY,EAAoB,EAAE,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACnG,MAAM,CAAC,IAAI,eAAe,GAAG,OAAsD,CAAC;AAEpF,oFAAoF;AACpF,MAAM,UAAU,QAAQ,CAAC,CAAU;IACjC,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC;AAED,uCAAuC;AACvC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AkB,GAAG,CAAC,KAAc,EAAuB,EAAE;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..70ab686e28ec3c8f7866c904b1a1446854a2b837 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts @@ -0,0 +1,59 @@ +import type OpenAI from "../index.mjs"; +import type { RequestOptions } from "../internal/request-options.mjs"; +import type { ChatCompletion, ChatCompletionCreateParams, ChatCompletionMessage, ChatCompletionMessageFunctionToolCall, ChatCompletionMessageParam, ParsedChatCompletion } from "../resources/chat/completions.mjs"; +import type { CompletionUsage } from "../resources/completions.mjs"; +import type { ChatCompletionToolRunnerParams } from "./ChatCompletionRunner.mjs"; +import type { ChatCompletionStreamingToolRunnerParams } from "./ChatCompletionStreamingRunner.mjs"; +import { BaseEvents, EventStream } from "./EventStream.mjs"; +import { type BaseFunctionsArgs } from "./RunnableFunction.mjs"; +export interface RunnerOptions extends RequestOptions { + /** How many requests to make before canceling. Default 10. */ + maxChatCompletions?: number; +} +export declare class AbstractChatCompletionRunner extends EventStream { + #private; + protected _chatCompletions: ParsedChatCompletion[]; + messages: ChatCompletionMessageParam[]; + protected _addChatCompletion(this: AbstractChatCompletionRunner, chatCompletion: ParsedChatCompletion): ParsedChatCompletion; + protected _addMessage(this: AbstractChatCompletionRunner, message: ChatCompletionMessageParam, emit?: boolean): void; + /** + * @returns a promise that resolves with the final ChatCompletion, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletion. + */ + finalChatCompletion(): Promise>; + /** + * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalContent(): Promise; + /** + * @returns a promise that resolves with the the final assistant ChatCompletionMessage response, + * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalMessage(): Promise; + /** + * @returns a promise that resolves with the content of the final FunctionCall, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalFunctionToolCall(): Promise; + finalFunctionToolCallResult(): Promise; + totalUsage(): Promise; + allChatCompletions(): ChatCompletion[]; + protected _emitFinal(this: AbstractChatCompletionRunner): void; + protected _createChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise>; + protected _runChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise; + protected _runTools(client: OpenAI, params: ChatCompletionToolRunnerParams | ChatCompletionStreamingToolRunnerParams, options?: RunnerOptions): Promise; +} +export interface AbstractChatCompletionRunnerEvents extends BaseEvents { + functionToolCall: (functionCall: ChatCompletionMessageFunctionToolCall.Function) => void; + message: (message: ChatCompletionMessageParam) => void; + chatCompletion: (completion: ChatCompletion) => void; + finalContent: (contentSnapshot: string) => void; + finalMessage: (message: ChatCompletionMessageParam) => void; + finalChatCompletion: (completion: ChatCompletion) => void; + finalFunctionToolCall: (functionCall: ChatCompletionMessageFunctionToolCall.Function) => void; + functionToolCallResult: (content: string) => void; + finalFunctionToolCallResult: (content: string) => void; + totalUsage: (usage: CompletionUsage) => void; +} +//# sourceMappingURL=AbstractChatCompletionRunner.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..eacb7c1d30987d8f43ab2f7dfd122d5eadc6d23a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"AbstractChatCompletionRunner.d.mts","sourceRoot":"","sources":["../src/lib/AbstractChatCompletionRunner.ts"],"names":[],"mappings":"OACO,KAAK,MAAM;OACX,KAAK,EAAE,cAAc,EAAE;OAEvB,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,qBAAqB,EACrB,qCAAqC,EACrC,0BAA0B,EAE1B,oBAAoB,EACrB;OACM,KAAK,EAAE,eAAe,EAAE;OACxB,KAAK,EAAE,8BAA8B,EAAE;OACvC,KAAK,EAAE,uCAAuC,EAAE;OAEhD,EAAE,UAAU,EAAE,WAAW,EAAE;OAC3B,EAEL,KAAK,iBAAiB,EAGvB;AAGD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,4BAA4B,CACvC,UAAU,SAAS,kCAAkC,EACrD,OAAO,CACP,SAAQ,WAAW,CAAC,UAAU,CAAC;;IAC/B,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAM;IACjE,QAAQ,EAAE,0BAA0B,EAAE,CAAM;IAE5C,SAAS,CAAC,kBAAkB,CAC1B,IAAI,EAAE,4BAA4B,CAAC,kCAAkC,EAAE,OAAO,CAAC,EAC/E,cAAc,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAC5C,oBAAoB,CAAC,OAAO,CAAC;IAQhC,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,4BAA4B,CAAC,kCAAkC,EAAE,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AAc,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,YAAY,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAC5D,mBAAmB,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1D,qBAAqB,EAAE,CAAC,YAAY,EAAE,qCAAqC,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC9F,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,2BAA2B,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..09c0c1e568917c3fb597add428004cec45c112c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts @@ -0,0 +1,59 @@ +import type OpenAI from "../index.js"; +import type { RequestOptions } from "../internal/request-options.js"; +import type { ChatCompletion, ChatCompletionCreateParams, ChatCompletionMessage, ChatCompletionMessageFunctionToolCall, ChatCompletionMessageParam, ParsedChatCompletion } from "../resources/chat/completions.js"; +import type { CompletionUsage } from "../resources/completions.js"; +import type { ChatCompletionToolRunnerParams } from "./ChatCompletionRunner.js"; +import type { ChatCompletionStreamingToolRunnerParams } from "./ChatCompletionStreamingRunner.js"; +import { BaseEvents, EventStream } from "./EventStream.js"; +import { type BaseFunctionsArgs } from "./RunnableFunction.js"; +export interface RunnerOptions extends RequestOptions { + /** How many requests to make before canceling. Default 10. */ + maxChatCompletions?: number; +} +export declare class AbstractChatCompletionRunner extends EventStream { + #private; + protected _chatCompletions: ParsedChatCompletion[]; + messages: ChatCompletionMessageParam[]; + protected _addChatCompletion(this: AbstractChatCompletionRunner, chatCompletion: ParsedChatCompletion): ParsedChatCompletion; + protected _addMessage(this: AbstractChatCompletionRunner, message: ChatCompletionMessageParam, emit?: boolean): void; + /** + * @returns a promise that resolves with the final ChatCompletion, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletion. + */ + finalChatCompletion(): Promise>; + /** + * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalContent(): Promise; + /** + * @returns a promise that resolves with the the final assistant ChatCompletionMessage response, + * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalMessage(): Promise; + /** + * @returns a promise that resolves with the content of the final FunctionCall, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + finalFunctionToolCall(): Promise; + finalFunctionToolCallResult(): Promise; + totalUsage(): Promise; + allChatCompletions(): ChatCompletion[]; + protected _emitFinal(this: AbstractChatCompletionRunner): void; + protected _createChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise>; + protected _runChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise; + protected _runTools(client: OpenAI, params: ChatCompletionToolRunnerParams | ChatCompletionStreamingToolRunnerParams, options?: RunnerOptions): Promise; +} +export interface AbstractChatCompletionRunnerEvents extends BaseEvents { + functionToolCall: (functionCall: ChatCompletionMessageFunctionToolCall.Function) => void; + message: (message: ChatCompletionMessageParam) => void; + chatCompletion: (completion: ChatCompletion) => void; + finalContent: (contentSnapshot: string) => void; + finalMessage: (message: ChatCompletionMessageParam) => void; + finalChatCompletion: (completion: ChatCompletion) => void; + finalFunctionToolCall: (functionCall: ChatCompletionMessageFunctionToolCall.Function) => void; + functionToolCallResult: (content: string) => void; + finalFunctionToolCallResult: (content: string) => void; + totalUsage: (usage: CompletionUsage) => void; +} +//# sourceMappingURL=AbstractChatCompletionRunner.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6906555964510a5ad74df20cdf1cdd2e4afb2ae9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AbstractChatCompletionRunner.d.ts","sourceRoot":"","sources":["../src/lib/AbstractChatCompletionRunner.ts"],"names":[],"mappings":"OACO,KAAK,MAAM;OACX,KAAK,EAAE,cAAc,EAAE;OAEvB,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,qBAAqB,EACrB,qCAAqC,EACrC,0BAA0B,EAE1B,oBAAoB,EACrB;OACM,KAAK,EAAE,eAAe,EAAE;OACxB,KAAK,EAAE,8BAA8B,EAAE;OACvC,KAAK,EAAE,uCAAuC,EAAE;OAEhD,EAAE,UAAU,EAAE,WAAW,EAAE;OAC3B,EAEL,KAAK,iBAAiB,EAGvB;AAGD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,4BAA4B,CACvC,UAAU,SAAS,kCAAkC,EACrD,OAAO,CACP,SAAQ,WAAW,CAAC,UAAU,CAAC;;IAC/B,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAM;IACjE,QAAQ,EAAE,0BAA0B,EAAE,CAAM;IAE5C,SAAS,CAAC,kBAAkB,CAC1B,IAAI,EAAE,4BAA4B,CAAC,kCAAkC,EAAE,OAAO,CAAC,EAC/E,cAAc,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAC5C,oBAAoB,CAAC,OAAO,CAAC;IAQhC,SAAS,CAA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KAAK,IAAI,CAAC;IACvD,cAAc,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,YAAY,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAC5D,mBAAmB,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1D,qBAAqB,EAAE,CAAC,YAAY,EAAE,qCAAqC,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC9F,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,2BAA2B,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js new file mode 100644 index 0000000000000000000000000000000000000000..4f8bab4ae44a95a8bfc9f37845e56ce17c9e7db7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js @@ -0,0 +1,291 @@ +"use strict"; +var _AbstractChatCompletionRunner_instances, _AbstractChatCompletionRunner_getFinalContent, _AbstractChatCompletionRunner_getFinalMessage, _AbstractChatCompletionRunner_getFinalFunctionToolCall, _AbstractChatCompletionRunner_getFinalFunctionToolCallResult, _AbstractChatCompletionRunner_calculateTotalUsage, _AbstractChatCompletionRunner_validateParams, _AbstractChatCompletionRunner_stringifyFunctionCallResult; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AbstractChatCompletionRunner = void 0; +const tslib_1 = require("../internal/tslib.js"); +const error_1 = require("../error.js"); +const parser_1 = require("../lib/parser.js"); +const chatCompletionUtils_1 = require("./chatCompletionUtils.js"); +const EventStream_1 = require("./EventStream.js"); +const RunnableFunction_1 = require("./RunnableFunction.js"); +const DEFAULT_MAX_CHAT_COMPLETIONS = 10; +class AbstractChatCompletionRunner extends EventStream_1.EventStream { + constructor() { + super(...arguments); + _AbstractChatCompletionRunner_instances.add(this); + this._chatCompletions = []; + this.messages = []; + } + _addChatCompletion(chatCompletion) { + this._chatCompletions.push(chatCompletion); + this._emit('chatCompletion', chatCompletion); + const message = chatCompletion.choices[0]?.message; + if (message) + this._addMessage(message); + return chatCompletion; + } + _addMessage(message, emit = true) { + if (!('content' in message)) + message.content = null; + this.messages.push(message); + if (emit) { + this._emit('message', message); + if ((0, chatCompletionUtils_1.isToolMessage)(message) && message.content) { + // Note, this assumes that {role: 'tool', content: …} is always the result of a call of tool of type=function. + this._emit('functionToolCallResult', message.content); + } + else if ((0, chatCompletionUtils_1.isAssistantMessage)(message) && message.tool_calls) { + for (const tool_call of message.tool_calls) { + if (tool_call.type === 'function') { + this._emit('functionToolCall', tool_call.function); + } + } + } + } + } + /** + * @returns a promise that resolves with the final ChatCompletion, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletion. + */ + async finalChatCompletion() { + await this.done(); + const completion = this._chatCompletions[this._chatCompletions.length - 1]; + if (!completion) + throw new error_1.OpenAIError('stream ended without producing a ChatCompletion'); + return completion; + } + /** + * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalContent() { + await this.done(); + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); + } + /** + * @returns a promise that resolves with the the final assistant ChatCompletionMessage response, + * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalMessage() { + await this.done(); + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); + } + /** + * @returns a promise that resolves with the content of the final FunctionCall, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalFunctionToolCall() { + await this.done(); + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCall).call(this); + } + async finalFunctionToolCallResult() { + await this.done(); + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCallResult).call(this); + } + async totalUsage() { + await this.done(); + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this); + } + allChatCompletions() { + return [...this._chatCompletions]; + } + _emitFinal() { + const completion = this._chatCompletions[this._chatCompletions.length - 1]; + if (completion) + this._emit('finalChatCompletion', completion); + const finalMessage = tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); + if (finalMessage) + this._emit('finalMessage', finalMessage); + const finalContent = tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); + if (finalContent) + this._emit('finalContent', finalContent); + const finalFunctionCall = tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCall).call(this); + if (finalFunctionCall) + this._emit('finalFunctionToolCall', finalFunctionCall); + const finalFunctionCallResult = tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCallResult).call(this); + if (finalFunctionCallResult != null) + this._emit('finalFunctionToolCallResult', finalFunctionCallResult); + if (this._chatCompletions.some((c) => c.usage)) { + this._emit('totalUsage', tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this)); + } + } + async _createChatCompletion(client, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_validateParams).call(this, params); + const chatCompletion = await client.chat.completions.create({ ...params, stream: false }, { ...options, signal: this.controller.signal }); + this._connected(); + return this._addChatCompletion((0, parser_1.parseChatCompletion)(chatCompletion, params)); + } + async _runChatCompletion(client, params, options) { + for (const message of params.messages) { + this._addMessage(message, false); + } + return await this._createChatCompletion(client, params, options); + } + async _runTools(client, params, options) { + const role = 'tool'; + const { tool_choice = 'auto', stream, ...restParams } = params; + const singleFunctionToCall = typeof tool_choice !== 'string' && tool_choice.type === 'function' && tool_choice?.function?.name; + const { maxChatCompletions = DEFAULT_MAX_CHAT_COMPLETIONS } = options || {}; + // TODO(someday): clean this logic up + const inputTools = params.tools.map((tool) => { + if ((0, parser_1.isAutoParsableTool)(tool)) { + if (!tool.$callback) { + throw new error_1.OpenAIError('Tool given to `.runTools()` that does not have an associated function'); + } + return { + type: 'function', + function: { + function: tool.$callback, + name: tool.function.name, + description: tool.function.description || '', + parameters: tool.function.parameters, + parse: tool.$parseRaw, + strict: true, + }, + }; + } + return tool; + }); + const functionsByName = {}; + for (const f of inputTools) { + if (f.type === 'function') { + functionsByName[f.function.name || f.function.function.name] = f.function; + } + } + const tools = 'tools' in params ? + inputTools.map((t) => t.type === 'function' ? + { + type: 'function', + function: { + name: t.function.name || t.function.function.name, + parameters: t.function.parameters, + description: t.function.description, + strict: t.function.strict, + }, + } + : t) + : undefined; + for (const message of params.messages) { + this._addMessage(message, false); + } + for (let i = 0; i < maxChatCompletions; ++i) { + const chatCompletion = await this._createChatCompletion(client, { + ...restParams, + tool_choice, + tools, + messages: [...this.messages], + }, options); + const message = chatCompletion.choices[0]?.message; + if (!message) { + throw new error_1.OpenAIError(`missing message in ChatCompletion response`); + } + if (!message.tool_calls?.length) { + return; + } + for (const tool_call of message.tool_calls) { + if (tool_call.type !== 'function') + continue; + const tool_call_id = tool_call.id; + const { name, arguments: args } = tool_call.function; + const fn = functionsByName[name]; + if (!fn) { + const content = `Invalid tool_call: ${JSON.stringify(name)}. Available options are: ${Object.keys(functionsByName) + .map((name) => JSON.stringify(name)) + .join(', ')}. Please try again`; + this._addMessage({ role, tool_call_id, content }); + continue; + } + else if (singleFunctionToCall && singleFunctionToCall !== name) { + const content = `Invalid tool_call: ${JSON.stringify(name)}. ${JSON.stringify(singleFunctionToCall)} requested. Please try again`; + this._addMessage({ role, tool_call_id, content }); + continue; + } + let parsed; + try { + parsed = (0, RunnableFunction_1.isRunnableFunctionWithParse)(fn) ? await fn.parse(args) : args; + } + catch (error) { + const content = error instanceof Error ? error.message : String(error); + this._addMessage({ role, tool_call_id, content }); + continue; + } + // @ts-expect-error it can't rule out `never` type. + const rawContent = await fn.function(parsed, this); + const content = tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_stringifyFunctionCallResult).call(this, rawContent); + this._addMessage({ role, tool_call_id, content }); + if (singleFunctionToCall) { + return; + } + } + } + return; + } +} +exports.AbstractChatCompletionRunner = AbstractChatCompletionRunner; +_AbstractChatCompletionRunner_instances = new WeakSet(), _AbstractChatCompletionRunner_getFinalContent = function _AbstractChatCompletionRunner_getFinalContent() { + return tslib_1.__classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this).content ?? null; +}, _AbstractChatCompletionRunner_getFinalMessage = function _AbstractChatCompletionRunner_getFinalMessage() { + let i = this.messages.length; + while (i-- > 0) { + const message = this.messages[i]; + if ((0, chatCompletionUtils_1.isAssistantMessage)(message)) { + // TODO: support audio here + const ret = { + ...message, + content: message.content ?? null, + refusal: message.refusal ?? null, + }; + return ret; + } + } + throw new error_1.OpenAIError('stream ended without producing a ChatCompletionMessage with role=assistant'); +}, _AbstractChatCompletionRunner_getFinalFunctionToolCall = function _AbstractChatCompletionRunner_getFinalFunctionToolCall() { + for (let i = this.messages.length - 1; i >= 0; i--) { + const message = this.messages[i]; + if ((0, chatCompletionUtils_1.isAssistantMessage)(message) && message?.tool_calls?.length) { + return message.tool_calls.filter((x) => x.type === 'function').at(-1)?.function; + } + } + return; +}, _AbstractChatCompletionRunner_getFinalFunctionToolCallResult = function _AbstractChatCompletionRunner_getFinalFunctionToolCallResult() { + for (let i = this.messages.length - 1; i >= 0; i--) { + const message = this.messages[i]; + if ((0, chatCompletionUtils_1.isToolMessage)(message) && + message.content != null && + typeof message.content === 'string' && + this.messages.some((x) => x.role === 'assistant' && + x.tool_calls?.some((y) => y.type === 'function' && y.id === message.tool_call_id))) { + return message.content; + } + } + return; +}, _AbstractChatCompletionRunner_calculateTotalUsage = function _AbstractChatCompletionRunner_calculateTotalUsage() { + const total = { + completion_tokens: 0, + prompt_tokens: 0, + total_tokens: 0, + }; + for (const { usage } of this._chatCompletions) { + if (usage) { + total.completion_tokens += usage.completion_tokens; + total.prompt_tokens += usage.prompt_tokens; + total.total_tokens += usage.total_tokens; + } + } + return total; +}, _AbstractChatCompletionRunner_validateParams = function _AbstractChatCompletionRunner_validateParams(params) { + if (params.n != null && params.n > 1) { + throw new error_1.OpenAIError('ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.'); + } +}, _AbstractChatCompletionRunner_stringifyFunctionCallResult = function _AbstractChatCompletionRunner_stringifyFunctionCallResult(rawContent) { + return (typeof rawContent === 'string' ? rawContent + : rawContent === undefined ? 'undefined' + : JSON.stringify(rawContent)); +}; +//# sourceMappingURL=AbstractChatCompletionRunner.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a074ce86f221109490a35e47ab7a6e408dbcbc87 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AbstractChatCompletionRunner.js","sourceRoot":"","sources":["../src/lib/AbstractChatCompletionRunner.ts"],"names":[],"mappings":";;;;;AAAA,uCAAuC;AAGvC,6CAAwE;AAaxE,kEAA0E;AAC1E,kDAAwD;AACxD,4DAK4B;AAE5B,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAMxC,MAAa,4BAGX,SAAQ,yBAAuB;IAHjC;;;QAIY,qBAAgB,GAAoC,EAAE,CAAC;QACjE,aAAQ,GAAiC,EAAE,CAAC;IAkW9C,CAAC;IAhWW,kBAAkB,CAE1B,cAA6C;QAE7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QAC7C,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;QACnD,IAAI,OAAO;YAAE,IAAI,CAAC,WAAW,CAAC,OAAqC,CAAC,CAAC;QACrE,OAAO,cAAc,CAAC;IACxB,CAAC;IAES,WAAW,CAEnB,OAAmC,EACnC,IAAI,GAAG,IAAI;QAEX,IAAI,CAAC,CAAC,SAAS,IAAI,OAAO,CAAC;YAAE,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE5B,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YAC/B,IAAI,IAAA,mCAAa,EAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;gBAC9C,8GAA8G;gBAC9G,IAAI,CAAC,KAAK,CAAC,wBAAwB,EAAE,OAAO,CAAC,OAAiB,CAAC,CAAC;YAClE,CAAC;iBAAM,IAAI,IAAA,wCAAkB,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;QAC7B,iBAAiB,EAAE,CAAC;QACpB,aAAa,EAAE,CAAC;QAChB,YAAY,EAAE,CAAC;KAChB,CAAC;IACF,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,KAAK,EAAE,CAAC;YACV,KAAK,CAAC,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,CAAC;YACnD,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC;YAC3C,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,uGAgCe,MAAkC;IAChD,IAAI,MAAM,CAAC,CAAC,IAAI,IAAI,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,mBAAW,CACnB,8HAA8H,CAC/H,CAAC;IACJ,CAAC;AACH,CAAC,iIAmK4B,UAAmB;IAC9C,OAAO,CACL,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU;QAC3C,CAAC,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW;YACxC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAC7B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e310105ed17af4b9bdadf4b965dae47f1eefd5fc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.mjs @@ -0,0 +1,287 @@ +var _AbstractChatCompletionRunner_instances, _AbstractChatCompletionRunner_getFinalContent, _AbstractChatCompletionRunner_getFinalMessage, _AbstractChatCompletionRunner_getFinalFunctionToolCall, _AbstractChatCompletionRunner_getFinalFunctionToolCallResult, _AbstractChatCompletionRunner_calculateTotalUsage, _AbstractChatCompletionRunner_validateParams, _AbstractChatCompletionRunner_stringifyFunctionCallResult; +import { __classPrivateFieldGet } from "../internal/tslib.mjs"; +import { OpenAIError } from "../error.mjs"; +import { isAutoParsableTool, parseChatCompletion } from "../lib/parser.mjs"; +import { isAssistantMessage, isToolMessage } from "./chatCompletionUtils.mjs"; +import { EventStream } from "./EventStream.mjs"; +import { isRunnableFunctionWithParse, } from "./RunnableFunction.mjs"; +const DEFAULT_MAX_CHAT_COMPLETIONS = 10; +export class AbstractChatCompletionRunner extends EventStream { + constructor() { + super(...arguments); + _AbstractChatCompletionRunner_instances.add(this); + this._chatCompletions = []; + this.messages = []; + } + _addChatCompletion(chatCompletion) { + this._chatCompletions.push(chatCompletion); + this._emit('chatCompletion', chatCompletion); + const message = chatCompletion.choices[0]?.message; + if (message) + this._addMessage(message); + return chatCompletion; + } + _addMessage(message, emit = true) { + if (!('content' in message)) + message.content = null; + this.messages.push(message); + if (emit) { + this._emit('message', message); + if (isToolMessage(message) && message.content) { + // Note, this assumes that {role: 'tool', content: …} is always the result of a call of tool of type=function. + this._emit('functionToolCallResult', message.content); + } + else if (isAssistantMessage(message) && message.tool_calls) { + for (const tool_call of message.tool_calls) { + if (tool_call.type === 'function') { + this._emit('functionToolCall', tool_call.function); + } + } + } + } + } + /** + * @returns a promise that resolves with the final ChatCompletion, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletion. + */ + async finalChatCompletion() { + await this.done(); + const completion = this._chatCompletions[this._chatCompletions.length - 1]; + if (!completion) + throw new OpenAIError('stream ended without producing a ChatCompletion'); + return completion; + } + /** + * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalContent() { + await this.done(); + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); + } + /** + * @returns a promise that resolves with the the final assistant ChatCompletionMessage response, + * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalMessage() { + await this.done(); + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); + } + /** + * @returns a promise that resolves with the content of the final FunctionCall, or rejects + * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. + */ + async finalFunctionToolCall() { + await this.done(); + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCall).call(this); + } + async finalFunctionToolCallResult() { + await this.done(); + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCallResult).call(this); + } + async totalUsage() { + await this.done(); + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this); + } + allChatCompletions() { + return [...this._chatCompletions]; + } + _emitFinal() { + const completion = this._chatCompletions[this._chatCompletions.length - 1]; + if (completion) + this._emit('finalChatCompletion', completion); + const finalMessage = __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); + if (finalMessage) + this._emit('finalMessage', finalMessage); + const finalContent = __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); + if (finalContent) + this._emit('finalContent', finalContent); + const finalFunctionCall = __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCall).call(this); + if (finalFunctionCall) + this._emit('finalFunctionToolCall', finalFunctionCall); + const finalFunctionCallResult = __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionToolCallResult).call(this); + if (finalFunctionCallResult != null) + this._emit('finalFunctionToolCallResult', finalFunctionCallResult); + if (this._chatCompletions.some((c) => c.usage)) { + this._emit('totalUsage', __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this)); + } + } + async _createChatCompletion(client, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_validateParams).call(this, params); + const chatCompletion = await client.chat.completions.create({ ...params, stream: false }, { ...options, signal: this.controller.signal }); + this._connected(); + return this._addChatCompletion(parseChatCompletion(chatCompletion, params)); + } + async _runChatCompletion(client, params, options) { + for (const message of params.messages) { + this._addMessage(message, false); + } + return await this._createChatCompletion(client, params, options); + } + async _runTools(client, params, options) { + const role = 'tool'; + const { tool_choice = 'auto', stream, ...restParams } = params; + const singleFunctionToCall = typeof tool_choice !== 'string' && tool_choice.type === 'function' && tool_choice?.function?.name; + const { maxChatCompletions = DEFAULT_MAX_CHAT_COMPLETIONS } = options || {}; + // TODO(someday): clean this logic up + const inputTools = params.tools.map((tool) => { + if (isAutoParsableTool(tool)) { + if (!tool.$callback) { + throw new OpenAIError('Tool given to `.runTools()` that does not have an associated function'); + } + return { + type: 'function', + function: { + function: tool.$callback, + name: tool.function.name, + description: tool.function.description || '', + parameters: tool.function.parameters, + parse: tool.$parseRaw, + strict: true, + }, + }; + } + return tool; + }); + const functionsByName = {}; + for (const f of inputTools) { + if (f.type === 'function') { + functionsByName[f.function.name || f.function.function.name] = f.function; + } + } + const tools = 'tools' in params ? + inputTools.map((t) => t.type === 'function' ? + { + type: 'function', + function: { + name: t.function.name || t.function.function.name, + parameters: t.function.parameters, + description: t.function.description, + strict: t.function.strict, + }, + } + : t) + : undefined; + for (const message of params.messages) { + this._addMessage(message, false); + } + for (let i = 0; i < maxChatCompletions; ++i) { + const chatCompletion = await this._createChatCompletion(client, { + ...restParams, + tool_choice, + tools, + messages: [...this.messages], + }, options); + const message = chatCompletion.choices[0]?.message; + if (!message) { + throw new OpenAIError(`missing message in ChatCompletion response`); + } + if (!message.tool_calls?.length) { + return; + } + for (const tool_call of message.tool_calls) { + if (tool_call.type !== 'function') + continue; + const tool_call_id = tool_call.id; + const { name, arguments: args } = tool_call.function; + const fn = functionsByName[name]; + if (!fn) { + const content = `Invalid tool_call: ${JSON.stringify(name)}. Available options are: ${Object.keys(functionsByName) + .map((name) => JSON.stringify(name)) + .join(', ')}. Please try again`; + this._addMessage({ role, tool_call_id, content }); + continue; + } + else if (singleFunctionToCall && singleFunctionToCall !== name) { + const content = `Invalid tool_call: ${JSON.stringify(name)}. ${JSON.stringify(singleFunctionToCall)} requested. Please try again`; + this._addMessage({ role, tool_call_id, content }); + continue; + } + let parsed; + try { + parsed = isRunnableFunctionWithParse(fn) ? await fn.parse(args) : args; + } + catch (error) { + const content = error instanceof Error ? error.message : String(error); + this._addMessage({ role, tool_call_id, content }); + continue; + } + // @ts-expect-error it can't rule out `never` type. + const rawContent = await fn.function(parsed, this); + const content = __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_stringifyFunctionCallResult).call(this, rawContent); + this._addMessage({ role, tool_call_id, content }); + if (singleFunctionToCall) { + return; + } + } + } + return; + } +} +_AbstractChatCompletionRunner_instances = new WeakSet(), _AbstractChatCompletionRunner_getFinalContent = function _AbstractChatCompletionRunner_getFinalContent() { + return __classPrivateFieldGet(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this).content ?? null; +}, _AbstractChatCompletionRunner_getFinalMessage = function _AbstractChatCompletionRunner_getFinalMessage() { + let i = this.messages.length; + while (i-- > 0) { + const message = this.messages[i]; + if (isAssistantMessage(message)) { + // TODO: support audio here + const ret = { + ...message, + content: message.content ?? null, + refusal: message.refusal ?? null, + }; + return ret; + } + } + throw new OpenAIError('stream ended without producing a ChatCompletionMessage with role=assistant'); +}, _AbstractChatCompletionRunner_getFinalFunctionToolCall = function _AbstractChatCompletionRunner_getFinalFunctionToolCall() { + for (let i = this.messages.length - 1; i >= 0; i--) { + const message = this.messages[i]; + if (isAssistantMessage(message) && message?.tool_calls?.length) { + return message.tool_calls.filter((x) => x.type === 'function').at(-1)?.function; + } + } + return; +}, _AbstractChatCompletionRunner_getFinalFunctionToolCallResult = function _AbstractChatCompletionRunner_getFinalFunctionToolCallResult() { + for (let i = this.messages.length - 1; i >= 0; i--) { + const message = this.messages[i]; + if (isToolMessage(message) && + message.content != null && + typeof message.content === 'string' && + this.messages.some((x) => x.role === 'assistant' && + x.tool_calls?.some((y) => y.type === 'function' && y.id === message.tool_call_id))) { + return message.content; + } + } + return; +}, _AbstractChatCompletionRunner_calculateTotalUsage = function _AbstractChatCompletionRunner_calculateTotalUsage() { + const total = { + completion_tokens: 0, + prompt_tokens: 0, + total_tokens: 0, + }; + for (const { usage } of this._chatCompletions) { + if (usage) { + total.completion_tokens += usage.completion_tokens; + total.prompt_tokens += usage.prompt_tokens; + total.total_tokens += usage.total_tokens; + } + } + return total; +}, _AbstractChatCompletionRunner_validateParams = function _AbstractChatCompletionRunner_validateParams(params) { + if (params.n != null && params.n > 1) { + throw new OpenAIError('ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.'); + } +}, _AbstractChatCompletionRunner_stringifyFunctionCallResult = function _AbstractChatCompletionRunner_stringifyFunctionCallResult(rawContent) { + return (typeof rawContent === 'string' ? rawContent + : rawContent === undefined ? 'undefined' + : JSON.stringify(rawContent)); +}; +//# sourceMappingURL=AbstractChatCompletionRunner.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..66b8b23d85734f90456cbdee65ca87fe9a8888af --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AbstractCh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AC7B,iBAAiB,EAAE,CAAC;QACpB,aAAa,EAAE,CAAC;QAChB,YAAY,EAAE,CAAC;KAChB,CAAC;IACF,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,KAAK,EAAE,CAAC;YACV,KAAK,CAAC,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,CAAC;YACnD,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC;YAC3C,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,uGAgCe,MAAkC;IAChD,IAAI,MAAM,CAAC,CAAC,IAAI,IAAI,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,WAAW,CACnB,8HAA8H,CAC/H,CAAC;IACJ,CAAC;AACH,CAAC,iIAmK4B,UAAmB;IAC9C,OAAO,CACL,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU;QAC3C,CAAC,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW;YACxC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAC7B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..7b24134aade6fe3a77f20e031d654e05b779b4dc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts @@ -0,0 +1,60 @@ +import { Message, Text, ImageFile, TextDelta, MessageDelta } from "../resources/beta/threads/messages.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +import { Run, RunCreateParamsBase, Runs, RunSubmitToolOutputsParamsBase } from "../resources/beta/threads/runs/runs.mjs"; +import { type ReadableStream } from "../internal/shim-types.mjs"; +import { AssistantStreamEvent } from "../resources/beta/assistants.mjs"; +import { RunStep, RunStepDelta, ToolCall, ToolCallDelta } from "../resources/beta/threads/runs/steps.mjs"; +import { ThreadCreateAndRunParamsBase, Threads } from "../resources/beta/threads/threads.mjs"; +import { BaseEvents, EventStream } from "./EventStream.mjs"; +export interface AssistantStreamEvents extends BaseEvents { + run: (run: Run) => void; + messageCreated: (message: Message) => void; + messageDelta: (message: MessageDelta, snapshot: Message) => void; + messageDone: (message: Message) => void; + runStepCreated: (runStep: RunStep) => void; + runStepDelta: (delta: RunStepDelta, snapshot: Runs.RunStep) => void; + runStepDone: (runStep: Runs.RunStep, snapshot: Runs.RunStep) => void; + toolCallCreated: (toolCall: ToolCall) => void; + toolCallDelta: (delta: ToolCallDelta, snapshot: ToolCall) => void; + toolCallDone: (toolCall: ToolCall) => void; + textCreated: (content: Text) => void; + textDelta: (delta: TextDelta, snapshot: Text) => void; + textDone: (content: Text, snapshot: Message) => void; + imageFileDone: (content: ImageFile, snapshot: Message) => void; + event: (event: AssistantStreamEvent) => void; +} +export type ThreadCreateAndRunParamsBaseStream = Omit & { + stream?: true; +}; +export type RunCreateParamsBaseStream = Omit & { + stream?: true; +}; +export type RunSubmitToolOutputsParamsStream = Omit & { + stream?: true; +}; +export declare class AssistantStream extends EventStream implements AsyncIterable { + #private; + [Symbol.asyncIterator](): AsyncIterator; + static fromReadableStream(stream: ReadableStream): AssistantStream; + protected _fromReadableStream(readableStream: ReadableStream, options?: RequestOptions): Promise; + toReadableStream(): ReadableStream; + static createToolAssistantStream(runId: string, runs: Runs, params: RunSubmitToolOutputsParamsStream, options: RequestOptions | undefined): AssistantStream; + protected _createToolAssistantStream(run: Runs, runId: string, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): Promise; + static createThreadAssistantStream(params: ThreadCreateAndRunParamsBaseStream, thread: Threads, options?: RequestOptions): AssistantStream; + static createAssistantStream(threadId: string, runs: Runs, params: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + currentEvent(): AssistantStreamEvent | undefined; + currentRun(): Run | undefined; + currentMessageSnapshot(): Message | undefined; + currentRunStepSnapshot(): Runs.RunStep | undefined; + finalRunSteps(): Promise; + finalMessages(): Promise; + finalRun(): Promise; + protected _createThreadAssistantStream(thread: Threads, params: ThreadCreateAndRunParamsBase, options?: RequestOptions): Promise; + protected _createAssistantStream(run: Runs, threadId: string, params: RunCreateParamsBase, options?: RequestOptions): Promise; + static accumulateDelta(acc: Record, delta: Record): Record; + protected _addRun(run: Run): Run; + protected _threadAssistantStream(params: ThreadCreateAndRunParamsBase, thread: Threads, options?: RequestOptions): Promise; + protected _runAssistantStream(threadId: string, runs: Runs, params: RunCreateParamsBase, options?: RequestOptions): Promise; + protected _runToolAssistantStream(runId: string, runs: Runs, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): Promise; +} +//# sourceMappingURL=AssistantStream.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6be0ef64d7e5fdfe44d04fd5856b664d20f4d2d3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"AssistantStream.d.mts","sourceRoot":"","sources":["../src/lib/AssistantStream.ts"],"names":[],"mappings":"OAAO,EAGL,OAAO,EAEP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,YAAY,EAEb;OACM,EAAE,cAAc,EAAE;OAClB,EACL,GAAG,EACH,mBAAmB,EAEnB,IAAI,EACJ,8BAA8B,EAE/B;OACM,EAAE,KAAK,cAAc,EAAE;OAGvB,EACL,oBAAoB,EAIrB;OACM,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE;OA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EACb,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;CAGhB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0a3cb24addb3ace929b929be30cc6ff2e6f5050f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts @@ -0,0 +1,60 @@ +import { Message, Text, ImageFile, TextDelta, MessageDelta } from "../resources/beta/threads/messages.js"; +import { RequestOptions } from "../internal/request-options.js"; +import { Run, RunCreateParamsBase, Runs, RunSubmitToolOutputsParamsBase } from "../resources/beta/threads/runs/runs.js"; +import { type ReadableStream } from "../internal/shim-types.js"; +import { AssistantStreamEvent } from "../resources/beta/assistants.js"; +import { RunStep, RunStepDelta, ToolCall, ToolCallDelta } from "../resources/beta/threads/runs/steps.js"; +import { ThreadCreateAndRunParamsBase, Threads } from "../resources/beta/threads/threads.js"; +import { BaseEvents, EventStream } from "./EventStream.js"; +export interface AssistantStreamEvents extends BaseEvents { + run: (run: Run) => void; + messageCreated: (message: Message) => void; + messageDelta: (message: MessageDelta, snapshot: Message) => void; + messageDone: (message: Message) => void; + runStepCreated: (runStep: RunStep) => void; + runStepDelta: (delta: RunStepDelta, snapshot: Runs.RunStep) => void; + runStepDone: (runStep: Runs.RunStep, snapshot: Runs.RunStep) => void; + toolCallCreated: (toolCall: ToolCall) => void; + toolCallDelta: (delta: ToolCallDelta, snapshot: ToolCall) => void; + toolCallDone: (toolCall: ToolCall) => void; + textCreated: (content: Text) => void; + textDelta: (delta: TextDelta, snapshot: Text) => void; + textDone: (content: Text, snapshot: Message) => void; + imageFileDone: (content: ImageFile, snapshot: Message) => void; + event: (event: AssistantStreamEvent) => void; +} +export type ThreadCreateAndRunParamsBaseStream = Omit & { + stream?: true; +}; +export type RunCreateParamsBaseStream = Omit & { + stream?: true; +}; +export type RunSubmitToolOutputsParamsStream = Omit & { + stream?: true; +}; +export declare class AssistantStream extends EventStream implements AsyncIterable { + #private; + [Symbol.asyncIterator](): AsyncIterator; + static fromReadableStream(stream: ReadableStream): AssistantStream; + protected _fromReadableStream(readableStream: ReadableStream, options?: RequestOptions): Promise; + toReadableStream(): ReadableStream; + static createToolAssistantStream(runId: string, runs: Runs, params: RunSubmitToolOutputsParamsStream, options: RequestOptions | undefined): AssistantStream; + protected _createToolAssistantStream(run: Runs, runId: string, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): Promise; + static createThreadAssistantStream(params: ThreadCreateAndRunParamsBaseStream, thread: Threads, options?: RequestOptions): AssistantStream; + static createAssistantStream(threadId: string, runs: Runs, params: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + currentEvent(): AssistantStreamEvent | undefined; + currentRun(): Run | undefined; + currentMessageSnapshot(): Message | undefined; + currentRunStepSnapshot(): Runs.RunStep | undefined; + finalRunSteps(): Promise; + finalMessages(): Promise; + finalRun(): Promise; + protected _createThreadAssistantStream(thread: Threads, params: ThreadCreateAndRunParamsBase, options?: RequestOptions): Promise; + protected _createAssistantStream(run: Runs, threadId: string, params: RunCreateParamsBase, options?: RequestOptions): Promise; + static accumulateDelta(acc: Record, delta: Record): Record; + protected _addRun(run: Run): Run; + protected _threadAssistantStream(params: ThreadCreateAndRunParamsBase, thread: Threads, options?: RequestOptions): Promise; + protected _runAssistantStream(threadId: string, runs: Runs, params: RunCreateParamsBase, options?: RequestOptions): Promise; + protected _runToolAssistantStream(runId: string, runs: Runs, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): Promise; +} +//# sourceMappingURL=AssistantStream.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7cb5f3477b219b5303910428cf21e6742da5c134 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AssistantStream.d.ts","sourceRoot":"","sources":["../src/lib/AssistantStream.ts"],"names":[],"mappings":"OAAO,EAGL,OAAO,EAEP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,YAAY,EAEb;OACM,EAAE,cAAc,EAAE;OAClB,EACL,GAAG,EACH,mBAAmB,EAEnB,IAAI,EACJ,8BAA8B,EAE/B;OACM,EAAE,KAAK,cAAc,EAAE;OAGvB,EACL,oBAAoB,EAIrB;OACM,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE;OAClD,EAAE,4BAA4B,EAAE,OAAO,EAAE;OACzC,EAAE,UAAU,EAAE,WAAW,EAAE;AAGlC,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAGxB,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAExC,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IACpE,WAAW,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IAErE,eAAe,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,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AC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IA2FjG,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG;cAIhB,sBAAsB,CACpC,MAAM,EAAE,4BAA4B,EACpC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;cAIC,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;cAIC,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;CAGhB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js new file mode 100644 index 0000000000000000000000000000000000000000..6c1e0ccb9ecee69935c821619b22d9f200e085a0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js @@ -0,0 +1,553 @@ +"use strict"; +var _AssistantStream_instances, _a, _AssistantStream_events, _AssistantStream_runStepSnapshots, _AssistantStream_messageSnapshots, _AssistantStream_messageSnapshot, _AssistantStream_finalRun, _AssistantStream_currentContentIndex, _AssistantStream_currentContent, _AssistantStream_currentToolCallIndex, _AssistantStream_currentToolCall, _AssistantStream_currentEvent, _AssistantStream_currentRunSnapshot, _AssistantStream_currentRunStepSnapshot, _AssistantStream_addEvent, _AssistantStream_endRequest, _AssistantStream_handleMessage, _AssistantStream_handleRunStep, _AssistantStream_handleEvent, _AssistantStream_accumulateRunStep, _AssistantStream_accumulateMessage, _AssistantStream_accumulateContent, _AssistantStream_handleRun; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AssistantStream = void 0; +const tslib_1 = require("../internal/tslib.js"); +const streaming_1 = require("../streaming.js"); +const error_1 = require("../error.js"); +const EventStream_1 = require("./EventStream.js"); +const utils_1 = require("../internal/utils.js"); +class AssistantStream extends EventStream_1.EventStream { + constructor() { + super(...arguments); + _AssistantStream_instances.add(this); + //Track all events in a single list for reference + _AssistantStream_events.set(this, []); + //Used to accumulate deltas + //We are accumulating many types so the value here is not strict + _AssistantStream_runStepSnapshots.set(this, {}); + _AssistantStream_messageSnapshots.set(this, {}); + _AssistantStream_messageSnapshot.set(this, void 0); + _AssistantStream_finalRun.set(this, void 0); + _AssistantStream_currentContentIndex.set(this, void 0); + _AssistantStream_currentContent.set(this, void 0); + _AssistantStream_currentToolCallIndex.set(this, void 0); + _AssistantStream_currentToolCall.set(this, void 0); + //For current snapshot methods + _AssistantStream_currentEvent.set(this, void 0); + _AssistantStream_currentRunSnapshot.set(this, void 0); + _AssistantStream_currentRunStepSnapshot.set(this, void 0); + } + [(_AssistantStream_events = new WeakMap(), _AssistantStream_runStepSnapshots = new WeakMap(), _AssistantStream_messageSnapshots = new WeakMap(), _AssistantStream_messageSnapshot = new WeakMap(), _AssistantStream_finalRun = new WeakMap(), _AssistantStream_currentContentIndex = new WeakMap(), _AssistantStream_currentContent = new WeakMap(), _AssistantStream_currentToolCallIndex = new WeakMap(), _AssistantStream_currentToolCall = new WeakMap(), _AssistantStream_currentEvent = new WeakMap(), _AssistantStream_currentRunSnapshot = new WeakMap(), _AssistantStream_currentRunStepSnapshot = new WeakMap(), _AssistantStream_instances = new WeakSet(), Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + //Catch all for passing along all events + this.on('event', (event) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(event); + } + else { + pushQueue.push(event); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true })); + } + const chunk = pushQueue.shift(); + return { value: chunk, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + static fromReadableStream(stream) { + const runner = new _a(); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + async _fromReadableStream(readableStream, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + this._connected(); + const stream = streaming_1.Stream.fromReadableStream(readableStream, this.controller); + for await (const event of stream) { + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addRun(tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + toReadableStream() { + const stream = new streaming_1.Stream(this[Symbol.asyncIterator].bind(this), this.controller); + return stream.toReadableStream(); + } + static createToolAssistantStream(runId, runs, params, options) { + const runner = new _a(); + runner._run(() => runner._runToolAssistantStream(runId, runs, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + async _createToolAssistantStream(run, runId, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await run.submitToolOutputs(runId, body, { + ...options, + signal: this.controller.signal, + }); + this._connected(); + for await (const event of stream) { + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addRun(tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + static createThreadAssistantStream(params, thread, options) { + const runner = new _a(); + runner._run(() => runner._threadAssistantStream(params, thread, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + static createAssistantStream(threadId, runs, params, options) { + const runner = new _a(); + runner._run(() => runner._runAssistantStream(threadId, runs, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + currentEvent() { + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentEvent, "f"); + } + currentRun() { + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentRunSnapshot, "f"); + } + currentMessageSnapshot() { + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f"); + } + currentRunStepSnapshot() { + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentRunStepSnapshot, "f"); + } + async finalRunSteps() { + await this.done(); + return Object.values(tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")); + } + async finalMessages() { + await this.done(); + return Object.values(tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshots, "f")); + } + async finalRun() { + await this.done(); + if (!tslib_1.__classPrivateFieldGet(this, _AssistantStream_finalRun, "f")) + throw Error('Final run was not received.'); + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_finalRun, "f"); + } + async _createThreadAssistantStream(thread, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await thread.createAndRun(body, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const event of stream) { + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addRun(tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + async _createAssistantStream(run, threadId, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await run.create(threadId, body, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const event of stream) { + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addRun(tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + static accumulateDelta(acc, delta) { + for (const [key, deltaValue] of Object.entries(delta)) { + if (!acc.hasOwnProperty(key)) { + acc[key] = deltaValue; + continue; + } + let accValue = acc[key]; + if (accValue === null || accValue === undefined) { + acc[key] = deltaValue; + continue; + } + // We don't accumulate these special properties + if (key === 'index' || key === 'type') { + acc[key] = deltaValue; + continue; + } + // Type-specific accumulation logic + if (typeof accValue === 'string' && typeof deltaValue === 'string') { + accValue += deltaValue; + } + else if (typeof accValue === 'number' && typeof deltaValue === 'number') { + accValue += deltaValue; + } + else if ((0, utils_1.isObj)(accValue) && (0, utils_1.isObj)(deltaValue)) { + accValue = this.accumulateDelta(accValue, deltaValue); + } + else if (Array.isArray(accValue) && Array.isArray(deltaValue)) { + if (accValue.every((x) => typeof x === 'string' || typeof x === 'number')) { + accValue.push(...deltaValue); // Use spread syntax for efficient addition + continue; + } + for (const deltaEntry of deltaValue) { + if (!(0, utils_1.isObj)(deltaEntry)) { + throw new Error(`Expected array delta entry to be an object but got: ${deltaEntry}`); + } + const index = deltaEntry['index']; + if (index == null) { + console.error(deltaEntry); + throw new Error('Expected array delta entry to have an `index` property'); + } + if (typeof index !== 'number') { + throw new Error(`Expected array delta entry \`index\` property to be a number but got ${index}`); + } + const accEntry = accValue[index]; + if (accEntry == null) { + accValue.push(deltaEntry); + } + else { + accValue[index] = this.accumulateDelta(accEntry, deltaEntry); + } + } + continue; + } + else { + throw Error(`Unhandled record type: ${key}, deltaValue: ${deltaValue}, accValue: ${accValue}`); + } + acc[key] = accValue; + } + return acc; + } + _addRun(run) { + return run; + } + async _threadAssistantStream(params, thread, options) { + return await this._createThreadAssistantStream(thread, params, options); + } + async _runAssistantStream(threadId, runs, params, options) { + return await this._createAssistantStream(runs, threadId, params, options); + } + async _runToolAssistantStream(runId, runs, params, options) { + return await this._createToolAssistantStream(runs, runId, params, options); + } +} +exports.AssistantStream = AssistantStream; +_a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addEvent(event) { + if (this.ended) + return; + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentEvent, event, "f"); + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleEvent).call(this, event); + switch (event.event) { + case 'thread.created': + //No action on this event. + break; + case 'thread.run.created': + case 'thread.run.queued': + case 'thread.run.in_progress': + case 'thread.run.requires_action': + case 'thread.run.completed': + case 'thread.run.incomplete': + case 'thread.run.failed': + case 'thread.run.cancelling': + case 'thread.run.cancelled': + case 'thread.run.expired': + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleRun).call(this, event); + break; + case 'thread.run.step.created': + case 'thread.run.step.in_progress': + case 'thread.run.step.delta': + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleRunStep).call(this, event); + break; + case 'thread.message.created': + case 'thread.message.in_progress': + case 'thread.message.delta': + case 'thread.message.completed': + case 'thread.message.incomplete': + tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleMessage).call(this, event); + break; + case 'error': + //This is included for completeness, but errors are processed in the SSE event processing so this should not occur + throw new Error('Encountered an error event in event processing - errors should be processed earlier'); + default: + assertNever(event); + } +}, _AssistantStream_endRequest = function _AssistantStream_endRequest() { + if (this.ended) { + throw new error_1.OpenAIError(`stream has ended, this shouldn't happen`); + } + if (!tslib_1.__classPrivateFieldGet(this, _AssistantStream_finalRun, "f")) + throw Error('Final run has not been received'); + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_finalRun, "f"); +}, _AssistantStream_handleMessage = function _AssistantStream_handleMessage(event) { + const [accumulatedMessage, newContent] = tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateMessage).call(this, event, tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + tslib_1.__classPrivateFieldSet(this, _AssistantStream_messageSnapshot, accumulatedMessage, "f"); + tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshots, "f")[accumulatedMessage.id] = accumulatedMessage; + for (const content of newContent) { + const snapshotContent = accumulatedMessage.content[content.index]; + if (snapshotContent?.type == 'text') { + this._emit('textCreated', snapshotContent.text); + } + } + switch (event.event) { + case 'thread.message.created': + this._emit('messageCreated', event.data); + break; + case 'thread.message.in_progress': + break; + case 'thread.message.delta': + this._emit('messageDelta', event.data.delta, accumulatedMessage); + if (event.data.delta.content) { + for (const content of event.data.delta.content) { + //If it is text delta, emit a text delta event + if (content.type == 'text' && content.text) { + let textDelta = content.text; + let snapshot = accumulatedMessage.content[content.index]; + if (snapshot && snapshot.type == 'text') { + this._emit('textDelta', textDelta, snapshot.text); + } + else { + throw Error('The snapshot associated with this text delta is not text or missing'); + } + } + if (content.index != tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f")) { + //See if we have in progress content + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContent, "f")) { + switch (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContent, "f").type) { + case 'text': + this._emit('textDone', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContent, "f").text, tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + case 'image_file': + this._emit('imageFileDone', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContent, "f").image_file, tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + } + } + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentContentIndex, content.index, "f"); + } + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentContent, accumulatedMessage.content[content.index], "f"); + } + } + break; + case 'thread.message.completed': + case 'thread.message.incomplete': + //We emit the latest content we were working on on completion (including incomplete) + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f") !== undefined) { + const currentContent = event.data.content[tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f")]; + if (currentContent) { + switch (currentContent.type) { + case 'image_file': + this._emit('imageFileDone', currentContent.image_file, tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + case 'text': + this._emit('textDone', currentContent.text, tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + } + } + } + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")) { + this._emit('messageDone', event.data); + } + tslib_1.__classPrivateFieldSet(this, _AssistantStream_messageSnapshot, undefined, "f"); + } +}, _AssistantStream_handleRunStep = function _AssistantStream_handleRunStep(event) { + const accumulatedRunStep = tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateRunStep).call(this, event); + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, accumulatedRunStep, "f"); + switch (event.event) { + case 'thread.run.step.created': + this._emit('runStepCreated', event.data); + break; + case 'thread.run.step.delta': + const delta = event.data.delta; + if (delta.step_details && + delta.step_details.type == 'tool_calls' && + delta.step_details.tool_calls && + accumulatedRunStep.step_details.type == 'tool_calls') { + for (const toolCall of delta.step_details.tool_calls) { + if (toolCall.index == tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCallIndex, "f")) { + this._emit('toolCallDelta', toolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index]); + } + else { + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + } + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentToolCallIndex, toolCall.index, "f"); + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentToolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index], "f"); + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) + this._emit('toolCallCreated', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + } + } + } + this._emit('runStepDelta', event.data.delta, accumulatedRunStep); + break; + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, undefined, "f"); + const details = event.data.step_details; + if (details.type == 'tool_calls') { + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, "f"); + } + } + this._emit('runStepDone', event.data, accumulatedRunStep); + break; + case 'thread.run.step.in_progress': + break; + } +}, _AssistantStream_handleEvent = function _AssistantStream_handleEvent(event) { + tslib_1.__classPrivateFieldGet(this, _AssistantStream_events, "f").push(event); + this._emit('event', event); +}, _AssistantStream_accumulateRunStep = function _AssistantStream_accumulateRunStep(event) { + switch (event.event) { + case 'thread.run.step.created': + tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; + return event.data; + case 'thread.run.step.delta': + let snapshot = tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + if (!snapshot) { + throw Error('Received a RunStepDelta before creation of a snapshot'); + } + let data = event.data; + if (data.delta) { + const accumulated = _a.accumulateDelta(snapshot, data.delta); + tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = accumulated; + } + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + case 'thread.run.step.in_progress': + tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; + break; + } + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]) + return tslib_1.__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + throw new Error('No snapshot available'); +}, _AssistantStream_accumulateMessage = function _AssistantStream_accumulateMessage(event, snapshot) { + let newContent = []; + switch (event.event) { + case 'thread.message.created': + //On creation the snapshot is just the initial message + return [event.data, newContent]; + case 'thread.message.delta': + if (!snapshot) { + throw Error('Received a delta with no existing snapshot (there should be one from message creation)'); + } + let data = event.data; + //If this delta does not have content, nothing to process + if (data.delta.content) { + for (const contentElement of data.delta.content) { + if (contentElement.index in snapshot.content) { + let currentContent = snapshot.content[contentElement.index]; + snapshot.content[contentElement.index] = tslib_1.__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateContent).call(this, contentElement, currentContent); + } + else { + snapshot.content[contentElement.index] = contentElement; + // This is a new element + newContent.push(contentElement); + } + } + } + return [snapshot, newContent]; + case 'thread.message.in_progress': + case 'thread.message.completed': + case 'thread.message.incomplete': + //No changes on other thread events + if (snapshot) { + return [snapshot, newContent]; + } + else { + throw Error('Received thread message event with no existing snapshot'); + } + } + throw Error('Tried to accumulate a non-message event'); +}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent(contentElement, currentContent) { + return _a.accumulateDelta(currentContent, contentElement); +}, _AssistantStream_handleRun = function _AssistantStream_handleRun(event) { + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentRunSnapshot, event.data, "f"); + switch (event.event) { + case 'thread.run.created': + break; + case 'thread.run.queued': + break; + case 'thread.run.in_progress': + break; + case 'thread.run.requires_action': + case 'thread.run.cancelled': + case 'thread.run.failed': + case 'thread.run.completed': + case 'thread.run.expired': + case 'thread.run.incomplete': + tslib_1.__classPrivateFieldSet(this, _AssistantStream_finalRun, event.data, "f"); + if (tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', tslib_1.__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + tslib_1.__classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, "f"); + } + break; + case 'thread.run.cancelling': + break; + } +}; +function assertNever(_x) { } +//# sourceMappingURL=AssistantStream.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js.map new file mode 100644 index 0000000000000000000000000000000000000000..4edaafaff7cc550b4ab7435c010241015dd596f7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AssistantStream.js","sourceRoot":"","sources":["../src/lib/AssistantStream.ts"],"names":[],"mappings":";;;;;AAqBA,+CAAsC;AACtC,uCAA0D;AAS1D,kDAAwD;AACxD,gDAA0C;AAwC1C,MAAa,eACX,SAAQ,yBAAkC;IAD5C;;;QAIE,iDAAiD;QACjD,kCAAkC,EAAE,EAAC;QAErC,2BAA2B;QAC3B,gEAAgE;QAChE,4CAAoD,EAAE,EAAC;QACvD,4CAA+C,EAAE,EAAC;QAClD,mDAAsC;QACtC,4CAA2B;QAC3B,uDAAyC;QACzC,kDAA4C;QAC5C,wDAA0C;QAC1C,mDAAuC;QAEv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Q,KAAK,CAAC,KAAK,EAAE,CAAC;QACpB,KAAK,oBAAoB;YACvB,MAAM;QACR,KAAK,mBAAmB;YACtB,MAAM;QACR,KAAK,wBAAwB;YAC3B,MAAM;QACR,KAAK,4BAA4B,CAAC;QAClC,KAAK,sBAAsB,CAAC;QAC5B,KAAK,mBAAmB,CAAC;QACzB,KAAK,sBAAsB,CAAC;QAC5B,KAAK,oBAAoB,CAAC;QAC1B,KAAK,uBAAuB;YAC1B,+BAAA,IAAI,6BAAa,KAAK,CAAC,IAAI,MAAA,CAAC;YAC5B,IAAI,+BAAA,IAAI,wCAAiB,EAAE,CAAC;gBAC1B,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,+BAAA,IAAI,wCAAiB,CAAC,CAAC;gBAClD,+BAAA,IAAI,oCAAoB,SAAS,MAAA,CAAC;YACpC,CAAC;YACD,MAAM;QACR,KAAK,uBAAuB;YAC1B,MAAM;IACV,CAAC;AACH,CAAC;AAiCH,SAAS,WAAW,CAAC,EAAS,IAAG,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs new file mode 100644 index 0000000000000000000000000000000000000000..ad169403cf6c323cc83a753c82b12b213892ab9c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs @@ -0,0 +1,549 @@ +var _AssistantStream_instances, _a, _AssistantStream_events, _AssistantStream_runStepSnapshots, _AssistantStream_messageSnapshots, _AssistantStream_messageSnapshot, _AssistantStream_finalRun, _AssistantStream_currentContentIndex, _AssistantStream_currentContent, _AssistantStream_currentToolCallIndex, _AssistantStream_currentToolCall, _AssistantStream_currentEvent, _AssistantStream_currentRunSnapshot, _AssistantStream_currentRunStepSnapshot, _AssistantStream_addEvent, _AssistantStream_endRequest, _AssistantStream_handleMessage, _AssistantStream_handleRunStep, _AssistantStream_handleEvent, _AssistantStream_accumulateRunStep, _AssistantStream_accumulateMessage, _AssistantStream_accumulateContent, _AssistantStream_handleRun; +import { __classPrivateFieldGet, __classPrivateFieldSet } from "../internal/tslib.mjs"; +import { Stream } from "../streaming.mjs"; +import { APIUserAbortError, OpenAIError } from "../error.mjs"; +import { EventStream } from "./EventStream.mjs"; +import { isObj } from "../internal/utils.mjs"; +export class AssistantStream extends EventStream { + constructor() { + super(...arguments); + _AssistantStream_instances.add(this); + //Track all events in a single list for reference + _AssistantStream_events.set(this, []); + //Used to accumulate deltas + //We are accumulating many types so the value here is not strict + _AssistantStream_runStepSnapshots.set(this, {}); + _AssistantStream_messageSnapshots.set(this, {}); + _AssistantStream_messageSnapshot.set(this, void 0); + _AssistantStream_finalRun.set(this, void 0); + _AssistantStream_currentContentIndex.set(this, void 0); + _AssistantStream_currentContent.set(this, void 0); + _AssistantStream_currentToolCallIndex.set(this, void 0); + _AssistantStream_currentToolCall.set(this, void 0); + //For current snapshot methods + _AssistantStream_currentEvent.set(this, void 0); + _AssistantStream_currentRunSnapshot.set(this, void 0); + _AssistantStream_currentRunStepSnapshot.set(this, void 0); + } + [(_AssistantStream_events = new WeakMap(), _AssistantStream_runStepSnapshots = new WeakMap(), _AssistantStream_messageSnapshots = new WeakMap(), _AssistantStream_messageSnapshot = new WeakMap(), _AssistantStream_finalRun = new WeakMap(), _AssistantStream_currentContentIndex = new WeakMap(), _AssistantStream_currentContent = new WeakMap(), _AssistantStream_currentToolCallIndex = new WeakMap(), _AssistantStream_currentToolCall = new WeakMap(), _AssistantStream_currentEvent = new WeakMap(), _AssistantStream_currentRunSnapshot = new WeakMap(), _AssistantStream_currentRunStepSnapshot = new WeakMap(), _AssistantStream_instances = new WeakSet(), Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + //Catch all for passing along all events + this.on('event', (event) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(event); + } + else { + pushQueue.push(event); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true })); + } + const chunk = pushQueue.shift(); + return { value: chunk, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + static fromReadableStream(stream) { + const runner = new _a(); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + async _fromReadableStream(readableStream, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + this._connected(); + const stream = Stream.fromReadableStream(readableStream, this.controller); + for await (const event of stream) { + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + toReadableStream() { + const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller); + return stream.toReadableStream(); + } + static createToolAssistantStream(runId, runs, params, options) { + const runner = new _a(); + runner._run(() => runner._runToolAssistantStream(runId, runs, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + async _createToolAssistantStream(run, runId, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await run.submitToolOutputs(runId, body, { + ...options, + signal: this.controller.signal, + }); + this._connected(); + for await (const event of stream) { + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + static createThreadAssistantStream(params, thread, options) { + const runner = new _a(); + runner._run(() => runner._threadAssistantStream(params, thread, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + static createAssistantStream(threadId, runs, params, options) { + const runner = new _a(); + runner._run(() => runner._runAssistantStream(threadId, runs, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + currentEvent() { + return __classPrivateFieldGet(this, _AssistantStream_currentEvent, "f"); + } + currentRun() { + return __classPrivateFieldGet(this, _AssistantStream_currentRunSnapshot, "f"); + } + currentMessageSnapshot() { + return __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f"); + } + currentRunStepSnapshot() { + return __classPrivateFieldGet(this, _AssistantStream_currentRunStepSnapshot, "f"); + } + async finalRunSteps() { + await this.done(); + return Object.values(__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")); + } + async finalMessages() { + await this.done(); + return Object.values(__classPrivateFieldGet(this, _AssistantStream_messageSnapshots, "f")); + } + async finalRun() { + await this.done(); + if (!__classPrivateFieldGet(this, _AssistantStream_finalRun, "f")) + throw Error('Final run was not received.'); + return __classPrivateFieldGet(this, _AssistantStream_finalRun, "f"); + } + async _createThreadAssistantStream(thread, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await thread.createAndRun(body, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const event of stream) { + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + async _createAssistantStream(run, threadId, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + const body = { ...params, stream: true }; + const stream = await run.create(threadId, body, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const event of stream) { + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); + } + static accumulateDelta(acc, delta) { + for (const [key, deltaValue] of Object.entries(delta)) { + if (!acc.hasOwnProperty(key)) { + acc[key] = deltaValue; + continue; + } + let accValue = acc[key]; + if (accValue === null || accValue === undefined) { + acc[key] = deltaValue; + continue; + } + // We don't accumulate these special properties + if (key === 'index' || key === 'type') { + acc[key] = deltaValue; + continue; + } + // Type-specific accumulation logic + if (typeof accValue === 'string' && typeof deltaValue === 'string') { + accValue += deltaValue; + } + else if (typeof accValue === 'number' && typeof deltaValue === 'number') { + accValue += deltaValue; + } + else if (isObj(accValue) && isObj(deltaValue)) { + accValue = this.accumulateDelta(accValue, deltaValue); + } + else if (Array.isArray(accValue) && Array.isArray(deltaValue)) { + if (accValue.every((x) => typeof x === 'string' || typeof x === 'number')) { + accValue.push(...deltaValue); // Use spread syntax for efficient addition + continue; + } + for (const deltaEntry of deltaValue) { + if (!isObj(deltaEntry)) { + throw new Error(`Expected array delta entry to be an object but got: ${deltaEntry}`); + } + const index = deltaEntry['index']; + if (index == null) { + console.error(deltaEntry); + throw new Error('Expected array delta entry to have an `index` property'); + } + if (typeof index !== 'number') { + throw new Error(`Expected array delta entry \`index\` property to be a number but got ${index}`); + } + const accEntry = accValue[index]; + if (accEntry == null) { + accValue.push(deltaEntry); + } + else { + accValue[index] = this.accumulateDelta(accEntry, deltaEntry); + } + } + continue; + } + else { + throw Error(`Unhandled record type: ${key}, deltaValue: ${deltaValue}, accValue: ${accValue}`); + } + acc[key] = accValue; + } + return acc; + } + _addRun(run) { + return run; + } + async _threadAssistantStream(params, thread, options) { + return await this._createThreadAssistantStream(thread, params, options); + } + async _runAssistantStream(threadId, runs, params, options) { + return await this._createAssistantStream(runs, threadId, params, options); + } + async _runToolAssistantStream(runId, runs, params, options) { + return await this._createToolAssistantStream(runs, runId, params, options); + } +} +_a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addEvent(event) { + if (this.ended) + return; + __classPrivateFieldSet(this, _AssistantStream_currentEvent, event, "f"); + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleEvent).call(this, event); + switch (event.event) { + case 'thread.created': + //No action on this event. + break; + case 'thread.run.created': + case 'thread.run.queued': + case 'thread.run.in_progress': + case 'thread.run.requires_action': + case 'thread.run.completed': + case 'thread.run.incomplete': + case 'thread.run.failed': + case 'thread.run.cancelling': + case 'thread.run.cancelled': + case 'thread.run.expired': + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleRun).call(this, event); + break; + case 'thread.run.step.created': + case 'thread.run.step.in_progress': + case 'thread.run.step.delta': + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleRunStep).call(this, event); + break; + case 'thread.message.created': + case 'thread.message.in_progress': + case 'thread.message.delta': + case 'thread.message.completed': + case 'thread.message.incomplete': + __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_handleMessage).call(this, event); + break; + case 'error': + //This is included for completeness, but errors are processed in the SSE event processing so this should not occur + throw new Error('Encountered an error event in event processing - errors should be processed earlier'); + default: + assertNever(event); + } +}, _AssistantStream_endRequest = function _AssistantStream_endRequest() { + if (this.ended) { + throw new OpenAIError(`stream has ended, this shouldn't happen`); + } + if (!__classPrivateFieldGet(this, _AssistantStream_finalRun, "f")) + throw Error('Final run has not been received'); + return __classPrivateFieldGet(this, _AssistantStream_finalRun, "f"); +}, _AssistantStream_handleMessage = function _AssistantStream_handleMessage(event) { + const [accumulatedMessage, newContent] = __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateMessage).call(this, event, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + __classPrivateFieldSet(this, _AssistantStream_messageSnapshot, accumulatedMessage, "f"); + __classPrivateFieldGet(this, _AssistantStream_messageSnapshots, "f")[accumulatedMessage.id] = accumulatedMessage; + for (const content of newContent) { + const snapshotContent = accumulatedMessage.content[content.index]; + if (snapshotContent?.type == 'text') { + this._emit('textCreated', snapshotContent.text); + } + } + switch (event.event) { + case 'thread.message.created': + this._emit('messageCreated', event.data); + break; + case 'thread.message.in_progress': + break; + case 'thread.message.delta': + this._emit('messageDelta', event.data.delta, accumulatedMessage); + if (event.data.delta.content) { + for (const content of event.data.delta.content) { + //If it is text delta, emit a text delta event + if (content.type == 'text' && content.text) { + let textDelta = content.text; + let snapshot = accumulatedMessage.content[content.index]; + if (snapshot && snapshot.type == 'text') { + this._emit('textDelta', textDelta, snapshot.text); + } + else { + throw Error('The snapshot associated with this text delta is not text or missing'); + } + } + if (content.index != __classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f")) { + //See if we have in progress content + if (__classPrivateFieldGet(this, _AssistantStream_currentContent, "f")) { + switch (__classPrivateFieldGet(this, _AssistantStream_currentContent, "f").type) { + case 'text': + this._emit('textDone', __classPrivateFieldGet(this, _AssistantStream_currentContent, "f").text, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + case 'image_file': + this._emit('imageFileDone', __classPrivateFieldGet(this, _AssistantStream_currentContent, "f").image_file, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + } + } + __classPrivateFieldSet(this, _AssistantStream_currentContentIndex, content.index, "f"); + } + __classPrivateFieldSet(this, _AssistantStream_currentContent, accumulatedMessage.content[content.index], "f"); + } + } + break; + case 'thread.message.completed': + case 'thread.message.incomplete': + //We emit the latest content we were working on on completion (including incomplete) + if (__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f") !== undefined) { + const currentContent = event.data.content[__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, "f")]; + if (currentContent) { + switch (currentContent.type) { + case 'image_file': + this._emit('imageFileDone', currentContent.image_file, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + case 'text': + this._emit('textDone', currentContent.text, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")); + break; + } + } + } + if (__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, "f")) { + this._emit('messageDone', event.data); + } + __classPrivateFieldSet(this, _AssistantStream_messageSnapshot, undefined, "f"); + } +}, _AssistantStream_handleRunStep = function _AssistantStream_handleRunStep(event) { + const accumulatedRunStep = __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateRunStep).call(this, event); + __classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, accumulatedRunStep, "f"); + switch (event.event) { + case 'thread.run.step.created': + this._emit('runStepCreated', event.data); + break; + case 'thread.run.step.delta': + const delta = event.data.delta; + if (delta.step_details && + delta.step_details.type == 'tool_calls' && + delta.step_details.tool_calls && + accumulatedRunStep.step_details.type == 'tool_calls') { + for (const toolCall of delta.step_details.tool_calls) { + if (toolCall.index == __classPrivateFieldGet(this, _AssistantStream_currentToolCallIndex, "f")) { + this._emit('toolCallDelta', toolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index]); + } + else { + if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + } + __classPrivateFieldSet(this, _AssistantStream_currentToolCallIndex, toolCall.index, "f"); + __classPrivateFieldSet(this, _AssistantStream_currentToolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index], "f"); + if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) + this._emit('toolCallCreated', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + } + } + } + this._emit('runStepDelta', event.data.delta, accumulatedRunStep); + break; + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + __classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, undefined, "f"); + const details = event.data.step_details; + if (details.type == 'tool_calls') { + if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + __classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, "f"); + } + } + this._emit('runStepDone', event.data, accumulatedRunStep); + break; + case 'thread.run.step.in_progress': + break; + } +}, _AssistantStream_handleEvent = function _AssistantStream_handleEvent(event) { + __classPrivateFieldGet(this, _AssistantStream_events, "f").push(event); + this._emit('event', event); +}, _AssistantStream_accumulateRunStep = function _AssistantStream_accumulateRunStep(event) { + switch (event.event) { + case 'thread.run.step.created': + __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; + return event.data; + case 'thread.run.step.delta': + let snapshot = __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + if (!snapshot) { + throw Error('Received a RunStepDelta before creation of a snapshot'); + } + let data = event.data; + if (data.delta) { + const accumulated = _a.accumulateDelta(snapshot, data.delta); + __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = accumulated; + } + return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + case 'thread.run.step.completed': + case 'thread.run.step.failed': + case 'thread.run.step.cancelled': + case 'thread.run.step.expired': + case 'thread.run.step.in_progress': + __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; + break; + } + if (__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]) + return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; + throw new Error('No snapshot available'); +}, _AssistantStream_accumulateMessage = function _AssistantStream_accumulateMessage(event, snapshot) { + let newContent = []; + switch (event.event) { + case 'thread.message.created': + //On creation the snapshot is just the initial message + return [event.data, newContent]; + case 'thread.message.delta': + if (!snapshot) { + throw Error('Received a delta with no existing snapshot (there should be one from message creation)'); + } + let data = event.data; + //If this delta does not have content, nothing to process + if (data.delta.content) { + for (const contentElement of data.delta.content) { + if (contentElement.index in snapshot.content) { + let currentContent = snapshot.content[contentElement.index]; + snapshot.content[contentElement.index] = __classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_accumulateContent).call(this, contentElement, currentContent); + } + else { + snapshot.content[contentElement.index] = contentElement; + // This is a new element + newContent.push(contentElement); + } + } + } + return [snapshot, newContent]; + case 'thread.message.in_progress': + case 'thread.message.completed': + case 'thread.message.incomplete': + //No changes on other thread events + if (snapshot) { + return [snapshot, newContent]; + } + else { + throw Error('Received thread message event with no existing snapshot'); + } + } + throw Error('Tried to accumulate a non-message event'); +}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent(contentElement, currentContent) { + return _a.accumulateDelta(currentContent, contentElement); +}, _AssistantStream_handleRun = function _AssistantStream_handleRun(event) { + __classPrivateFieldSet(this, _AssistantStream_currentRunSnapshot, event.data, "f"); + switch (event.event) { + case 'thread.run.created': + break; + case 'thread.run.queued': + break; + case 'thread.run.in_progress': + break; + case 'thread.run.requires_action': + case 'thread.run.cancelled': + case 'thread.run.failed': + case 'thread.run.completed': + case 'thread.run.expired': + case 'thread.run.incomplete': + __classPrivateFieldSet(this, _AssistantStream_finalRun, event.data, "f"); + if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")) { + this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, "f")); + __classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, "f"); + } + break; + case 'thread.run.cancelling': + break; + } +}; +function assertNever(_x) { } +//# sourceMappingURL=AssistantStream.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..f37318f4cee0033f83cb00d02bfddae382641f3b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/AssistantStream.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"AssistantStream.mjs","sourceRoot":"","sources":["../src/lib/AssistantStream.ts"],"names":[],"mappings":";;OAqBO,EAAE,MAAM,EAAE;OACV,EAAE,iBAAiB,EAAE,WAAW,EAAE;OASlC,EAAc,WAAW,EAAE;OAC3B,EAAE,KAAK,EAAE;AAwChB,MAAM,OAAO,eACX,SAAQ,WAAkC;IAD5C;;;QAIE,iDAAiD;QACjD,kCAAkC,EAAE,EAAC;QAErC,2BAA2B;QAC3B,gEAAgE;QAChE,4CAAoD,EAAE,EAAC;QACvD,4CAA+C,EAAE,EAAC;QAClD,mDAAsC;QACtC,4CAA2B;QAC3B,uDAAyC;QACzC,kDAA4C;QAC5C,wDAA0C;QAC1C,mDAAuC;QAEvC,8BAA8B;QAC9B,gDAAgD;QAChD,sDAAqC;QACrC,0DAAkD;IA0qBpD,CAAC;IAxqBC,uoBAAC,MAAM,CAAC,aAAa,EAAC;QACpB,MAAM,SAAS,GAA2B,EAAE,CAAC;QAC7C,MAAM,SAAS,GAGT,EAAE,CAAC;QACT,IAAI,IAAI,GAAG,KAAK,CAAC;QAEjB,wCAAwC;QACxC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACzB,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;YACjC,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACxB,CAAC;QACH,C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AM;IACV,CAAC;AACH,CAAC;AAiCH,SAAS,WAAW,CAAC,EAAS,IAAG,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..5e395aac199bb3eaf1cf49e623dfd8d536221135 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts @@ -0,0 +1,16 @@ +import { type ChatCompletionMessageParam, type ChatCompletionCreateParamsNonStreaming } from "../resources/chat/completions.mjs"; +import { type BaseFunctionsArgs, RunnableTools } from "./RunnableFunction.mjs"; +import { AbstractChatCompletionRunner, AbstractChatCompletionRunnerEvents, RunnerOptions } from "./AbstractChatCompletionRunner.mjs"; +import OpenAI from "../index.mjs"; +import { AutoParseableTool } from "../lib/parser.mjs"; +export interface ChatCompletionRunnerEvents extends AbstractChatCompletionRunnerEvents { + content: (content: string) => void; +} +export type ChatCompletionToolRunnerParams = Omit & { + tools: RunnableTools | AutoParseableTool[]; +}; +export declare class ChatCompletionRunner extends AbstractChatCompletionRunner { + static runTools(client: OpenAI, params: ChatCompletionToolRunnerParams, options?: RunnerOptions): ChatCompletionRunner; + _addMessage(this: ChatCompletionRunner, message: ChatCompletionMessageParam, emit?: boolean): void; +} +//# sourceMappingURL=ChatCompletionRunner.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..80d7e5d45babb56966a546576aba724607f100e4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionRunner.d.mts","sourceRoot":"","sources":["../src/lib/ChatCompletionRunner.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC5C;OACM,EAAE,KAAK,iBAAiB,EAAE,aAAa,EAAE;OACzC,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,aAAa,EACd;OAEM,MAAM;OACN,EAAE,iBAAiB,EAAE;AAE5B,MAAM,WAAW,0BAA2B,SAAQ,kCAAkC;IACpF,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,8BAA8B,CAAC,aAAa,SAAS,iBAAiB,IAAI,IAAI,CACxF,sCAAsC,EACtC,OAAO,CACR,GAAG;IACF,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;CACtE,CAAC;AAEF,qBAAa,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAE,SAAQ,4BAA4B,CACpF,0BAA0B,EAC1B,OAAO,CACR;IACC,MAAM,CAAC,QAAQ,CAAC,OAAO,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,8BAA8B,CAAC,GAAG,EAAE,CAAC,EAC7C,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,OAAO,CAAC;IAUvB,WAAW,CAClB,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACnC,OAAO,EAAE,0BAA0B,EACnC,IAAI,GAAE,OAAc;CAOvB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ea90a5769b56c415cb9edfcd5f84d36fe803537b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts @@ -0,0 +1,16 @@ +import { type ChatCompletionMessageParam, type ChatCompletionCreateParamsNonStreaming } from "../resources/chat/completions.js"; +import { type BaseFunctionsArgs, RunnableTools } from "./RunnableFunction.js"; +import { AbstractChatCompletionRunner, AbstractChatCompletionRunnerEvents, RunnerOptions } from "./AbstractChatCompletionRunner.js"; +import OpenAI from "../index.js"; +import { AutoParseableTool } from "../lib/parser.js"; +export interface ChatCompletionRunnerEvents extends AbstractChatCompletionRunnerEvents { + content: (content: string) => void; +} +export type ChatCompletionToolRunnerParams = Omit & { + tools: RunnableTools | AutoParseableTool[]; +}; +export declare class ChatCompletionRunner extends AbstractChatCompletionRunner { + static runTools(client: OpenAI, params: ChatCompletionToolRunnerParams, options?: RunnerOptions): ChatCompletionRunner; + _addMessage(this: ChatCompletionRunner, message: ChatCompletionMessageParam, emit?: boolean): void; +} +//# sourceMappingURL=ChatCompletionRunner.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..9cda00dfbdc244cd10479be7c7a4b1740e777bd4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionRunner.d.ts","sourceRoot":"","sources":["../src/lib/ChatCompletionRunner.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC5C;OACM,EAAE,KAAK,iBAAiB,EAAE,aAAa,EAAE;OACzC,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,aAAa,EACd;OAEM,MAAM;OACN,EAAE,iBAAiB,EAAE;AAE5B,MAAM,WAAW,0BAA2B,SAAQ,kCAAkC;IACpF,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,8BAA8B,CAAC,aAAa,SAAS,iBAAiB,IAAI,IAAI,CACxF,sCAAsC,EACtC,OAAO,CACR,GAAG;IACF,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;CACtE,CAAC;AAEF,qBAAa,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAE,SAAQ,4BAA4B,CACpF,0BAA0B,EAC1B,OAAO,CACR;IACC,MAAM,CAAC,QAAQ,CAAC,OAAO,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,8BAA8B,CAAC,GAAG,EAAE,CAAC,EAC7C,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,OAAO,CAAC;IAUvB,WAAW,CAClB,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACnC,OAAO,EAAE,0BAA0B,EACnC,IAAI,GAAE,OAAc;CAOvB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js new file mode 100644 index 0000000000000000000000000000000000000000..f0eb2f7ddf8b351c06090f067ec0701bd4dd3268 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatCompletionRunner = void 0; +const AbstractChatCompletionRunner_1 = require("./AbstractChatCompletionRunner.js"); +const chatCompletionUtils_1 = require("./chatCompletionUtils.js"); +class ChatCompletionRunner extends AbstractChatCompletionRunner_1.AbstractChatCompletionRunner { + static runTools(client, params, options) { + const runner = new ChatCompletionRunner(); + const opts = { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'runTools' }, + }; + runner._run(() => runner._runTools(client, params, opts)); + return runner; + } + _addMessage(message, emit = true) { + super._addMessage(message, emit); + if ((0, chatCompletionUtils_1.isAssistantMessage)(message) && message.content) { + this._emit('content', message.content); + } + } +} +exports.ChatCompletionRunner = ChatCompletionRunner; +//# sourceMappingURL=ChatCompletionRunner.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js.map new file mode 100644 index 0000000000000000000000000000000000000000..62d18f0256de045843d6bd053800bf32f67ddc24 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionRunner.js","sourceRoot":"","sources":["../src/lib/ChatCompletionRunner.ts"],"names":[],"mappings":";;;AAKA,oFAIwC;AACxC,kEAA2D;AAe3D,MAAa,oBAAqC,SAAQ,2DAGzD;IACC,MAAM,CAAC,QAAQ,CACb,MAAc,EACd,MAA6C,EAC7C,OAAuB;QAEvB,MAAM,MAAM,GAAG,IAAI,oBAAoB,EAAW,CAAC;QACnD,MAAM,IAAI,GAAG;YACX,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE;SAC1E,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC;IAEQ,WAAW,CAElB,OAAmC,EACnC,OAAgB,IAAI;QAEpB,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,IAAA,wCAAkB,EAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACnD,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,OAAiB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AA5BD,oDA4BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs new file mode 100644 index 0000000000000000000000000000000000000000..029eec57487c4272cc8af8cc2c9dc4f7606b8686 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs @@ -0,0 +1,20 @@ +import { AbstractChatCompletionRunner, } from "./AbstractChatCompletionRunner.mjs"; +import { isAssistantMessage } from "./chatCompletionUtils.mjs"; +export class ChatCompletionRunner extends AbstractChatCompletionRunner { + static runTools(client, params, options) { + const runner = new ChatCompletionRunner(); + const opts = { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'runTools' }, + }; + runner._run(() => runner._runTools(client, params, opts)); + return runner; + } + _addMessage(message, emit = true) { + super._addMessage(message, emit); + if (isAssistantMessage(message) && message.content) { + this._emit('content', message.content); + } + } +} +//# sourceMappingURL=ChatCompletionRunner.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..a8adc496b30ef79b94a717113ed54058daba9125 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionRunner.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionRunner.mjs","sourceRoot":"","sources":["../src/lib/ChatCompletionRunner.ts"],"names":[],"mappings":"OAKO,EACL,4BAA4B,GAG7B;OACM,EAAE,kBAAkB,EAAE;AAe7B,MAAM,OAAO,oBAAqC,SAAQ,4BAGzD;IACC,MAAM,CAAC,QAAQ,CACb,MAAc,EACd,MAA6C,EAC7C,OAAuB;QAEvB,MAAM,MAAM,GAAG,IAAI,oBAAoB,EAAW,CAAC;QACnD,MAAM,IAAI,GAAG;YACX,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE;SAC1E,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC;IAEQ,WAAW,CAElB,OAAmC,EACnC,OAAgB,IAAI;QAEpB,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACnD,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,OAAiB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..89d2529ee450e2097505cbbae2f41ef503ca87b0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts @@ -0,0 +1,208 @@ +import OpenAI from "../index.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +import { type ReadableStream } from "../internal/shim-types.mjs"; +import { ParsedChatCompletion } from "../resources/chat/completions.mjs"; +import { ChatCompletionTokenLogprob, type ChatCompletion, type ChatCompletionChunk, type ChatCompletionCreateParams, type ChatCompletionCreateParamsBase, type ChatCompletionRole } from "../resources/chat/completions/completions.mjs"; +import { AbstractChatCompletionRunner, type AbstractChatCompletionRunnerEvents } from "./AbstractChatCompletionRunner.mjs"; +export interface ContentDeltaEvent { + delta: string; + snapshot: string; + parsed: unknown | null; +} +export interface ContentDoneEvent { + content: string; + parsed: ParsedT | null; +} +export interface RefusalDeltaEvent { + delta: string; + snapshot: string; +} +export interface RefusalDoneEvent { + refusal: string; +} +export interface FunctionToolCallArgumentsDeltaEvent { + name: string; + index: number; + arguments: string; + parsed_arguments: unknown; + arguments_delta: string; +} +export interface FunctionToolCallArgumentsDoneEvent { + name: string; + index: number; + arguments: string; + parsed_arguments: unknown; +} +export interface LogProbsContentDeltaEvent { + content: Array; + snapshot: Array; +} +export interface LogProbsContentDoneEvent { + content: Array; +} +export interface LogProbsRefusalDeltaEvent { + refusal: Array; + snapshot: Array; +} +export interface LogProbsRefusalDoneEvent { + refusal: Array; +} +export interface ChatCompletionStreamEvents extends AbstractChatCompletionRunnerEvents { + content: (contentDelta: string, contentSnapshot: string) => void; + chunk: (chunk: ChatCompletionChunk, snapshot: ChatCompletionSnapshot) => void; + 'content.delta': (props: ContentDeltaEvent) => void; + 'content.done': (props: ContentDoneEvent) => void; + 'refusal.delta': (props: RefusalDeltaEvent) => void; + 'refusal.done': (props: RefusalDoneEvent) => void; + 'tool_calls.function.arguments.delta': (props: FunctionToolCallArgumentsDeltaEvent) => void; + 'tool_calls.function.arguments.done': (props: FunctionToolCallArgumentsDoneEvent) => void; + 'logprobs.content.delta': (props: LogProbsContentDeltaEvent) => void; + 'logprobs.content.done': (props: LogProbsContentDoneEvent) => void; + 'logprobs.refusal.delta': (props: LogProbsRefusalDeltaEvent) => void; + 'logprobs.refusal.done': (props: LogProbsRefusalDoneEvent) => void; +} +export type ChatCompletionStreamParams = Omit & { + stream?: true; +}; +export declare class ChatCompletionStream extends AbstractChatCompletionRunner, ParsedT> implements AsyncIterable { + #private; + constructor(params: ChatCompletionCreateParams | null); + get currentChatCompletionSnapshot(): ChatCompletionSnapshot | undefined; + /** + * Intended for use on the frontend, consuming a stream produced with + * `.toReadableStream()` on the backend. + * + * Note that messages sent to the model do not appear in `.on('message')` + * in this context. + */ + static fromReadableStream(stream: ReadableStream): ChatCompletionStream; + static createChatCompletion(client: OpenAI, params: ChatCompletionStreamParams, options?: RequestOptions): ChatCompletionStream; + protected _createChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise>; + protected _fromReadableStream(readableStream: ReadableStream, options?: RequestOptions): Promise; + [Symbol.asyncIterator](this: ChatCompletionStream): AsyncIterator; + toReadableStream(): ReadableStream; +} +/** + * Represents a streamed chunk of a chat completion response returned by model, + * based on the provided input. + */ +export interface ChatCompletionSnapshot { + /** + * A unique identifier for the chat completion. + */ + id: string; + /** + * A list of chat completion choices. Can be more than one if `n` is greater + * than 1. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. + */ + created: number; + /** + * The model to generate the completion. + */ + model: string; + /** + * This fingerprint represents the backend configuration that the model runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; +} +export declare namespace ChatCompletionSnapshot { + interface Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + message: Choice.Message; + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, or `function_call` + * if the model called a function. + */ + finish_reason: ChatCompletion.Choice['finish_reason'] | null; + /** + * Log probability information for the choice. + */ + logprobs: ChatCompletion.Choice.Logprobs | null; + /** + * The index of the choice in the list of choices. + */ + index: number; + } + namespace Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + interface Message { + /** + * The contents of the chunk message. + */ + content?: string | null; + refusal?: string | null; + parsed?: unknown | null; + /** + * The name and arguments of a function that should be called, as generated by the + * model. + */ + function_call?: Message.FunctionCall; + tool_calls?: Array; + /** + * The role of the author of this message. + */ + role?: ChatCompletionRole; + } + namespace Message { + interface ToolCall { + /** + * The ID of the tool call. + */ + id: string; + function: ToolCall.Function; + /** + * The type of the tool. + */ + type: 'function'; + } + namespace ToolCall { + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + parsed_arguments?: unknown; + /** + * The name of the function to call. + */ + name: string; + } + } + /** + * The name and arguments of a function that should be called, as generated by the + * model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + } + } +} +//# sourceMappingURL=ChatCompletionStream.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..a2aa15206b8083efeacdcaa5cf00f85fd6b8e883 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStream.d.mts","sourceRoot":"","sources":["../src/lib/ChatCompletionStream.ts"],"names":[],"mappings":"OAOO,MAAM;OACN,EAAE,cAAc,EAAE;OAClB,EAAE,KAAK,cAAc,EAAE;OAUvB,EAA8B,oBAAoB,EAAE;OACpD,EACL,0BAA0B,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EAEnC,KAAK,kBAAkB,EACxB;OAEM,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,EACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB,CAAC,OAAO,GAAG,IAAI;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,GAAG,IAAI,CA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AAO,GAAG,IAAI,CAAC;YAExB;;;eAGG;YACH,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;YAErC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAErC;;eAEG;YACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;SAC3B;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,QAAQ;gBACvB;;mBAEG;gBACH,EAAE,EAAE,MAAM,CAAC;gBAEX,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;gBAE5B;;mBAEG;gBACH,IAAI,EAAE,UAAU,CAAC;aAClB;YAED,UAAiB,QAAQ,CAAC;gBACxB,UAAiB,QAAQ;oBACvB;;;;;uBAKG;oBACH,SAAS,EAAE,MAAM,CAAC;oBAElB,gBAAgB,CAAC,EAAE,OAAO,CAAC;oBAE3B;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;iBACd;aACF;YAED;;;eAGG;YACH,UAAiB,YAAY;gBAC3B;;;;;mBAKG;gBACH,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEnB;;mBAEG;gBACH,IAAI,CAAC,EAAE,MAAM,CAAC;aACf;SACF;KACF;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5036e6f31f698865b3054d104eda28dff4796d9b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts @@ -0,0 +1,208 @@ +import OpenAI from "../index.js"; +import { RequestOptions } from "../internal/request-options.js"; +import { type ReadableStream } from "../internal/shim-types.js"; +import { ParsedChatCompletion } from "../resources/chat/completions.js"; +import { ChatCompletionTokenLogprob, type ChatCompletion, type ChatCompletionChunk, type ChatCompletionCreateParams, type ChatCompletionCreateParamsBase, type ChatCompletionRole } from "../resources/chat/completions/completions.js"; +import { AbstractChatCompletionRunner, type AbstractChatCompletionRunnerEvents } from "./AbstractChatCompletionRunner.js"; +export interface ContentDeltaEvent { + delta: string; + snapshot: string; + parsed: unknown | null; +} +export interface ContentDoneEvent { + content: string; + parsed: ParsedT | null; +} +export interface RefusalDeltaEvent { + delta: string; + snapshot: string; +} +export interface RefusalDoneEvent { + refusal: string; +} +export interface FunctionToolCallArgumentsDeltaEvent { + name: string; + index: number; + arguments: string; + parsed_arguments: unknown; + arguments_delta: string; +} +export interface FunctionToolCallArgumentsDoneEvent { + name: string; + index: number; + arguments: string; + parsed_arguments: unknown; +} +export interface LogProbsContentDeltaEvent { + content: Array; + snapshot: Array; +} +export interface LogProbsContentDoneEvent { + content: Array; +} +export interface LogProbsRefusalDeltaEvent { + refusal: Array; + snapshot: Array; +} +export interface LogProbsRefusalDoneEvent { + refusal: Array; +} +export interface ChatCompletionStreamEvents extends AbstractChatCompletionRunnerEvents { + content: (contentDelta: string, contentSnapshot: string) => void; + chunk: (chunk: ChatCompletionChunk, snapshot: ChatCompletionSnapshot) => void; + 'content.delta': (props: ContentDeltaEvent) => void; + 'content.done': (props: ContentDoneEvent) => void; + 'refusal.delta': (props: RefusalDeltaEvent) => void; + 'refusal.done': (props: RefusalDoneEvent) => void; + 'tool_calls.function.arguments.delta': (props: FunctionToolCallArgumentsDeltaEvent) => void; + 'tool_calls.function.arguments.done': (props: FunctionToolCallArgumentsDoneEvent) => void; + 'logprobs.content.delta': (props: LogProbsContentDeltaEvent) => void; + 'logprobs.content.done': (props: LogProbsContentDoneEvent) => void; + 'logprobs.refusal.delta': (props: LogProbsRefusalDeltaEvent) => void; + 'logprobs.refusal.done': (props: LogProbsRefusalDoneEvent) => void; +} +export type ChatCompletionStreamParams = Omit & { + stream?: true; +}; +export declare class ChatCompletionStream extends AbstractChatCompletionRunner, ParsedT> implements AsyncIterable { + #private; + constructor(params: ChatCompletionCreateParams | null); + get currentChatCompletionSnapshot(): ChatCompletionSnapshot | undefined; + /** + * Intended for use on the frontend, consuming a stream produced with + * `.toReadableStream()` on the backend. + * + * Note that messages sent to the model do not appear in `.on('message')` + * in this context. + */ + static fromReadableStream(stream: ReadableStream): ChatCompletionStream; + static createChatCompletion(client: OpenAI, params: ChatCompletionStreamParams, options?: RequestOptions): ChatCompletionStream; + protected _createChatCompletion(client: OpenAI, params: ChatCompletionCreateParams, options?: RequestOptions): Promise>; + protected _fromReadableStream(readableStream: ReadableStream, options?: RequestOptions): Promise; + [Symbol.asyncIterator](this: ChatCompletionStream): AsyncIterator; + toReadableStream(): ReadableStream; +} +/** + * Represents a streamed chunk of a chat completion response returned by model, + * based on the provided input. + */ +export interface ChatCompletionSnapshot { + /** + * A unique identifier for the chat completion. + */ + id: string; + /** + * A list of chat completion choices. Can be more than one if `n` is greater + * than 1. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. + */ + created: number; + /** + * The model to generate the completion. + */ + model: string; + /** + * This fingerprint represents the backend configuration that the model runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; +} +export declare namespace ChatCompletionSnapshot { + interface Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + message: Choice.Message; + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, or `function_call` + * if the model called a function. + */ + finish_reason: ChatCompletion.Choice['finish_reason'] | null; + /** + * Log probability information for the choice. + */ + logprobs: ChatCompletion.Choice.Logprobs | null; + /** + * The index of the choice in the list of choices. + */ + index: number; + } + namespace Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + interface Message { + /** + * The contents of the chunk message. + */ + content?: string | null; + refusal?: string | null; + parsed?: unknown | null; + /** + * The name and arguments of a function that should be called, as generated by the + * model. + */ + function_call?: Message.FunctionCall; + tool_calls?: Array; + /** + * The role of the author of this message. + */ + role?: ChatCompletionRole; + } + namespace Message { + interface ToolCall { + /** + * The ID of the tool call. + */ + id: string; + function: ToolCall.Function; + /** + * The type of the tool. + */ + type: 'function'; + } + namespace ToolCall { + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + parsed_arguments?: unknown; + /** + * The name of the function to call. + */ + name: string; + } + } + /** + * The name and arguments of a function that should be called, as generated by the + * model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + } + } +} +//# sourceMappingURL=ChatCompletionStream.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..0ab9ef8a584fb417209d398cea4bac3a9cc3bbdd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStream.d.ts","sourceRoot":"","sources":["../src/lib/ChatCompletionStream.ts"],"names":[],"mappings":"OAOO,MAAM;OACN,EAAE,cAAc,EAAE;OAClB,EAAE,KAAK,cAAc,EAAE;OAUvB,EAA8B,oBAAoB,EAAE;OACpD,EACL,0BAA0B,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EAEnC,KAAK,kBAAkB,EACxB;OAEM,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,EACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAA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AiB,MAAM,CAAC;QACtB;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;YAExB;;;eAGG;YACH,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;YAErC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAErC;;eAEG;YACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;SAC3B;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,QAAQ;gBACvB;;mBAEG;gBACH,EAAE,EAAE,MAAM,CAAC;gBAEX,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;gBAE5B;;mBAEG;gBACH,IAAI,EAAE,UAAU,CAAC;aAClB;YAED,UAAiB,QAAQ,CAAC;gBACxB,UAAiB,QAAQ;oBACvB;;;;;uBAKG;oBACH,SAAS,EAAE,MAAM,CAAC;oBAElB,gBAAgB,CAAC,EAAE,OAAO,CAAC;oBAE3B;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;iBACd;aACF;YAED;;;eAGG;YACH,UAAiB,YAAY;gBAC3B;;;;;mBAKG;gBACH,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEnB;;mBAEG;gBACH,IAAI,CAAC,EAAE,MAAM,CAAC;aACf;SACF;KACF;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js new file mode 100644 index 0000000000000000000000000000000000000000..1b1bc2302944c11dabf3a840efccaa163eba3932 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js @@ -0,0 +1,493 @@ +"use strict"; +var _ChatCompletionStream_instances, _ChatCompletionStream_params, _ChatCompletionStream_choiceEventStates, _ChatCompletionStream_currentChatCompletionSnapshot, _ChatCompletionStream_beginRequest, _ChatCompletionStream_getChoiceEventState, _ChatCompletionStream_addChunk, _ChatCompletionStream_emitToolCallDoneEvent, _ChatCompletionStream_emitContentDoneEvents, _ChatCompletionStream_endRequest, _ChatCompletionStream_getAutoParseableResponseFormat, _ChatCompletionStream_accumulateChatCompletion; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatCompletionStream = void 0; +const tslib_1 = require("../internal/tslib.js"); +const parser_1 = require("../_vendor/partial-json-parser/parser.js"); +const error_1 = require("../error.js"); +const parser_2 = require("../lib/parser.js"); +const streaming_1 = require("../streaming.js"); +const AbstractChatCompletionRunner_1 = require("./AbstractChatCompletionRunner.js"); +class ChatCompletionStream extends AbstractChatCompletionRunner_1.AbstractChatCompletionRunner { + constructor(params) { + super(); + _ChatCompletionStream_instances.add(this); + _ChatCompletionStream_params.set(this, void 0); + _ChatCompletionStream_choiceEventStates.set(this, void 0); + _ChatCompletionStream_currentChatCompletionSnapshot.set(this, void 0); + tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_params, params, "f"); + tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_choiceEventStates, [], "f"); + } + get currentChatCompletionSnapshot() { + return tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + } + /** + * Intended for use on the frontend, consuming a stream produced with + * `.toReadableStream()` on the backend. + * + * Note that messages sent to the model do not appear in `.on('message')` + * in this context. + */ + static fromReadableStream(stream) { + const runner = new ChatCompletionStream(null); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + static createChatCompletion(client, params, options) { + const runner = new ChatCompletionStream(params); + runner._run(() => runner._runChatCompletion(client, { ...params, stream: true }, { ...options, headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' } })); + return runner; + } + async _createChatCompletion(client, params, options) { + super._createChatCompletion; + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); + const stream = await client.chat.completions.create({ ...params, stream: true }, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const chunk of stream) { + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addChatCompletion(tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + async _fromReadableStream(readableStream, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); + this._connected(); + const stream = streaming_1.Stream.fromReadableStream(readableStream, this.controller); + let chatId; + for await (const chunk of stream) { + if (chatId && chatId !== chunk.id) { + // A new request has been made. + this._addChatCompletion(tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); + chatId = chunk.id; + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return this._addChatCompletion(tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + [(_ChatCompletionStream_params = new WeakMap(), _ChatCompletionStream_choiceEventStates = new WeakMap(), _ChatCompletionStream_currentChatCompletionSnapshot = new WeakMap(), _ChatCompletionStream_instances = new WeakSet(), _ChatCompletionStream_beginRequest = function _ChatCompletionStream_beginRequest() { + if (this.ended) + return; + tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f"); + }, _ChatCompletionStream_getChoiceEventState = function _ChatCompletionStream_getChoiceEventState(choice) { + let state = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index]; + if (state) { + return state; + } + state = { + content_done: false, + refusal_done: false, + logprobs_content_done: false, + logprobs_refusal_done: false, + done_tool_calls: new Set(), + current_tool_call_index: null, + }; + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index] = state; + return state; + }, _ChatCompletionStream_addChunk = function _ChatCompletionStream_addChunk(chunk) { + if (this.ended) + return; + const completion = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_accumulateChatCompletion).call(this, chunk); + this._emit('chunk', chunk, completion); + for (const choice of chunk.choices) { + const choiceSnapshot = completion.choices[choice.index]; + if (choice.delta.content != null && + choiceSnapshot.message?.role === 'assistant' && + choiceSnapshot.message?.content) { + this._emit('content', choice.delta.content, choiceSnapshot.message.content); + this._emit('content.delta', { + delta: choice.delta.content, + snapshot: choiceSnapshot.message.content, + parsed: choiceSnapshot.message.parsed, + }); + } + if (choice.delta.refusal != null && + choiceSnapshot.message?.role === 'assistant' && + choiceSnapshot.message?.refusal) { + this._emit('refusal.delta', { + delta: choice.delta.refusal, + snapshot: choiceSnapshot.message.refusal, + }); + } + if (choice.logprobs?.content != null && choiceSnapshot.message?.role === 'assistant') { + this._emit('logprobs.content.delta', { + content: choice.logprobs?.content, + snapshot: choiceSnapshot.logprobs?.content ?? [], + }); + } + if (choice.logprobs?.refusal != null && choiceSnapshot.message?.role === 'assistant') { + this._emit('logprobs.refusal.delta', { + refusal: choice.logprobs?.refusal, + snapshot: choiceSnapshot.logprobs?.refusal ?? [], + }); + } + const state = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (choiceSnapshot.finish_reason) { + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); + if (state.current_tool_call_index != null) { + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); + } + } + for (const toolCall of choice.delta.tool_calls ?? []) { + if (state.current_tool_call_index !== toolCall.index) { + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); + // new tool call started, the previous one is done + if (state.current_tool_call_index != null) { + tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); + } + } + state.current_tool_call_index = toolCall.index; + } + for (const toolCallDelta of choice.delta.tool_calls ?? []) { + const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallDelta.index]; + if (!toolCallSnapshot?.type) { + continue; + } + if (toolCallSnapshot?.type === 'function') { + this._emit('tool_calls.function.arguments.delta', { + name: toolCallSnapshot.function?.name, + index: toolCallDelta.index, + arguments: toolCallSnapshot.function.arguments, + parsed_arguments: toolCallSnapshot.function.parsed_arguments, + arguments_delta: toolCallDelta.function?.arguments ?? '', + }); + } + else { + assertNever(toolCallSnapshot?.type); + } + } + } + }, _ChatCompletionStream_emitToolCallDoneEvent = function _ChatCompletionStream_emitToolCallDoneEvent(choiceSnapshot, toolCallIndex) { + const state = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (state.done_tool_calls.has(toolCallIndex)) { + // we've already fired the done event + return; + } + const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallIndex]; + if (!toolCallSnapshot) { + throw new Error('no tool call snapshot'); + } + if (!toolCallSnapshot.type) { + throw new Error('tool call snapshot missing `type`'); + } + if (toolCallSnapshot.type === 'function') { + const inputTool = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f")?.tools?.find((tool) => (0, parser_2.isChatCompletionFunctionTool)(tool) && tool.function.name === toolCallSnapshot.function.name); // TS doesn't narrow based on isChatCompletionTool + this._emit('tool_calls.function.arguments.done', { + name: toolCallSnapshot.function.name, + index: toolCallIndex, + arguments: toolCallSnapshot.function.arguments, + parsed_arguments: (0, parser_2.isAutoParsableTool)(inputTool) ? inputTool.$parseRaw(toolCallSnapshot.function.arguments) + : inputTool?.function.strict ? JSON.parse(toolCallSnapshot.function.arguments) + : null, + }); + } + else { + assertNever(toolCallSnapshot.type); + } + }, _ChatCompletionStream_emitContentDoneEvents = function _ChatCompletionStream_emitContentDoneEvents(choiceSnapshot) { + const state = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (choiceSnapshot.message.content && !state.content_done) { + state.content_done = true; + const responseFormat = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this); + this._emit('content.done', { + content: choiceSnapshot.message.content, + parsed: responseFormat ? responseFormat.$parseRaw(choiceSnapshot.message.content) : null, + }); + } + if (choiceSnapshot.message.refusal && !state.refusal_done) { + state.refusal_done = true; + this._emit('refusal.done', { refusal: choiceSnapshot.message.refusal }); + } + if (choiceSnapshot.logprobs?.content && !state.logprobs_content_done) { + state.logprobs_content_done = true; + this._emit('logprobs.content.done', { content: choiceSnapshot.logprobs.content }); + } + if (choiceSnapshot.logprobs?.refusal && !state.logprobs_refusal_done) { + state.logprobs_refusal_done = true; + this._emit('logprobs.refusal.done', { refusal: choiceSnapshot.logprobs.refusal }); + } + }, _ChatCompletionStream_endRequest = function _ChatCompletionStream_endRequest() { + if (this.ended) { + throw new error_1.OpenAIError(`stream has ended, this shouldn't happen`); + } + const snapshot = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + if (!snapshot) { + throw new error_1.OpenAIError(`request ended without sending any chunks`); + } + tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f"); + tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_choiceEventStates, [], "f"); + return finalizeChatCompletion(snapshot, tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f")); + }, _ChatCompletionStream_getAutoParseableResponseFormat = function _ChatCompletionStream_getAutoParseableResponseFormat() { + const responseFormat = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f")?.response_format; + if ((0, parser_2.isAutoParsableResponseFormat)(responseFormat)) { + return responseFormat; + } + return null; + }, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion(chunk) { + var _a, _b, _c, _d; + let snapshot = tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + const { choices, ...rest } = chunk; + if (!snapshot) { + snapshot = tslib_1.__classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, { + ...rest, + choices: [], + }, "f"); + } + else { + Object.assign(snapshot, rest); + } + for (const { delta, finish_reason, index, logprobs = null, ...other } of chunk.choices) { + let choice = snapshot.choices[index]; + if (!choice) { + choice = snapshot.choices[index] = { finish_reason, index, message: {}, logprobs, ...other }; + } + if (logprobs) { + if (!choice.logprobs) { + choice.logprobs = Object.assign({}, logprobs); + } + else { + const { content, refusal, ...rest } = logprobs; + assertIsEmpty(rest); + Object.assign(choice.logprobs, rest); + if (content) { + (_a = choice.logprobs).content ?? (_a.content = []); + choice.logprobs.content.push(...content); + } + if (refusal) { + (_b = choice.logprobs).refusal ?? (_b.refusal = []); + choice.logprobs.refusal.push(...refusal); + } + } + } + if (finish_reason) { + choice.finish_reason = finish_reason; + if (tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f") && (0, parser_2.hasAutoParseableInput)(tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f"))) { + if (finish_reason === 'length') { + throw new error_1.LengthFinishReasonError(); + } + if (finish_reason === 'content_filter') { + throw new error_1.ContentFilterFinishReasonError(); + } + } + } + Object.assign(choice, other); + if (!delta) + continue; // Shouldn't happen; just in case. + const { content, refusal, function_call, role, tool_calls, ...rest } = delta; + assertIsEmpty(rest); + Object.assign(choice.message, rest); + if (refusal) { + choice.message.refusal = (choice.message.refusal || '') + refusal; + } + if (role) + choice.message.role = role; + if (function_call) { + if (!choice.message.function_call) { + choice.message.function_call = function_call; + } + else { + if (function_call.name) + choice.message.function_call.name = function_call.name; + if (function_call.arguments) { + (_c = choice.message.function_call).arguments ?? (_c.arguments = ''); + choice.message.function_call.arguments += function_call.arguments; + } + } + } + if (content) { + choice.message.content = (choice.message.content || '') + content; + if (!choice.message.refusal && tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this)) { + choice.message.parsed = (0, parser_1.partialParse)(choice.message.content); + } + } + if (tool_calls) { + if (!choice.message.tool_calls) + choice.message.tool_calls = []; + for (const { index, id, type, function: fn, ...rest } of tool_calls) { + const tool_call = ((_d = choice.message.tool_calls)[index] ?? (_d[index] = {})); + Object.assign(tool_call, rest); + if (id) + tool_call.id = id; + if (type) + tool_call.type = type; + if (fn) + tool_call.function ?? (tool_call.function = { name: fn.name ?? '', arguments: '' }); + if (fn?.name) + tool_call.function.name = fn.name; + if (fn?.arguments) { + tool_call.function.arguments += fn.arguments; + if ((0, parser_2.shouldParseToolCall)(tslib_1.__classPrivateFieldGet(this, _ChatCompletionStream_params, "f"), tool_call)) { + tool_call.function.parsed_arguments = (0, parser_1.partialParse)(tool_call.function.arguments); + } + } + } + } + } + return snapshot; + }, Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + this.on('chunk', (chunk) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(chunk); + } + else { + pushQueue.push(chunk); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true })); + } + const chunk = pushQueue.shift(); + return { value: chunk, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + toReadableStream() { + const stream = new streaming_1.Stream(this[Symbol.asyncIterator].bind(this), this.controller); + return stream.toReadableStream(); + } +} +exports.ChatCompletionStream = ChatCompletionStream; +function finalizeChatCompletion(snapshot, params) { + const { id, choices, created, model, system_fingerprint, ...rest } = snapshot; + const completion = { + ...rest, + id, + choices: choices.map(({ message, finish_reason, index, logprobs, ...choiceRest }) => { + if (!finish_reason) { + throw new error_1.OpenAIError(`missing finish_reason for choice ${index}`); + } + const { content = null, function_call, tool_calls, ...messageRest } = message; + const role = message.role; // this is what we expect; in theory it could be different which would make our types a slight lie but would be fine. + if (!role) { + throw new error_1.OpenAIError(`missing role for choice ${index}`); + } + if (function_call) { + const { arguments: args, name } = function_call; + if (args == null) { + throw new error_1.OpenAIError(`missing function_call.arguments for choice ${index}`); + } + if (!name) { + throw new error_1.OpenAIError(`missing function_call.name for choice ${index}`); + } + return { + ...choiceRest, + message: { + content, + function_call: { arguments: args, name }, + role, + refusal: message.refusal ?? null, + }, + finish_reason, + index, + logprobs, + }; + } + if (tool_calls) { + return { + ...choiceRest, + index, + finish_reason, + logprobs, + message: { + ...messageRest, + role, + content, + refusal: message.refusal ?? null, + tool_calls: tool_calls.map((tool_call, i) => { + const { function: fn, type, id, ...toolRest } = tool_call; + const { arguments: args, name, ...fnRest } = fn || {}; + if (id == null) { + throw new error_1.OpenAIError(`missing choices[${index}].tool_calls[${i}].id\n${str(snapshot)}`); + } + if (type == null) { + throw new error_1.OpenAIError(`missing choices[${index}].tool_calls[${i}].type\n${str(snapshot)}`); + } + if (name == null) { + throw new error_1.OpenAIError(`missing choices[${index}].tool_calls[${i}].function.name\n${str(snapshot)}`); + } + if (args == null) { + throw new error_1.OpenAIError(`missing choices[${index}].tool_calls[${i}].function.arguments\n${str(snapshot)}`); + } + return { ...toolRest, id, type, function: { ...fnRest, name, arguments: args } }; + }), + }, + }; + } + return { + ...choiceRest, + message: { ...messageRest, content, role, refusal: message.refusal ?? null }, + finish_reason, + index, + logprobs, + }; + }), + created, + model, + object: 'chat.completion', + ...(system_fingerprint ? { system_fingerprint } : {}), + }; + return (0, parser_2.maybeParseChatCompletion)(completion, params); +} +function str(x) { + return JSON.stringify(x); +} +/** + * Ensures the given argument is an empty object, useful for + * asserting that all known properties on an object have been + * destructured. + */ +function assertIsEmpty(obj) { + return; +} +function assertNever(_x) { } +//# sourceMappingURL=ChatCompletionStream.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f9a4dca91169e6c2d60fa318d713b9cd85aa9135 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStream.js","sourceRoot":"","sources":["../src/lib/ChatCompletionStream.ts"],"names":[],"mappings":";;;;;AAAA,qEAAqE;AACrE,uCAKkB;AAIlB,6CAQuB;AAWvB,+CAAsC;AACtC,oFAGwC;AA+FxC,MAAa,oBACX,SAAQ,2DAA0E;IAOlF,YAAY,MAAyC;QACnD,KAAK,EAAE,CAAC;;QALV,+CAA2C;QAC3C,0DAAuC;QACvC,sEAAmE;QAIjE,+BAAA,IAAI,gCAAW,MAAM,MAAA,CAAC;QACtB,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AAC,EAAE,CAC7E,CAAC;4BACJ,CAAC;4BACD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;gCACjB,MAAM,IAAI,mBAAW,CACnB,mBAAmB,KAAK,gBAAgB,CAAC,yBAAyB,GAAG,CAAC,QAAQ,CAAC,EAAE,CAClF,CAAC;4BACJ,CAAC;4BAED,OAAO,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;wBACnF,CAAC,CAAC;qBACH;iBACF,CAAC;YACJ,CAAC;YACD,OAAO;gBACL,GAAG,UAAU;gBACb,OAAO,EAAE,EAAE,GAAG,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;gBAC5E,aAAa;gBACb,KAAK;gBACL,QAAQ;aACT,CAAC;QACJ,CAAC,CACF;QACD,OAAO;QACP,KAAK;QACL,MAAM,EAAE,iBAAiB;QACzB,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACtD,CAAC;IAEF,OAAO,IAAA,iCAAwB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,GAAG,CAAC,CAAU;IACrB,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B,CAAC;AA0JD;;;;GAIG;AACH,SAAS,aAAa,CAAe,GAAqB;IACxD,OAAO;AACT,CAAC;AAED,SAAS,WAAW,CAAC,EAAS,IAAG,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d9c425823de0cc26f584891d9a4c17f5396b32ae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs @@ -0,0 +1,489 @@ +var _ChatCompletionStream_instances, _ChatCompletionStream_params, _ChatCompletionStream_choiceEventStates, _ChatCompletionStream_currentChatCompletionSnapshot, _ChatCompletionStream_beginRequest, _ChatCompletionStream_getChoiceEventState, _ChatCompletionStream_addChunk, _ChatCompletionStream_emitToolCallDoneEvent, _ChatCompletionStream_emitContentDoneEvents, _ChatCompletionStream_endRequest, _ChatCompletionStream_getAutoParseableResponseFormat, _ChatCompletionStream_accumulateChatCompletion; +import { __classPrivateFieldGet, __classPrivateFieldSet } from "../internal/tslib.mjs"; +import { partialParse } from "../_vendor/partial-json-parser/parser.mjs"; +import { APIUserAbortError, ContentFilterFinishReasonError, LengthFinishReasonError, OpenAIError, } from "../error.mjs"; +import { hasAutoParseableInput, isAutoParsableResponseFormat, isAutoParsableTool, isChatCompletionFunctionTool, maybeParseChatCompletion, shouldParseToolCall, } from "../lib/parser.mjs"; +import { Stream } from "../streaming.mjs"; +import { AbstractChatCompletionRunner, } from "./AbstractChatCompletionRunner.mjs"; +export class ChatCompletionStream extends AbstractChatCompletionRunner { + constructor(params) { + super(); + _ChatCompletionStream_instances.add(this); + _ChatCompletionStream_params.set(this, void 0); + _ChatCompletionStream_choiceEventStates.set(this, void 0); + _ChatCompletionStream_currentChatCompletionSnapshot.set(this, void 0); + __classPrivateFieldSet(this, _ChatCompletionStream_params, params, "f"); + __classPrivateFieldSet(this, _ChatCompletionStream_choiceEventStates, [], "f"); + } + get currentChatCompletionSnapshot() { + return __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + } + /** + * Intended for use on the frontend, consuming a stream produced with + * `.toReadableStream()` on the backend. + * + * Note that messages sent to the model do not appear in `.on('message')` + * in this context. + */ + static fromReadableStream(stream) { + const runner = new ChatCompletionStream(null); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + static createChatCompletion(client, params, options) { + const runner = new ChatCompletionStream(params); + runner._run(() => runner._runChatCompletion(client, { ...params, stream: true }, { ...options, headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' } })); + return runner; + } + async _createChatCompletion(client, params, options) { + super._createChatCompletion; + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); + const stream = await client.chat.completions.create({ ...params, stream: true }, { ...options, signal: this.controller.signal }); + this._connected(); + for await (const chunk of stream) { + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addChatCompletion(__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + async _fromReadableStream(readableStream, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); + this._connected(); + const stream = Stream.fromReadableStream(readableStream, this.controller); + let chatId; + for await (const chunk of stream) { + if (chatId && chatId !== chunk.id) { + // A new request has been made. + this._addChatCompletion(__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); + chatId = chunk.id; + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return this._addChatCompletion(__classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); + } + [(_ChatCompletionStream_params = new WeakMap(), _ChatCompletionStream_choiceEventStates = new WeakMap(), _ChatCompletionStream_currentChatCompletionSnapshot = new WeakMap(), _ChatCompletionStream_instances = new WeakSet(), _ChatCompletionStream_beginRequest = function _ChatCompletionStream_beginRequest() { + if (this.ended) + return; + __classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f"); + }, _ChatCompletionStream_getChoiceEventState = function _ChatCompletionStream_getChoiceEventState(choice) { + let state = __classPrivateFieldGet(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index]; + if (state) { + return state; + } + state = { + content_done: false, + refusal_done: false, + logprobs_content_done: false, + logprobs_refusal_done: false, + done_tool_calls: new Set(), + current_tool_call_index: null, + }; + __classPrivateFieldGet(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index] = state; + return state; + }, _ChatCompletionStream_addChunk = function _ChatCompletionStream_addChunk(chunk) { + if (this.ended) + return; + const completion = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_accumulateChatCompletion).call(this, chunk); + this._emit('chunk', chunk, completion); + for (const choice of chunk.choices) { + const choiceSnapshot = completion.choices[choice.index]; + if (choice.delta.content != null && + choiceSnapshot.message?.role === 'assistant' && + choiceSnapshot.message?.content) { + this._emit('content', choice.delta.content, choiceSnapshot.message.content); + this._emit('content.delta', { + delta: choice.delta.content, + snapshot: choiceSnapshot.message.content, + parsed: choiceSnapshot.message.parsed, + }); + } + if (choice.delta.refusal != null && + choiceSnapshot.message?.role === 'assistant' && + choiceSnapshot.message?.refusal) { + this._emit('refusal.delta', { + delta: choice.delta.refusal, + snapshot: choiceSnapshot.message.refusal, + }); + } + if (choice.logprobs?.content != null && choiceSnapshot.message?.role === 'assistant') { + this._emit('logprobs.content.delta', { + content: choice.logprobs?.content, + snapshot: choiceSnapshot.logprobs?.content ?? [], + }); + } + if (choice.logprobs?.refusal != null && choiceSnapshot.message?.role === 'assistant') { + this._emit('logprobs.refusal.delta', { + refusal: choice.logprobs?.refusal, + snapshot: choiceSnapshot.logprobs?.refusal ?? [], + }); + } + const state = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (choiceSnapshot.finish_reason) { + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); + if (state.current_tool_call_index != null) { + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); + } + } + for (const toolCall of choice.delta.tool_calls ?? []) { + if (state.current_tool_call_index !== toolCall.index) { + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); + // new tool call started, the previous one is done + if (state.current_tool_call_index != null) { + __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); + } + } + state.current_tool_call_index = toolCall.index; + } + for (const toolCallDelta of choice.delta.tool_calls ?? []) { + const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallDelta.index]; + if (!toolCallSnapshot?.type) { + continue; + } + if (toolCallSnapshot?.type === 'function') { + this._emit('tool_calls.function.arguments.delta', { + name: toolCallSnapshot.function?.name, + index: toolCallDelta.index, + arguments: toolCallSnapshot.function.arguments, + parsed_arguments: toolCallSnapshot.function.parsed_arguments, + arguments_delta: toolCallDelta.function?.arguments ?? '', + }); + } + else { + assertNever(toolCallSnapshot?.type); + } + } + } + }, _ChatCompletionStream_emitToolCallDoneEvent = function _ChatCompletionStream_emitToolCallDoneEvent(choiceSnapshot, toolCallIndex) { + const state = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (state.done_tool_calls.has(toolCallIndex)) { + // we've already fired the done event + return; + } + const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallIndex]; + if (!toolCallSnapshot) { + throw new Error('no tool call snapshot'); + } + if (!toolCallSnapshot.type) { + throw new Error('tool call snapshot missing `type`'); + } + if (toolCallSnapshot.type === 'function') { + const inputTool = __classPrivateFieldGet(this, _ChatCompletionStream_params, "f")?.tools?.find((tool) => isChatCompletionFunctionTool(tool) && tool.function.name === toolCallSnapshot.function.name); // TS doesn't narrow based on isChatCompletionTool + this._emit('tool_calls.function.arguments.done', { + name: toolCallSnapshot.function.name, + index: toolCallIndex, + arguments: toolCallSnapshot.function.arguments, + parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCallSnapshot.function.arguments) + : inputTool?.function.strict ? JSON.parse(toolCallSnapshot.function.arguments) + : null, + }); + } + else { + assertNever(toolCallSnapshot.type); + } + }, _ChatCompletionStream_emitContentDoneEvents = function _ChatCompletionStream_emitContentDoneEvents(choiceSnapshot) { + const state = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); + if (choiceSnapshot.message.content && !state.content_done) { + state.content_done = true; + const responseFormat = __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this); + this._emit('content.done', { + content: choiceSnapshot.message.content, + parsed: responseFormat ? responseFormat.$parseRaw(choiceSnapshot.message.content) : null, + }); + } + if (choiceSnapshot.message.refusal && !state.refusal_done) { + state.refusal_done = true; + this._emit('refusal.done', { refusal: choiceSnapshot.message.refusal }); + } + if (choiceSnapshot.logprobs?.content && !state.logprobs_content_done) { + state.logprobs_content_done = true; + this._emit('logprobs.content.done', { content: choiceSnapshot.logprobs.content }); + } + if (choiceSnapshot.logprobs?.refusal && !state.logprobs_refusal_done) { + state.logprobs_refusal_done = true; + this._emit('logprobs.refusal.done', { refusal: choiceSnapshot.logprobs.refusal }); + } + }, _ChatCompletionStream_endRequest = function _ChatCompletionStream_endRequest() { + if (this.ended) { + throw new OpenAIError(`stream has ended, this shouldn't happen`); + } + const snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + if (!snapshot) { + throw new OpenAIError(`request ended without sending any chunks`); + } + __classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, undefined, "f"); + __classPrivateFieldSet(this, _ChatCompletionStream_choiceEventStates, [], "f"); + return finalizeChatCompletion(snapshot, __classPrivateFieldGet(this, _ChatCompletionStream_params, "f")); + }, _ChatCompletionStream_getAutoParseableResponseFormat = function _ChatCompletionStream_getAutoParseableResponseFormat() { + const responseFormat = __classPrivateFieldGet(this, _ChatCompletionStream_params, "f")?.response_format; + if (isAutoParsableResponseFormat(responseFormat)) { + return responseFormat; + } + return null; + }, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion(chunk) { + var _a, _b, _c, _d; + let snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); + const { choices, ...rest } = chunk; + if (!snapshot) { + snapshot = __classPrivateFieldSet(this, _ChatCompletionStream_currentChatCompletionSnapshot, { + ...rest, + choices: [], + }, "f"); + } + else { + Object.assign(snapshot, rest); + } + for (const { delta, finish_reason, index, logprobs = null, ...other } of chunk.choices) { + let choice = snapshot.choices[index]; + if (!choice) { + choice = snapshot.choices[index] = { finish_reason, index, message: {}, logprobs, ...other }; + } + if (logprobs) { + if (!choice.logprobs) { + choice.logprobs = Object.assign({}, logprobs); + } + else { + const { content, refusal, ...rest } = logprobs; + assertIsEmpty(rest); + Object.assign(choice.logprobs, rest); + if (content) { + (_a = choice.logprobs).content ?? (_a.content = []); + choice.logprobs.content.push(...content); + } + if (refusal) { + (_b = choice.logprobs).refusal ?? (_b.refusal = []); + choice.logprobs.refusal.push(...refusal); + } + } + } + if (finish_reason) { + choice.finish_reason = finish_reason; + if (__classPrivateFieldGet(this, _ChatCompletionStream_params, "f") && hasAutoParseableInput(__classPrivateFieldGet(this, _ChatCompletionStream_params, "f"))) { + if (finish_reason === 'length') { + throw new LengthFinishReasonError(); + } + if (finish_reason === 'content_filter') { + throw new ContentFilterFinishReasonError(); + } + } + } + Object.assign(choice, other); + if (!delta) + continue; // Shouldn't happen; just in case. + const { content, refusal, function_call, role, tool_calls, ...rest } = delta; + assertIsEmpty(rest); + Object.assign(choice.message, rest); + if (refusal) { + choice.message.refusal = (choice.message.refusal || '') + refusal; + } + if (role) + choice.message.role = role; + if (function_call) { + if (!choice.message.function_call) { + choice.message.function_call = function_call; + } + else { + if (function_call.name) + choice.message.function_call.name = function_call.name; + if (function_call.arguments) { + (_c = choice.message.function_call).arguments ?? (_c.arguments = ''); + choice.message.function_call.arguments += function_call.arguments; + } + } + } + if (content) { + choice.message.content = (choice.message.content || '') + content; + if (!choice.message.refusal && __classPrivateFieldGet(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this)) { + choice.message.parsed = partialParse(choice.message.content); + } + } + if (tool_calls) { + if (!choice.message.tool_calls) + choice.message.tool_calls = []; + for (const { index, id, type, function: fn, ...rest } of tool_calls) { + const tool_call = ((_d = choice.message.tool_calls)[index] ?? (_d[index] = {})); + Object.assign(tool_call, rest); + if (id) + tool_call.id = id; + if (type) + tool_call.type = type; + if (fn) + tool_call.function ?? (tool_call.function = { name: fn.name ?? '', arguments: '' }); + if (fn?.name) + tool_call.function.name = fn.name; + if (fn?.arguments) { + tool_call.function.arguments += fn.arguments; + if (shouldParseToolCall(__classPrivateFieldGet(this, _ChatCompletionStream_params, "f"), tool_call)) { + tool_call.function.parsed_arguments = partialParse(tool_call.function.arguments); + } + } + } + } + } + return snapshot; + }, Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + this.on('chunk', (chunk) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(chunk); + } + else { + pushQueue.push(chunk); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true })); + } + const chunk = pushQueue.shift(); + return { value: chunk, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + toReadableStream() { + const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller); + return stream.toReadableStream(); + } +} +function finalizeChatCompletion(snapshot, params) { + const { id, choices, created, model, system_fingerprint, ...rest } = snapshot; + const completion = { + ...rest, + id, + choices: choices.map(({ message, finish_reason, index, logprobs, ...choiceRest }) => { + if (!finish_reason) { + throw new OpenAIError(`missing finish_reason for choice ${index}`); + } + const { content = null, function_call, tool_calls, ...messageRest } = message; + const role = message.role; // this is what we expect; in theory it could be different which would make our types a slight lie but would be fine. + if (!role) { + throw new OpenAIError(`missing role for choice ${index}`); + } + if (function_call) { + const { arguments: args, name } = function_call; + if (args == null) { + throw new OpenAIError(`missing function_call.arguments for choice ${index}`); + } + if (!name) { + throw new OpenAIError(`missing function_call.name for choice ${index}`); + } + return { + ...choiceRest, + message: { + content, + function_call: { arguments: args, name }, + role, + refusal: message.refusal ?? null, + }, + finish_reason, + index, + logprobs, + }; + } + if (tool_calls) { + return { + ...choiceRest, + index, + finish_reason, + logprobs, + message: { + ...messageRest, + role, + content, + refusal: message.refusal ?? null, + tool_calls: tool_calls.map((tool_call, i) => { + const { function: fn, type, id, ...toolRest } = tool_call; + const { arguments: args, name, ...fnRest } = fn || {}; + if (id == null) { + throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].id\n${str(snapshot)}`); + } + if (type == null) { + throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].type\n${str(snapshot)}`); + } + if (name == null) { + throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].function.name\n${str(snapshot)}`); + } + if (args == null) { + throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].function.arguments\n${str(snapshot)}`); + } + return { ...toolRest, id, type, function: { ...fnRest, name, arguments: args } }; + }), + }, + }; + } + return { + ...choiceRest, + message: { ...messageRest, content, role, refusal: message.refusal ?? null }, + finish_reason, + index, + logprobs, + }; + }), + created, + model, + object: 'chat.completion', + ...(system_fingerprint ? { system_fingerprint } : {}), + }; + return maybeParseChatCompletion(completion, params); +} +function str(x) { + return JSON.stringify(x); +} +/** + * Ensures the given argument is an empty object, useful for + * asserting that all known properties on an object have been + * destructured. + */ +function assertIsEmpty(obj) { + return; +} +function assertNever(_x) { } +//# sourceMappingURL=ChatCompletionStream.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6160421f6b51dcff8e7f90158236ee94339db876 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStream.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStream.mjs","sourceRoot":"","sources":["../src/lib/ChatCompletionStream.ts"],"names":[],"mappings":";;OAAO,EAAE,YAAY,EAAE;OAChB,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,uBAAuB,EACvB,WAAW,GACZ;OAIM,EAEL,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,GACpB;OAWM,EAAE,MAAM,EAAE;OACV,EACL,4BAA4B,GAE7B;AA+FD,MAAM,OAAO,oBACX,SAAQ,4BAA0E;IAOlF,YAAY,MAAyC;QACnD,KAAK,EAAE,CAAC;;QALV,+CAA2C;QAC3C,0DAAuC;QACvC,sEAAmE;QAIjE,uBAAA,IAAI,gCAAW,MAAM,MAAA,CAAC;QACtB,uBAAA,IAAI,2CAAsB,EAAE,MAAA,CAAC;IAC/B,CAAC;IAED,IAAI,6BA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BAAyB,GAAG,CAAC,QAAQ,CAAC,EAAE,CAClF,CAAC;4BACJ,CAAC;4BAED,OAAO,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;wBACnF,CAAC,CAAC;qBACH;iBACF,CAAC;YACJ,CAAC;YACD,OAAO;gBACL,GAAG,UAAU;gBACb,OAAO,EAAE,EAAE,GAAG,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;gBAC5E,aAAa;gBACb,KAAK;gBACL,QAAQ;aACT,CAAC;QACJ,CAAC,CACF;QACD,OAAO;QACP,KAAK;QACL,MAAM,EAAE,iBAAiB;QACzB,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACtD,CAAC;IAEF,OAAO,wBAAwB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,GAAG,CAAC,CAAU;IACrB,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B,CAAC;AA0JD;;;;GAIG;AACH,SAAS,aAAa,CAAe,GAAqB;IACxD,OAAO;AACT,CAAC;AAED,SAAS,WAAW,CAAC,EAAS,IAAG,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..0a874ae8df760e9b4ffd824bdfab38b119d19fb7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts @@ -0,0 +1,19 @@ +import { type ChatCompletionChunk, type ChatCompletionCreateParamsStreaming } from "../resources/chat/completions.mjs"; +import { RunnerOptions, type AbstractChatCompletionRunnerEvents } from "./AbstractChatCompletionRunner.mjs"; +import { type ReadableStream } from "../internal/shim-types.mjs"; +import { RunnableTools, type BaseFunctionsArgs } from "./RunnableFunction.mjs"; +import { ChatCompletionSnapshot, ChatCompletionStream } from "./ChatCompletionStream.mjs"; +import OpenAI from "../index.mjs"; +import { AutoParseableTool } from "../lib/parser.mjs"; +export interface ChatCompletionStreamEvents extends AbstractChatCompletionRunnerEvents { + content: (contentDelta: string, contentSnapshot: string) => void; + chunk: (chunk: ChatCompletionChunk, snapshot: ChatCompletionSnapshot) => void; +} +export type ChatCompletionStreamingToolRunnerParams = Omit & { + tools: RunnableTools | AutoParseableTool[]; +}; +export declare class ChatCompletionStreamingRunner extends ChatCompletionStream implements AsyncIterable { + static fromReadableStream(stream: ReadableStream): ChatCompletionStreamingRunner; + static runTools(client: OpenAI, params: ChatCompletionStreamingToolRunnerParams, options?: RunnerOptions): ChatCompletionStreamingRunner; +} +//# sourceMappingURL=ChatCompletionStreamingRunner.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..25b219e0320b53a8235a4bb99c525eca5734fa24 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStreamingRunner.d.mts","sourceRoot":"","sources":["../src/lib/ChatCompletionStreamingRunner.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACzC;OACM,EAAE,aAAa,EAAE,KAAK,kCAAkC,EAAE;OAC1D,EAAE,KAAK,cAAc,EAAE;OACvB,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE;OACzC,EAAE,sBAAsB,EAAE,oBAAoB,EAAE;OAChD,MAAM;OACN,EAAE,iBAAiB,EAAE;AAE5B,MAAM,WAAW,0BAA2B,SAAQ,kCAAkC;IACpF,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,KAAK,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC/E;AAED,MAAM,MAAM,uCAAuC,CAAC,aAAa,SAAS,iBAAiB,IAAI,IAAI,CACjG,mCAAmC,EACnC,OAAO,CACR,GAAG;IACF,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;CACtE,CAAC;AAEF,qBAAa,6BAA6B,CAAC,OAAO,GAAG,IAAI,CACvD,SAAQ,oBAAoB,CAAC,OAAO,CACpC,YAAW,aAAa,CAAC,mBAAmB,CAAC;WAE7B,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,6BAA6B,CAAC,IAAI,CAAC;IAM/F,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,EAC3D,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uCAAuC,CAAC,CAAC,CAAC,EAClD,OAAO,CAAC,EAAE,aAAa,GACtB,6BAA6B,CAAC,OAAO,CAAC;CAY1C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..13ad5258cf8f1e6f0260657724032d4838bbdb42 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts @@ -0,0 +1,19 @@ +import { type ChatCompletionChunk, type ChatCompletionCreateParamsStreaming } from "../resources/chat/completions.js"; +import { RunnerOptions, type AbstractChatCompletionRunnerEvents } from "./AbstractChatCompletionRunner.js"; +import { type ReadableStream } from "../internal/shim-types.js"; +import { RunnableTools, type BaseFunctionsArgs } from "./RunnableFunction.js"; +import { ChatCompletionSnapshot, ChatCompletionStream } from "./ChatCompletionStream.js"; +import OpenAI from "../index.js"; +import { AutoParseableTool } from "../lib/parser.js"; +export interface ChatCompletionStreamEvents extends AbstractChatCompletionRunnerEvents { + content: (contentDelta: string, contentSnapshot: string) => void; + chunk: (chunk: ChatCompletionChunk, snapshot: ChatCompletionSnapshot) => void; +} +export type ChatCompletionStreamingToolRunnerParams = Omit & { + tools: RunnableTools | AutoParseableTool[]; +}; +export declare class ChatCompletionStreamingRunner extends ChatCompletionStream implements AsyncIterable { + static fromReadableStream(stream: ReadableStream): ChatCompletionStreamingRunner; + static runTools(client: OpenAI, params: ChatCompletionStreamingToolRunnerParams, options?: RunnerOptions): ChatCompletionStreamingRunner; +} +//# sourceMappingURL=ChatCompletionStreamingRunner.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..43e770bc24792255a3a4abc4cff922c62c6a0ac9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStreamingRunner.d.ts","sourceRoot":"","sources":["../src/lib/ChatCompletionStreamingRunner.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACzC;OACM,EAAE,aAAa,EAAE,KAAK,kCAAkC,EAAE;OAC1D,EAAE,KAAK,cAAc,EAAE;OACvB,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE;OACzC,EAAE,sBAAsB,EAAE,oBAAoB,EAAE;OAChD,MAAM;OACN,EAAE,iBAAiB,EAAE;AAE5B,MAAM,WAAW,0BAA2B,SAAQ,kCAAkC;IACpF,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,KAAK,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC/E;AAED,MAAM,MAAM,uCAAuC,CAAC,aAAa,SAAS,iBAAiB,IAAI,IAAI,CACjG,mCAAmC,EACnC,OAAO,CACR,GAAG;IACF,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;CACtE,CAAC;AAEF,qBAAa,6BAA6B,CAAC,OAAO,GAAG,IAAI,CACvD,SAAQ,oBAAoB,CAAC,OAAO,CACpC,YAAW,aAAa,CAAC,mBAAmB,CAAC;WAE7B,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,6BAA6B,CAAC,IAAI,CAAC;IAM/F,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,EAC3D,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uCAAuC,CAAC,CAAC,CAAC,EAClD,OAAO,CAAC,EAAE,aAAa,GACtB,6BAA6B,CAAC,OAAO,CAAC;CAY1C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js new file mode 100644 index 0000000000000000000000000000000000000000..cffb647c9a1416ae92c298737c46a8fcc21b94df --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatCompletionStreamingRunner = void 0; +const ChatCompletionStream_1 = require("./ChatCompletionStream.js"); +class ChatCompletionStreamingRunner extends ChatCompletionStream_1.ChatCompletionStream { + static fromReadableStream(stream) { + const runner = new ChatCompletionStreamingRunner(null); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + static runTools(client, params, options) { + const runner = new ChatCompletionStreamingRunner( + // @ts-expect-error TODO these types are incompatible + params); + const opts = { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'runTools' }, + }; + runner._run(() => runner._runTools(client, params, opts)); + return runner; + } +} +exports.ChatCompletionStreamingRunner = ChatCompletionStreamingRunner; +//# sourceMappingURL=ChatCompletionStreamingRunner.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map new file mode 100644 index 0000000000000000000000000000000000000000..707579d77f4cc0bc08909e10512e8349990ee4dc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStreamingRunner.js","sourceRoot":"","sources":["../src/lib/ChatCompletionStreamingRunner.ts"],"names":[],"mappings":";;;AAOA,oEAAsF;AAgBtF,MAAa,6BACX,SAAQ,2CAA6B;IAGrC,MAAM,CAAU,kBAAkB,CAAC,MAAsB;QACvD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,QAAQ,CACb,MAAc,EACd,MAAkD,EAClD,OAAuB;QAEvB,MAAM,MAAM,GAAG,IAAI,6BAA6B;QAC9C,qDAAqD;QACrD,MAAM,CACP,CAAC;QACF,MAAM,IAAI,GAAG;YACX,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE;SAC1E,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA1BD,sEA0BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4a825b815d35a44511f842b44c10f0a0a79ce809 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs @@ -0,0 +1,20 @@ +import { ChatCompletionStream } from "./ChatCompletionStream.mjs"; +export class ChatCompletionStreamingRunner extends ChatCompletionStream { + static fromReadableStream(stream) { + const runner = new ChatCompletionStreamingRunner(null); + runner._run(() => runner._fromReadableStream(stream)); + return runner; + } + static runTools(client, params, options) { + const runner = new ChatCompletionStreamingRunner( + // @ts-expect-error TODO these types are incompatible + params); + const opts = { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'runTools' }, + }; + runner._run(() => runner._runTools(client, params, opts)); + return runner; + } +} +//# sourceMappingURL=ChatCompletionStreamingRunner.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..d28c5cb7aa7f6b2ad97d4a0925c1f0bec64d0481 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatCompletionStreamingRunner.mjs","sourceRoot":"","sources":["../src/lib/ChatCompletionStreamingRunner.ts"],"names":[],"mappings":"OAOO,EAA0B,oBAAoB,EAAE;AAgBvD,MAAM,OAAO,6BACX,SAAQ,oBAA6B;IAGrC,MAAM,CAAU,kBAAkB,CAAC,MAAsB;QACvD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,QAAQ,CACb,MAAc,EACd,MAAkD,EAClD,OAAuB;QAEvB,MAAM,MAAM,GAAG,IAAI,6BAA6B;QAC9C,qDAAqD;QACrD,MAAM,CACP,CAAC;QACF,MAAM,IAAI,GAAG;YACX,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE;SAC1E,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..91bc1b55f7b775cbda7145a35e90727408de8590 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts @@ -0,0 +1,45 @@ +type EventListener = Events[EventType]; +export type EventParameters = { + [Event in EventType]: EventListener extends (...args: infer P) => any ? P : never; +}[EventType]; +export declare class EventEmitter any>> { + #private; + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this, so that calls can be chained + */ + on(event: Event, listener: EventListener): this; + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this, so that calls can be chained + */ + off(event: Event, listener: EventListener): this; + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this, so that calls can be chained + */ + once(event: Event, listener: EventListener): this; + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event: Event): Promise extends [infer Param] ? Param : EventParameters extends [] ? void : EventParameters>; + protected _emit(this: EventEmitter, event: Event, ...args: EventParameters): void; + protected _hasListener(event: keyof EventTypes): boolean; +} +export {}; +//# sourceMappingURL=EventEmitter.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..b70396917e9d4d08e69742b18cdc904c58aed5f2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventEmitter.d.mts","sourceRoot":"","sources":["../src/lib/EventEmitter.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,MAAM,EAAE,SAAS,SAAS,MAAM,MAAM,IAAI,MAAM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EAC9B,KAAK,EAAE,KAAK,EACZ,GAAG,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC;IAS7C,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,UAAU,GAAG,OAAO;CAIzD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9a0530ba5484385b65dfe384d1dc02812b933d37 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts @@ -0,0 +1,45 @@ +type EventListener = Events[EventType]; +export type EventParameters = { + [Event in EventType]: EventListener extends (...args: infer P) => any ? P : never; +}[EventType]; +export declare class EventEmitter any>> { + #private; + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this, so that calls can be chained + */ + on(event: Event, listener: EventListener): this; + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this, so that calls can be chained + */ + off(event: Event, listener: EventListener): this; + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this, so that calls can be chained + */ + once(event: Event, listener: EventListener): this; + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event: Event): Promise extends [infer Param] ? Param : EventParameters extends [] ? void : EventParameters>; + protected _emit(this: EventEmitter, event: Event, ...args: EventParameters): void; + protected _hasListener(event: keyof EventTypes): boolean; +} +export {}; +//# sourceMappingURL=EventEmitter.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..a59e2eb52851b1c69af40bfb8b2323c431dc8e02 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../src/lib/EventEmitter.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,MAAM,EAAE,SAAS,SAAS,MAAM,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;AAO/E,MAAM,MAAM,eAAe,CAAC,MAAM,EAAE,SAAS,SAAS,MAAM,MAAM,IAAI;KACnE,KAAK,IAAI,SAAS,GAAG,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK;CACrG,CAAC,SAAS,CAAC,CAAC;AAEb,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;;IAKhF;;;;;;OAMG;IACH,EAAE,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAOlG;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAQnG;;;;OAIG;IACH,IAAI,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAOpG;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAK,SAAS,MAAM,UAAU,EACpC,KAAK,EAAE,KAAK,GACX,OAAO,CACR,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAC9D,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,GACpD,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,CACrC;IAOD,SAAS,CAAC,KAAK,CAAC,KAAK,SAAS,MAAM,UAAU,EAC5C,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,EAC9B,KAAK,EAAE,KAAK,EACZ,GAAG,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC;IAS7C,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,UAAU,GAAG,OAAO;CAIzD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js new file mode 100644 index 0000000000000000000000000000000000000000..4bd49afa406e5b08329c569a3991000708eb3acc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js @@ -0,0 +1,79 @@ +"use strict"; +var _EventEmitter_listeners; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventEmitter = void 0; +const tslib_1 = require("../internal/tslib.js"); +class EventEmitter { + constructor() { + _EventEmitter_listeners.set(this, {}); + } + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this, so that calls can be chained + */ + on(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = []); + listeners.push({ listener }); + return this; + } + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this, so that calls can be chained + */ + off(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + if (!listeners) + return this; + const index = listeners.findIndex((l) => l.listener === listener); + if (index >= 0) + listeners.splice(index, 1); + return this; + } + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this, so that calls can be chained + */ + once(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = []); + listeners.push({ listener, once: true }); + return this; + } + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event) { + return new Promise((resolve, reject) => { + // TODO: handle errors + this.once(event, resolve); + }); + } + _emit(event, ...args) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + if (listeners) { + tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = listeners.filter((l) => !l.once); + listeners.forEach(({ listener }) => listener(...args)); + } + } + _hasListener(event) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + return listeners && listeners.length > 0; + } +} +exports.EventEmitter = EventEmitter; +_EventEmitter_listeners = new WeakMap(); +//# sourceMappingURL=EventEmitter.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js.map new file mode 100644 index 0000000000000000000000000000000000000000..af6c5578c32f7d4db8642dae506a26ec5128fc3f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../src/lib/EventEmitter.ts"],"names":[],"mappings":";;;;;AAWA,MAAa,YAAY;IAAzB;QACE,kCAEI,EAAE,EAAC;IAmFT,CAAC;IAjFC;;;;;;OAMG;IACH,EAAE,CAAiC,KAAY,EAAE,QAA0C;QACzF,MAAM,SAAS,GACb,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1D,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CAAiC,KAAY,EAAE,QAA0C;QAC1F,MAAM,SAAS,GAAG,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC5B,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;QAClE,IAAI,KAAK,IAAI,CAAC;YAAE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAiC,KAAY,EAAE,QAA0C;QAC3F,MAAM,SAAS,GACb,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1D,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,KAAY;QAMZ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,sBAAsB;YACtB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,OAAc,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;IAES,KAAK,CAEb,KAAY,EACZ,GAAG,IAAwC;QAE3C,MAAM,SAAS,GAAkD,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACxF,IAAI,SAAS,EAAE,CAAC;YACd,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAQ,CAAC;YACjE,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAI,IAAY,CAAC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAES,YAAY,CAAC,KAAuB;QAC5C,MAAM,SAAS,GAAG,+BAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACzC,OAAO,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3C,CAAC;CACF;AAtFD,oCAsFC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c165895aafd12bf7b48efb6a547973b868af5b85 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs @@ -0,0 +1,75 @@ +var _EventEmitter_listeners; +import { __classPrivateFieldGet } from "../internal/tslib.mjs"; +export class EventEmitter { + constructor() { + _EventEmitter_listeners.set(this, {}); + } + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this, so that calls can be chained + */ + on(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] || (__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = []); + listeners.push({ listener }); + return this; + } + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this, so that calls can be chained + */ + off(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + if (!listeners) + return this; + const index = listeners.findIndex((l) => l.listener === listener); + if (index >= 0) + listeners.splice(index, 1); + return this; + } + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this, so that calls can be chained + */ + once(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] || (__classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = []); + listeners.push({ listener, once: true }); + return this; + } + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event) { + return new Promise((resolve, reject) => { + // TODO: handle errors + this.once(event, resolve); + }); + } + _emit(event, ...args) { + const listeners = __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + if (listeners) { + __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event] = listeners.filter((l) => !l.once); + listeners.forEach(({ listener }) => listener(...args)); + } + } + _hasListener(event) { + const listeners = __classPrivateFieldGet(this, _EventEmitter_listeners, "f")[event]; + return listeners && listeners.length > 0; + } +} +_EventEmitter_listeners = new WeakMap(); +//# sourceMappingURL=EventEmitter.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..325c75adcfd21e07bf227b7c33b463385e67e899 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventEmitter.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"EventEmitter.mjs","sourceRoot":"","sources":["../src/lib/EventEmitter.ts"],"names":[],"mappings":";;AAWA,MAAM,OAAO,YAAY;IAAzB;QACE,kCAEI,EAAE,EAAC;IAmFT,CAAC;IAjFC;;;;;;OAMG;IACH,EAAE,CAAiC,KAAY,EAAE,QAA0C;QACzF,MAAM,SAAS,GACb,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1D,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CAAiC,KAAY,EAAE,QAA0C;QAC1F,MAAM,SAAS,GAAG,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC5B,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;QAClE,IAAI,KAAK,IAAI,CAAC;YAAE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAiC,KAAY,EAAE,QAA0C;QAC3F,MAAM,SAAS,GACb,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1D,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,KAAY;QAMZ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,sBAAsB;YACtB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,OAAc,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;IAES,KAAK,CAEb,KAAY,EACZ,GAAG,IAAwC;QAE3C,MAAM,SAAS,GAAkD,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACxF,IAAI,SAAS,EAAE,CAAC;YACd,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAQ,CAAC;YACjE,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAI,IAAY,CAAC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAES,YAAY,CAAC,KAAuB;QAC5C,MAAM,SAAS,GAAG,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,CAAC;QACzC,OAAO,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3C,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..521c102202f4a0910d6361ba9db2e5e92db9167a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts @@ -0,0 +1,62 @@ +import { APIUserAbortError, OpenAIError } from "../error.mjs"; +export declare class EventStream { + #private; + controller: AbortController; + constructor(); + protected _run(this: EventStream, executor: () => Promise): void; + protected _connected(this: EventStream): void; + get ended(): boolean; + get errored(): boolean; + get aborted(): boolean; + abort(): void; + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this ChatCompletionStream, so that calls can be chained + */ + on(event: Event, listener: EventListener): this; + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this ChatCompletionStream, so that calls can be chained + */ + off(event: Event, listener: EventListener): this; + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this ChatCompletionStream, so that calls can be chained + */ + once(event: Event, listener: EventListener): this; + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event: Event): Promise extends [infer Param] ? Param : EventParameters extends [] ? void : EventParameters>; + done(): Promise; + _emit(event: Event, ...args: EventParameters): void; + _emit(event: Event, ...args: EventParameters): void; + protected _emitFinal(): void; +} +type EventListener = Events[EventType]; +export type EventParameters = { + [Event in EventType]: EventListener extends (...args: infer P) => any ? P : never; +}[EventType]; +export interface BaseEvents { + connect: () => void; + error: (error: OpenAIError) => void; + abort: (error: APIUserAbortError) => void; + end: () => void; +} +export {}; +//# sourceMappingURL=EventStream.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..1d29265fb2f8a54d49ac77f169bf961d74bb6182 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventStream.d.mts","sourceRoot":"","sources":["../src/lib/EventStream.ts"],"names":[],"mappings":"OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE;AAEzC,qBAAa,WAAW,CAAC,UAAU,SAAS,UAAU;;IACpD,UAAU,EAAE,eAAe,CAAyB;;IAsCpD,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC;IAW1E,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC;IAMlD,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,KAAK;IAIL;;;;;;OAMG;IACH,EAAE,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAOlG;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAQnG;;;;OAIG;IACH,IAAI,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAOpG;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAK,SAAS,MAAM,UAAU,EACpC,KAAK,EAAE,KAAK,GACX,OAAO,CACR,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAC9D,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,GACpD,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,CACrC;IAQK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B3B,KAAK,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IACtG,KAAK,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAoDtG,SAAS,CAAC,UAAU,IAAI,IAAI;CAC7B;AAED,KAAK,aAAa,CAAC,MAAM,EAAE,SAAS,SAAS,MAAM,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;AAO/E,MAAM,MAAM,eAAe,CAAC,MAAM,EAAE,SAAS,SAAS,MAAM,MAAM,IAAI;KACnE,KAAK,IAAI,SAAS,GAAG,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK;CACrG,CAAC,SAAS,CAAC,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACpC,KAAK,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC1C,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6eccd72225caf8b0ad8bfd55ef13f47e5ee0b74e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts @@ -0,0 +1,62 @@ +import { APIUserAbortError, OpenAIError } from "../error.js"; +export declare class EventStream { + #private; + controller: AbortController; + constructor(); + protected _run(this: EventStream, executor: () => Promise): void; + protected _connected(this: EventStream): void; + get ended(): boolean; + get errored(): boolean; + get aborted(): boolean; + abort(): void; + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this ChatCompletionStream, so that calls can be chained + */ + on(event: Event, listener: EventListener): this; + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this ChatCompletionStream, so that calls can be chained + */ + off(event: Event, listener: EventListener): this; + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this ChatCompletionStream, so that calls can be chained + */ + once(event: Event, listener: EventListener): this; + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event: Event): Promise extends [infer Param] ? Param : EventParameters extends [] ? void : EventParameters>; + done(): Promise; + _emit(event: Event, ...args: EventParameters): void; + _emit(event: Event, ...args: EventParameters): void; + protected _emitFinal(): void; +} +type EventListener = Events[EventType]; +export type EventParameters = { + [Event in EventType]: EventListener extends (...args: infer P) => any ? P : never; +}[EventType]; +export interface BaseEvents { + connect: () => void; + error: (error: OpenAIError) => void; + abort: (error: APIUserAbortError) => void; + end: () => void; +} +export {}; +//# sourceMappingURL=EventStream.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..9ad0f5283ba8e6f3ca4d7a582e6488ea975dd2a9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventStream.d.ts","sourceRoot":"","sources":["../src/lib/EventStream.ts"],"names":[],"mappings":"OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE;AAEzC,qBAAa,WAAW,CAAC,UAAU,SAAS,UAAU;;IACpD,UAAU,EAAE,eAAe,CAAyB;;IAsCpD,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC;IAW1E,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC;IAMlD,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,KAAK;IAIL;;;;;;OAMG;IACH,EAAE,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAOlG;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAQnG;;;;OAIG;IACH,IAAI,CAAC,KAAK,SAAS,MAAM,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI;IAO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\ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.js new file mode 100644 index 0000000000000000000000000000000000000000..888e5a8f3ee79b6c476f03ae5c5b12670987407c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.js @@ -0,0 +1,190 @@ +"use strict"; +var _EventStream_instances, _EventStream_connectedPromise, _EventStream_resolveConnectedPromise, _EventStream_rejectConnectedPromise, _EventStream_endPromise, _EventStream_resolveEndPromise, _EventStream_rejectEndPromise, _EventStream_listeners, _EventStream_ended, _EventStream_errored, _EventStream_aborted, _EventStream_catchingPromiseCreated, _EventStream_handleError; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventStream = void 0; +const tslib_1 = require("../internal/tslib.js"); +const error_1 = require("../error.js"); +class EventStream { + constructor() { + _EventStream_instances.add(this); + this.controller = new AbortController(); + _EventStream_connectedPromise.set(this, void 0); + _EventStream_resolveConnectedPromise.set(this, () => { }); + _EventStream_rejectConnectedPromise.set(this, () => { }); + _EventStream_endPromise.set(this, void 0); + _EventStream_resolveEndPromise.set(this, () => { }); + _EventStream_rejectEndPromise.set(this, () => { }); + _EventStream_listeners.set(this, {}); + _EventStream_ended.set(this, false); + _EventStream_errored.set(this, false); + _EventStream_aborted.set(this, false); + _EventStream_catchingPromiseCreated.set(this, false); + tslib_1.__classPrivateFieldSet(this, _EventStream_connectedPromise, new Promise((resolve, reject) => { + tslib_1.__classPrivateFieldSet(this, _EventStream_resolveConnectedPromise, resolve, "f"); + tslib_1.__classPrivateFieldSet(this, _EventStream_rejectConnectedPromise, reject, "f"); + }), "f"); + tslib_1.__classPrivateFieldSet(this, _EventStream_endPromise, new Promise((resolve, reject) => { + tslib_1.__classPrivateFieldSet(this, _EventStream_resolveEndPromise, resolve, "f"); + tslib_1.__classPrivateFieldSet(this, _EventStream_rejectEndPromise, reject, "f"); + }), "f"); + // Don't let these promises cause unhandled rejection errors. + // we will manually cause an unhandled rejection error later + // if the user hasn't registered any error listener or called + // any promise-returning method. + tslib_1.__classPrivateFieldGet(this, _EventStream_connectedPromise, "f").catch(() => { }); + tslib_1.__classPrivateFieldGet(this, _EventStream_endPromise, "f").catch(() => { }); + } + _run(executor) { + // Unfortunately if we call `executor()` immediately we get runtime errors about + // references to `this` before the `super()` constructor call returns. + setTimeout(() => { + executor().then(() => { + this._emitFinal(); + this._emit('end'); + }, tslib_1.__classPrivateFieldGet(this, _EventStream_instances, "m", _EventStream_handleError).bind(this)); + }, 0); + } + _connected() { + if (this.ended) + return; + tslib_1.__classPrivateFieldGet(this, _EventStream_resolveConnectedPromise, "f").call(this); + this._emit('connect'); + } + get ended() { + return tslib_1.__classPrivateFieldGet(this, _EventStream_ended, "f"); + } + get errored() { + return tslib_1.__classPrivateFieldGet(this, _EventStream_errored, "f"); + } + get aborted() { + return tslib_1.__classPrivateFieldGet(this, _EventStream_aborted, "f"); + } + abort() { + this.controller.abort(); + } + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this ChatCompletionStream, so that calls can be chained + */ + on(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = []); + listeners.push({ listener }); + return this; + } + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this ChatCompletionStream, so that calls can be chained + */ + off(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event]; + if (!listeners) + return this; + const index = listeners.findIndex((l) => l.listener === listener); + if (index >= 0) + listeners.splice(index, 1); + return this; + } + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this ChatCompletionStream, so that calls can be chained + */ + once(event, listener) { + const listeners = tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = []); + listeners.push({ listener, once: true }); + return this; + } + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event) { + return new Promise((resolve, reject) => { + tslib_1.__classPrivateFieldSet(this, _EventStream_catchingPromiseCreated, true, "f"); + if (event !== 'error') + this.once('error', reject); + this.once(event, resolve); + }); + } + async done() { + tslib_1.__classPrivateFieldSet(this, _EventStream_catchingPromiseCreated, true, "f"); + await tslib_1.__classPrivateFieldGet(this, _EventStream_endPromise, "f"); + } + _emit(event, ...args) { + // make sure we don't emit any events after end + if (tslib_1.__classPrivateFieldGet(this, _EventStream_ended, "f")) { + return; + } + if (event === 'end') { + tslib_1.__classPrivateFieldSet(this, _EventStream_ended, true, "f"); + tslib_1.__classPrivateFieldGet(this, _EventStream_resolveEndPromise, "f").call(this); + } + const listeners = tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event]; + if (listeners) { + tslib_1.__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = listeners.filter((l) => !l.once); + listeners.forEach(({ listener }) => listener(...args)); + } + if (event === 'abort') { + const error = args[0]; + if (!tslib_1.__classPrivateFieldGet(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) { + Promise.reject(error); + } + tslib_1.__classPrivateFieldGet(this, _EventStream_rejectConnectedPromise, "f").call(this, error); + tslib_1.__classPrivateFieldGet(this, _EventStream_rejectEndPromise, "f").call(this, error); + this._emit('end'); + return; + } + if (event === 'error') { + // NOTE: _emit('error', error) should only be called from #handleError(). + const error = args[0]; + if (!tslib_1.__classPrivateFieldGet(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) { + // Trigger an unhandled rejection if the user hasn't registered any error handlers. + // If you are seeing stack traces here, make sure to handle errors via either: + // - runner.on('error', () => ...) + // - await runner.done() + // - await runner.finalChatCompletion() + // - etc. + Promise.reject(error); + } + tslib_1.__classPrivateFieldGet(this, _EventStream_rejectConnectedPromise, "f").call(this, error); + tslib_1.__classPrivateFieldGet(this, _EventStream_rejectEndPromise, "f").call(this, error); + this._emit('end'); + } + } + _emitFinal() { } +} +exports.EventStream = EventStream; +_EventStream_connectedPromise = new WeakMap(), _EventStream_resolveConnectedPromise = new WeakMap(), _EventStream_rejectConnectedPromise = new WeakMap(), _EventStream_endPromise = new WeakMap(), _EventStream_resolveEndPromise = new WeakMap(), _EventStream_rejectEndPromise = new WeakMap(), _EventStream_listeners = new WeakMap(), _EventStream_ended = new WeakMap(), _EventStream_errored = new WeakMap(), _EventStream_aborted = new WeakMap(), _EventStream_catchingPromiseCreated = new WeakMap(), _EventStream_instances = new WeakSet(), _EventStream_handleError = function _EventStream_handleError(error) { + tslib_1.__classPrivateFieldSet(this, _EventStream_errored, true, "f"); + if (error instanceof Error && error.name === 'AbortError') { + error = new error_1.APIUserAbortError(); + } + if (error instanceof error_1.APIUserAbortError) { + tslib_1.__classPrivateFieldSet(this, _EventStream_aborted, true, "f"); + return this._emit('abort', error); + } + if (error instanceof error_1.OpenAIError) { + return this._emit('error', error); + } + if (error instanceof Error) { + const openAIError = new error_1.OpenAIError(error.message); + // @ts-ignore + openAIError.cause = error; + return this._emit('error', openAIError); + } + return this._emit('error', new error_1.OpenAIError(String(error))); +}; +//# sourceMappingURL=EventStream.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b9102963b7c2e235a6b06484952bb61d038d2d78 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/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,EAAyB,KAAK,CAAC,CAAC;YACpC,+BAAA,IAAI,qCAAkB,MAAtB,IAAI,EAAmB,KAAK,CAAC,CAAC;YAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IAES,UAAU,KAAU,CAAC;CAChC;AA1ND,kCA0NC;olBA3E6C,KAAc;IACxD,+BAAA,IAAI,wBAAY,IAAI,MAAA,CAAC;IACrB,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QAC1D,KAAK,GAAG,IAAI,yBAAiB,EAAE,CAAC;IAClC,CAAC;IACD,IAAI,KAAK,YAAY,yBAAiB,EAAE,CAAC;QACvC,+BAAA,IAAI,wBAAY,IAAI,MAAA,CAAC;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,KAAK,YAAY,mBAAW,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,MAAM,WAAW,GAAgB,IAAI,mBAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChE,aAAa;QACb,WAAW,CAAC,KAAK,GAAG,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,mBAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs new file mode 100644 index 0000000000000000000000000000000000000000..80d6f661e40e0a73f9a8a705499a55307161afd0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs @@ -0,0 +1,186 @@ +var _EventStream_instances, _EventStream_connectedPromise, _EventStream_resolveConnectedPromise, _EventStream_rejectConnectedPromise, _EventStream_endPromise, _EventStream_resolveEndPromise, _EventStream_rejectEndPromise, _EventStream_listeners, _EventStream_ended, _EventStream_errored, _EventStream_aborted, _EventStream_catchingPromiseCreated, _EventStream_handleError; +import { __classPrivateFieldGet, __classPrivateFieldSet } from "../internal/tslib.mjs"; +import { APIUserAbortError, OpenAIError } from "../error.mjs"; +export class EventStream { + constructor() { + _EventStream_instances.add(this); + this.controller = new AbortController(); + _EventStream_connectedPromise.set(this, void 0); + _EventStream_resolveConnectedPromise.set(this, () => { }); + _EventStream_rejectConnectedPromise.set(this, () => { }); + _EventStream_endPromise.set(this, void 0); + _EventStream_resolveEndPromise.set(this, () => { }); + _EventStream_rejectEndPromise.set(this, () => { }); + _EventStream_listeners.set(this, {}); + _EventStream_ended.set(this, false); + _EventStream_errored.set(this, false); + _EventStream_aborted.set(this, false); + _EventStream_catchingPromiseCreated.set(this, false); + __classPrivateFieldSet(this, _EventStream_connectedPromise, new Promise((resolve, reject) => { + __classPrivateFieldSet(this, _EventStream_resolveConnectedPromise, resolve, "f"); + __classPrivateFieldSet(this, _EventStream_rejectConnectedPromise, reject, "f"); + }), "f"); + __classPrivateFieldSet(this, _EventStream_endPromise, new Promise((resolve, reject) => { + __classPrivateFieldSet(this, _EventStream_resolveEndPromise, resolve, "f"); + __classPrivateFieldSet(this, _EventStream_rejectEndPromise, reject, "f"); + }), "f"); + // Don't let these promises cause unhandled rejection errors. + // we will manually cause an unhandled rejection error later + // if the user hasn't registered any error listener or called + // any promise-returning method. + __classPrivateFieldGet(this, _EventStream_connectedPromise, "f").catch(() => { }); + __classPrivateFieldGet(this, _EventStream_endPromise, "f").catch(() => { }); + } + _run(executor) { + // Unfortunately if we call `executor()` immediately we get runtime errors about + // references to `this` before the `super()` constructor call returns. + setTimeout(() => { + executor().then(() => { + this._emitFinal(); + this._emit('end'); + }, __classPrivateFieldGet(this, _EventStream_instances, "m", _EventStream_handleError).bind(this)); + }, 0); + } + _connected() { + if (this.ended) + return; + __classPrivateFieldGet(this, _EventStream_resolveConnectedPromise, "f").call(this); + this._emit('connect'); + } + get ended() { + return __classPrivateFieldGet(this, _EventStream_ended, "f"); + } + get errored() { + return __classPrivateFieldGet(this, _EventStream_errored, "f"); + } + get aborted() { + return __classPrivateFieldGet(this, _EventStream_aborted, "f"); + } + abort() { + this.controller.abort(); + } + /** + * Adds the listener function to the end of the listeners array for the event. + * No checks are made to see if the listener has already been added. Multiple calls passing + * the same combination of event and listener will result in the listener being added, and + * called, multiple times. + * @returns this ChatCompletionStream, so that calls can be chained + */ + on(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventStream_listeners, "f")[event] || (__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = []); + listeners.push({ listener }); + return this; + } + /** + * Removes the specified listener from the listener array for the event. + * off() will remove, at most, one instance of a listener from the listener array. If any single + * listener has been added multiple times to the listener array for the specified event, then + * off() must be called multiple times to remove each instance. + * @returns this ChatCompletionStream, so that calls can be chained + */ + off(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventStream_listeners, "f")[event]; + if (!listeners) + return this; + const index = listeners.findIndex((l) => l.listener === listener); + if (index >= 0) + listeners.splice(index, 1); + return this; + } + /** + * Adds a one-time listener function for the event. The next time the event is triggered, + * this listener is removed and then invoked. + * @returns this ChatCompletionStream, so that calls can be chained + */ + once(event, listener) { + const listeners = __classPrivateFieldGet(this, _EventStream_listeners, "f")[event] || (__classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = []); + listeners.push({ listener, once: true }); + return this; + } + /** + * This is similar to `.once()`, but returns a Promise that resolves the next time + * the event is triggered, instead of calling a listener callback. + * @returns a Promise that resolves the next time given event is triggered, + * or rejects if an error is emitted. (If you request the 'error' event, + * returns a promise that resolves with the error). + * + * Example: + * + * const message = await stream.emitted('message') // rejects if the stream errors + */ + emitted(event) { + return new Promise((resolve, reject) => { + __classPrivateFieldSet(this, _EventStream_catchingPromiseCreated, true, "f"); + if (event !== 'error') + this.once('error', reject); + this.once(event, resolve); + }); + } + async done() { + __classPrivateFieldSet(this, _EventStream_catchingPromiseCreated, true, "f"); + await __classPrivateFieldGet(this, _EventStream_endPromise, "f"); + } + _emit(event, ...args) { + // make sure we don't emit any events after end + if (__classPrivateFieldGet(this, _EventStream_ended, "f")) { + return; + } + if (event === 'end') { + __classPrivateFieldSet(this, _EventStream_ended, true, "f"); + __classPrivateFieldGet(this, _EventStream_resolveEndPromise, "f").call(this); + } + const listeners = __classPrivateFieldGet(this, _EventStream_listeners, "f")[event]; + if (listeners) { + __classPrivateFieldGet(this, _EventStream_listeners, "f")[event] = listeners.filter((l) => !l.once); + listeners.forEach(({ listener }) => listener(...args)); + } + if (event === 'abort') { + const error = args[0]; + if (!__classPrivateFieldGet(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) { + Promise.reject(error); + } + __classPrivateFieldGet(this, _EventStream_rejectConnectedPromise, "f").call(this, error); + __classPrivateFieldGet(this, _EventStream_rejectEndPromise, "f").call(this, error); + this._emit('end'); + return; + } + if (event === 'error') { + // NOTE: _emit('error', error) should only be called from #handleError(). + const error = args[0]; + if (!__classPrivateFieldGet(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) { + // Trigger an unhandled rejection if the user hasn't registered any error handlers. + // If you are seeing stack traces here, make sure to handle errors via either: + // - runner.on('error', () => ...) + // - await runner.done() + // - await runner.finalChatCompletion() + // - etc. + Promise.reject(error); + } + __classPrivateFieldGet(this, _EventStream_rejectConnectedPromise, "f").call(this, error); + __classPrivateFieldGet(this, _EventStream_rejectEndPromise, "f").call(this, error); + this._emit('end'); + } + } + _emitFinal() { } +} +_EventStream_connectedPromise = new WeakMap(), _EventStream_resolveConnectedPromise = new WeakMap(), _EventStream_rejectConnectedPromise = new WeakMap(), _EventStream_endPromise = new WeakMap(), _EventStream_resolveEndPromise = new WeakMap(), _EventStream_rejectEndPromise = new WeakMap(), _EventStream_listeners = new WeakMap(), _EventStream_ended = new WeakMap(), _EventStream_errored = new WeakMap(), _EventStream_aborted = new WeakMap(), _EventStream_catchingPromiseCreated = new WeakMap(), _EventStream_instances = new WeakSet(), _EventStream_handleError = function _EventStream_handleError(error) { + __classPrivateFieldSet(this, _EventStream_errored, true, "f"); + if (error instanceof Error && error.name === 'AbortError') { + error = new APIUserAbortError(); + } + if (error instanceof APIUserAbortError) { + __classPrivateFieldSet(this, _EventStream_aborted, true, "f"); + return this._emit('abort', error); + } + if (error instanceof OpenAIError) { + return this._emit('error', error); + } + if (error instanceof Error) { + const openAIError = new OpenAIError(error.message); + // @ts-ignore + openAIError.cause = error; + return this._emit('error', openAIError); + } + return this._emit('error', new OpenAIError(String(error))); +}; +//# sourceMappingURL=EventStream.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..14b66ca026b921b15e6200b01c53cdc83d64ed42 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/EventStream.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"EventStream.mjs","sourceRoot":"","sources":["../src/lib/EventStream.ts"],"names":[],"mappings":";;OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE;AAEzC,MAAM,OAAO,WAAW;IAoBtB;;QAnBA,eAAU,GAAoB,IAAI,eAAe,EAAE,CAAC;QAEpD,gDAAiC;QACjC,+CAAuC,GAAG,EAAE,GAAE,CAAC,EAAC;QAChD,8CAAwD,GAAG,EAAE,GAAE,CAAC,EAAC;QAEjE,0CAA2B;QAC3B,yCAAiC,GAAG,EAAE,GAAE,CAAC,EAAC;QAC1C,wCAAkD,GAAG,EAAE,GAAE,CAAC,EAAC;QAE3D,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,EAAE,CAAC;QACvC,uBAAA,IAAI,wBAAY,IAAI,MAAA,CAAC;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,KAAK,YAAY,WAAW,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,MAAM,WAAW,GAAgB,IAAI,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChE,aAAa;QACb,WAAW,CAAC,KAAK,GAAG,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..892e839b59b7b7e17aabf0b00a7f9a525f5ed57d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts @@ -0,0 +1,36 @@ +import type { ChatCompletionTool } from "../resources/chat/completions.mjs"; +import { ResponseTextConfig, type FunctionTool, type ParsedResponse, type Response, type ResponseCreateParamsBase, type ResponseCreateParamsNonStreaming, type ResponseFunctionToolCall, type Tool } from "../resources/responses/responses.mjs"; +import { type AutoParseableTextFormat } from "../lib/parser.mjs"; +export type ParseableToolsParams = Array | ChatCompletionTool | null; +export type ResponseCreateParamsWithTools = ResponseCreateParamsBase & { + tools?: ParseableToolsParams; +}; +type TextConfigParams = { + text?: ResponseTextConfig; +}; +export type ExtractParsedContentFromParams = NonNullable['format'] extends AutoParseableTextFormat ? P : null; +export declare function maybeParseResponse>>(response: Response, params: Params): ParsedResponse; +export declare function parseResponse>(response: Response, params: Params): ParsedResponse; +export declare function hasAutoParseableInput(params: ResponseCreateParamsWithTools): boolean; +type ToolOptions = { + name: string; + arguments: any; + function?: ((args: any) => any) | undefined; +}; +export type AutoParseableResponseTool = FunctionTool & { + __arguments: OptionsT['arguments']; + __name: OptionsT['name']; + $brand: 'auto-parseable-tool'; + $callback: ((args: OptionsT['arguments']) => any) | undefined; + $parseRaw(args: string): OptionsT['arguments']; +}; +export declare function makeParseableResponseTool(tool: FunctionTool, { parser, callback, }: { + parser: (content: string) => OptionsT['arguments']; + callback: ((args: any) => any) | undefined; +}): AutoParseableResponseTool; +export declare function isAutoParsableTool(tool: any): tool is AutoParseableResponseTool; +export declare function shouldParseToolCall(params: ResponseCreateParamsNonStreaming | null | undefined, toolCall: ResponseFunctionToolCall): boolean; +export declare function validateInputTools(tools: ChatCompletionTool[] | undefined): void; +export declare function addOutputText(rsp: Response): void; +export {}; +//# sourceMappingURL=ResponsesParser.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..d9868593d80a06193c41151abf588bc0d763c99e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponsesParser.d.mts","sourceRoot":"","sources":["../src/lib/ResponsesParser.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,kBAAkB,EAAE;OAC3B,EACL,kBAAkB,EAClB,KAAK,YAAY,EAEjB,KAAK,cAAc,EAGnB,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,IAAI,EAC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AC5B,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,QAAQ,GAAG,IAAI,GAAG,KAAK,IAChE,YAAY,GAAG;IACjB,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEzB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC;IAC9D,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,QAAQ,SAAS,WAAW,EACpE,IAAI,EAAE,YAAY,EAClB,EACE,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC;CAC5C,GACA,yBAAyB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAmBlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,yBAAyB,CAAC,GAAG,CAAC,CAEpF;AAwBD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,gCAAgC,GAAG,IAAI,GAAG,SAAS,EAC3D,QAAQ,EAAE,wBAAwB,GACjC,OAAO,CAOT;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,SAAS,QAczE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAejD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..89488440848fee92efa15758230c9fa586c51656 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts @@ -0,0 +1,36 @@ +import type { ChatCompletionTool } from "../resources/chat/completions.js"; +import { ResponseTextConfig, type FunctionTool, type ParsedResponse, type Response, type ResponseCreateParamsBase, type ResponseCreateParamsNonStreaming, type ResponseFunctionToolCall, type Tool } from "../resources/responses/responses.js"; +import { type AutoParseableTextFormat } from "../lib/parser.js"; +export type ParseableToolsParams = Array | ChatCompletionTool | null; +export type ResponseCreateParamsWithTools = ResponseCreateParamsBase & { + tools?: ParseableToolsParams; +}; +type TextConfigParams = { + text?: ResponseTextConfig; +}; +export type ExtractParsedContentFromParams = NonNullable['format'] extends AutoParseableTextFormat ? P : null; +export declare function maybeParseResponse>>(response: Response, params: Params): ParsedResponse; +export declare function parseResponse>(response: Response, params: Params): ParsedResponse; +export declare function hasAutoParseableInput(params: ResponseCreateParamsWithTools): boolean; +type ToolOptions = { + name: string; + arguments: any; + function?: ((args: any) => any) | undefined; +}; +export type AutoParseableResponseTool = FunctionTool & { + __arguments: OptionsT['arguments']; + __name: OptionsT['name']; + $brand: 'auto-parseable-tool'; + $callback: ((args: OptionsT['arguments']) => any) | undefined; + $parseRaw(args: string): OptionsT['arguments']; +}; +export declare function makeParseableResponseTool(tool: FunctionTool, { parser, callback, }: { + parser: (content: string) => OptionsT['arguments']; + callback: ((args: any) => any) | undefined; +}): AutoParseableResponseTool; +export declare function isAutoParsableTool(tool: any): tool is AutoParseableResponseTool; +export declare function shouldParseToolCall(params: ResponseCreateParamsNonStreaming | null | undefined, toolCall: ResponseFunctionToolCall): boolean; +export declare function validateInputTools(tools: ChatCompletionTool[] | undefined): void; +export declare function addOutputText(rsp: Response): void; +export {}; +//# sourceMappingURL=ResponsesParser.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f50cdfb4a4e9536f507211b7802e6e9c43ca464a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponsesParser.d.ts","sourceRoot":"","sources":["../src/lib/ResponsesParser.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,kBAAkB,EAAE;OAC3B,EACL,kBAAkB,EAClB,KAAK,YAAY,EAEjB,KAAK,cAAc,EAGnB,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,IAAI,EACV;OACM,EAAE,KAAK,uBAAuB,EAAgC;AAErE,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,kBAAkB,GAAG,IAAI,CAAC;AAE3E,MAAM,MAAM,6BAA6B,GAAG,wBAAwB,GAAG;IACrE,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF,KAAK,gBAAgB,GAAG;IAAE,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAEtD,MAAM,MAAM,8BAA8B,CAAC,MAAM,SAAS,gBAAgB,IACxE,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,uBAAuB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AAE5F,wBAAgB,kBAAkB,CAChC,MAAM,SAAS,wBAAwB,GAAG,IAAI,EAC9C,OAAO,GAAG,MAAM,SAAS,IAAI,GAAG,IAAI,GAAG,8BAA8B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAC1F,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,CA6B7D;AAED,w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CAAC,CAmBlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,yBAAyB,CAAC,GAAG,CAAC,CAEpF;AAwBD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,gCAAgC,GAAG,IAAI,GAAG,SAAS,EAC3D,QAAQ,EAAE,wBAAwB,GACjC,OAAO,CAOT;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,SAAS,QAczE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAejD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js new file mode 100644 index 0000000000000000000000000000000000000000..a55adfba1b1620f2c178917e457e7cfba331f03b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js @@ -0,0 +1,170 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.maybeParseResponse = maybeParseResponse; +exports.parseResponse = parseResponse; +exports.hasAutoParseableInput = hasAutoParseableInput; +exports.makeParseableResponseTool = makeParseableResponseTool; +exports.isAutoParsableTool = isAutoParsableTool; +exports.shouldParseToolCall = shouldParseToolCall; +exports.validateInputTools = validateInputTools; +exports.addOutputText = addOutputText; +const error_1 = require("../error.js"); +const parser_1 = require("../lib/parser.js"); +function maybeParseResponse(response, params) { + if (!params || !hasAutoParseableInput(params)) { + return { + ...response, + output_parsed: null, + output: response.output.map((item) => { + if (item.type === 'function_call') { + return { + ...item, + parsed_arguments: null, + }; + } + if (item.type === 'message') { + return { + ...item, + content: item.content.map((content) => ({ + ...content, + parsed: null, + })), + }; + } + else { + return item; + } + }), + }; + } + return parseResponse(response, params); +} +function parseResponse(response, params) { + const output = response.output.map((item) => { + if (item.type === 'function_call') { + return { + ...item, + parsed_arguments: parseToolCall(params, item), + }; + } + if (item.type === 'message') { + const content = item.content.map((content) => { + if (content.type === 'output_text') { + return { + ...content, + parsed: parseTextFormat(params, content.text), + }; + } + return content; + }); + return { + ...item, + content, + }; + } + return item; + }); + const parsed = Object.assign({}, response, { output }); + if (!Object.getOwnPropertyDescriptor(response, 'output_text')) { + addOutputText(parsed); + } + Object.defineProperty(parsed, 'output_parsed', { + enumerable: true, + get() { + for (const output of parsed.output) { + if (output.type !== 'message') { + continue; + } + for (const content of output.content) { + if (content.type === 'output_text' && content.parsed !== null) { + return content.parsed; + } + } + } + return null; + }, + }); + return parsed; +} +function parseTextFormat(params, content) { + if (params.text?.format?.type !== 'json_schema') { + return null; + } + if ('$parseRaw' in params.text?.format) { + const text_format = params.text?.format; + return text_format.$parseRaw(content); + } + return JSON.parse(content); +} +function hasAutoParseableInput(params) { + if ((0, parser_1.isAutoParsableResponseFormat)(params.text?.format)) { + return true; + } + return false; +} +function makeParseableResponseTool(tool, { parser, callback, }) { + const obj = { ...tool }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-tool', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + $callback: { + value: callback, + enumerable: false, + }, + }); + return obj; +} +function isAutoParsableTool(tool) { + return tool?.['$brand'] === 'auto-parseable-tool'; +} +function getInputToolByName(input_tools, name) { + return input_tools.find((tool) => tool.type === 'function' && tool.name === name); +} +function parseToolCall(params, toolCall) { + const inputTool = getInputToolByName(params.tools ?? [], toolCall.name); + return { + ...toolCall, + ...toolCall, + parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCall.arguments) + : inputTool?.strict ? JSON.parse(toolCall.arguments) + : null, + }; +} +function shouldParseToolCall(params, toolCall) { + if (!params) { + return false; + } + const inputTool = getInputToolByName(params.tools ?? [], toolCall.name); + return isAutoParsableTool(inputTool) || inputTool?.strict || false; +} +function validateInputTools(tools) { + for (const tool of tools ?? []) { + if (tool.type !== 'function') { + throw new error_1.OpenAIError(`Currently only \`function\` tool types support auto-parsing; Received \`${tool.type}\``); + } + if (tool.function.strict !== true) { + throw new error_1.OpenAIError(`The \`${tool.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`); + } + } +} +function addOutputText(rsp) { + const texts = []; + for (const output of rsp.output) { + if (output.type !== 'message') { + continue; + } + for (const content of output.content) { + if (content.type === 'output_text') { + texts.push(content.text); + } + } + } + rsp.output_text = texts.join(''); +} +//# sourceMappingURL=ResponsesParser.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js.map new file mode 100644 index 0000000000000000000000000000000000000000..6a17da06cc7b92191a4cc625ee93475e92059539 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponsesParser.js","sourceRoot":"","sources":["../src/lib/ResponsesParser.ts"],"names":[],"mappings":";;AA4BA,gDAgCC;AAED,sCA2DC;AAkBD,sDAMC;AAoBD,8DA4BC;AAED,gDAEC;AAwBD,kDAUC;AAED,gDAcC;AAED,sCAeC;AAxQD,uCAAuC;AAevC,6CAA2F;AAa3F,SAAgB,kBAAkB,CAGhC,QAAkB,EAAE,MAAc;IAClC,IAAI,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,OAAO;YACL,GAAG,QAAQ;YACX,aAAa,EAAE,IAAI;YACnB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBACnC,IAAI,IAAI,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;oBAClC,OAAO;wBACL,GAAG,IAAI;wBACP,gBAAgB,EAAE,IAAI;qBACvB,CAAC;gBACJ,CAAC;gBAED,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;oBAC5B,OAAO;wBAC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AE,CAAC,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs new file mode 100644 index 0000000000000000000000000000000000000000..874a88e97f620db762009245454b5f017ebab0ec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs @@ -0,0 +1,160 @@ +import { OpenAIError } from "../error.mjs"; +import { isAutoParsableResponseFormat } from "../lib/parser.mjs"; +export function maybeParseResponse(response, params) { + if (!params || !hasAutoParseableInput(params)) { + return { + ...response, + output_parsed: null, + output: response.output.map((item) => { + if (item.type === 'function_call') { + return { + ...item, + parsed_arguments: null, + }; + } + if (item.type === 'message') { + return { + ...item, + content: item.content.map((content) => ({ + ...content, + parsed: null, + })), + }; + } + else { + return item; + } + }), + }; + } + return parseResponse(response, params); +} +export function parseResponse(response, params) { + const output = response.output.map((item) => { + if (item.type === 'function_call') { + return { + ...item, + parsed_arguments: parseToolCall(params, item), + }; + } + if (item.type === 'message') { + const content = item.content.map((content) => { + if (content.type === 'output_text') { + return { + ...content, + parsed: parseTextFormat(params, content.text), + }; + } + return content; + }); + return { + ...item, + content, + }; + } + return item; + }); + const parsed = Object.assign({}, response, { output }); + if (!Object.getOwnPropertyDescriptor(response, 'output_text')) { + addOutputText(parsed); + } + Object.defineProperty(parsed, 'output_parsed', { + enumerable: true, + get() { + for (const output of parsed.output) { + if (output.type !== 'message') { + continue; + } + for (const content of output.content) { + if (content.type === 'output_text' && content.parsed !== null) { + return content.parsed; + } + } + } + return null; + }, + }); + return parsed; +} +function parseTextFormat(params, content) { + if (params.text?.format?.type !== 'json_schema') { + return null; + } + if ('$parseRaw' in params.text?.format) { + const text_format = params.text?.format; + return text_format.$parseRaw(content); + } + return JSON.parse(content); +} +export function hasAutoParseableInput(params) { + if (isAutoParsableResponseFormat(params.text?.format)) { + return true; + } + return false; +} +export function makeParseableResponseTool(tool, { parser, callback, }) { + const obj = { ...tool }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-tool', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + $callback: { + value: callback, + enumerable: false, + }, + }); + return obj; +} +export function isAutoParsableTool(tool) { + return tool?.['$brand'] === 'auto-parseable-tool'; +} +function getInputToolByName(input_tools, name) { + return input_tools.find((tool) => tool.type === 'function' && tool.name === name); +} +function parseToolCall(params, toolCall) { + const inputTool = getInputToolByName(params.tools ?? [], toolCall.name); + return { + ...toolCall, + ...toolCall, + parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCall.arguments) + : inputTool?.strict ? JSON.parse(toolCall.arguments) + : null, + }; +} +export function shouldParseToolCall(params, toolCall) { + if (!params) { + return false; + } + const inputTool = getInputToolByName(params.tools ?? [], toolCall.name); + return isAutoParsableTool(inputTool) || inputTool?.strict || false; +} +export function validateInputTools(tools) { + for (const tool of tools ?? []) { + if (tool.type !== 'function') { + throw new OpenAIError(`Currently only \`function\` tool types support auto-parsing; Received \`${tool.type}\``); + } + if (tool.function.strict !== true) { + throw new OpenAIError(`The \`${tool.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`); + } + } +} +export function addOutputText(rsp) { + const texts = []; + for (const output of rsp.output) { + if (output.type !== 'message') { + continue; + } + for (const content of output.content) { + if (content.type === 'output_text') { + texts.push(content.text); + } + } + } + rsp.output_text = texts.join(''); +} +//# sourceMappingURL=ResponsesParser.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1459be72972e3d47959098048511019a2165656a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/ResponsesParser.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponsesParser.mj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AAC;YAClC,MAAM,IAAI,WAAW,CACnB,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,4FAA4F,CACxH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAa;IACzC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QAChC,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC9B,SAAS;QACX,CAAC;QAED,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBACnC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;IAED,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..8aafaaf8bb69df408088551bbda8444e944513bb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts @@ -0,0 +1,83 @@ +import { type ChatCompletionRunner } from "./ChatCompletionRunner.mjs"; +import { type ChatCompletionStreamingRunner } from "./ChatCompletionStreamingRunner.mjs"; +import { JSONSchema } from "./jsonschema.mjs"; +type PromiseOrValue = T | Promise; +export type RunnableFunctionWithParse = { + /** + * @param args the return value from `parse`. + * @param runner the runner evaluating this callback. + * @returns a string to send back to OpenAI. + */ + function: (args: Args, runner: ChatCompletionRunner | ChatCompletionStreamingRunner) => PromiseOrValue; + /** + * @param input the raw args from the OpenAI function call. + * @returns the parsed arguments to pass to `function` + */ + parse: (input: string) => PromiseOrValue; + /** + * The parameters the function accepts, describes as a JSON Schema object. + */ + parameters: JSONSchema; + /** + * A description of what the function does, used by the model to choose when and how to call the function. + */ + description: string; + /** + * The name of the function to be called. Will default to function.name if omitted. + */ + name?: string | undefined; + strict?: boolean | undefined; +}; +export type RunnableFunctionWithoutParse = { + /** + * @param args the raw args from the OpenAI function call. + * @returns a string to send back to OpenAI + */ + function: (args: string, runner: ChatCompletionRunner | ChatCompletionStreamingRunner) => PromiseOrValue; + /** + * The parameters the function accepts, describes as a JSON Schema object. + */ + parameters: JSONSchema; + /** + * A description of what the function does, used by the model to choose when and how to call the function. + */ + description: string; + /** + * The name of the function to be called. Will default to function.name if omitted. + */ + name?: string | undefined; + strict?: boolean | undefined; +}; +export type RunnableFunction = Args extends string ? RunnableFunctionWithoutParse : Args extends object ? RunnableFunctionWithParse : never; +export type RunnableToolFunction = Args extends string ? RunnableToolFunctionWithoutParse : Args extends object ? RunnableToolFunctionWithParse : never; +export type RunnableToolFunctionWithoutParse = { + type: 'function'; + function: RunnableFunctionWithoutParse; +}; +export type RunnableToolFunctionWithParse = { + type: 'function'; + function: RunnableFunctionWithParse; +}; +export declare function isRunnableFunctionWithParse(fn: any): fn is RunnableFunctionWithParse; +export type BaseFunctionsArgs = readonly (object | string)[]; +export type RunnableFunctions = [ + any[] +] extends [FunctionsArgs] ? readonly RunnableFunction[] : { + [Index in keyof FunctionsArgs]: Index extends number ? RunnableFunction : FunctionsArgs[Index]; +}; +export type RunnableTools = [ + any[] +] extends [FunctionsArgs] ? readonly RunnableToolFunction[] : { + [Index in keyof FunctionsArgs]: Index extends number ? RunnableToolFunction : FunctionsArgs[Index]; +}; +/** + * This is helper class for passing a `function` and `parse` where the `function` + * argument type matches the `parse` return type. + */ +export declare class ParsingToolFunction { + type: 'function'; + function: RunnableFunctionWithParse; + constructor(input: RunnableFunctionWithParse); +} +export {}; +//# sourceMappingURL=RunnableFunction.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..100e090c7171ab87e6515e961be762183ab147be --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"RunnableFunction.d.mts","sourceRoot":"","sources":["../src/lib/RunnableFunction.ts"],"names":[],"mappings":"OAAO,EAAE,KAAK,oBAAoB,EAAE;OAC7B,EAAE,KAAK,6BAA6B,EAAE;OACtC,EAAE,UAAU,EAAE;AAErB,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,MAAM,yBAAyB,CAAC,IAAI,SAAS,MAAM,IAAI;IAC3D;;;;OAIG;IACH,QAAQ,EAAE,CACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,6BAA6B,CAAC,OAAO,CAAC,KAC3E,cAAc,CAAC,OAAO,CAAC,CAAC;IAC7B;;;OAGG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC;IAC/C;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,6BAA6B,CAAC,OAAO,CAAC,KAC3E,cAAc,CAAC,OAAO,CAAC,CAAC;IAC7B;;OAEG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AgB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC3F,aAAa,CAAC,KAAK,CAAC;CACvB,CAAC;AAEN,MAAM,MAAM,aAAa,CAAC,aAAa,SAAS,iBAAiB,IAC/D;IAAC,GAAG,EAAE;CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,SAAS,oBAAoB,CAAC,GAAG,CAAC,EAAE,GACpE;KACG,KAAK,IAAI,MAAM,aAAa,GAAG,KAAK,SAAS,MAAM,GAAG,oBAAoB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC/F,aAAa,CAAC,KAAK,CAAC;CACvB,CAAC;AAEN;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,IAAI,SAAS,MAAM;IAClD,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;gBAE9B,KAAK,EAAE,yBAAyB,CAAC,IAAI,CAAC;CAInD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3d00d58b122837769a8f554298ca2f6f0c1e025a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts @@ -0,0 +1,83 @@ +import { type ChatCompletionRunner } from "./ChatCompletionRunner.js"; +import { type ChatCompletionStreamingRunner } from "./ChatCompletionStreamingRunner.js"; +import { JSONSchema } from "./jsonschema.js"; +type PromiseOrValue = T | Promise; +export type RunnableFunctionWithParse = { + /** + * @param args the return value from `parse`. + * @param runner the runner evaluating this callback. + * @returns a string to send back to OpenAI. + */ + function: (args: Args, runner: ChatCompletionRunner | ChatCompletionStreamingRunner) => PromiseOrValue; + /** + * @param input the raw args from the OpenAI function call. + * @returns the parsed arguments to pass to `function` + */ + parse: (input: string) => PromiseOrValue; + /** + * The parameters the function accepts, describes as a JSON Schema object. + */ + parameters: JSONSchema; + /** + * A description of what the function does, used by the model to choose when and how to call the function. + */ + description: string; + /** + * The name of the function to be called. Will default to function.name if omitted. + */ + name?: string | undefined; + strict?: boolean | undefined; +}; +export type RunnableFunctionWithoutParse = { + /** + * @param args the raw args from the OpenAI function call. + * @returns a string to send back to OpenAI + */ + function: (args: string, runner: ChatCompletionRunner | ChatCompletionStreamingRunner) => PromiseOrValue; + /** + * The parameters the function accepts, describes as a JSON Schema object. + */ + parameters: JSONSchema; + /** + * A description of what the function does, used by the model to choose when and how to call the function. + */ + description: string; + /** + * The name of the function to be called. Will default to function.name if omitted. + */ + name?: string | undefined; + strict?: boolean | undefined; +}; +export type RunnableFunction = Args extends string ? RunnableFunctionWithoutParse : Args extends object ? RunnableFunctionWithParse : never; +export type RunnableToolFunction = Args extends string ? RunnableToolFunctionWithoutParse : Args extends object ? RunnableToolFunctionWithParse : never; +export type RunnableToolFunctionWithoutParse = { + type: 'function'; + function: RunnableFunctionWithoutParse; +}; +export type RunnableToolFunctionWithParse = { + type: 'function'; + function: RunnableFunctionWithParse; +}; +export declare function isRunnableFunctionWithParse(fn: any): fn is RunnableFunctionWithParse; +export type BaseFunctionsArgs = readonly (object | string)[]; +export type RunnableFunctions = [ + any[] +] extends [FunctionsArgs] ? readonly RunnableFunction[] : { + [Index in keyof FunctionsArgs]: Index extends number ? RunnableFunction : FunctionsArgs[Index]; +}; +export type RunnableTools = [ + any[] +] extends [FunctionsArgs] ? readonly RunnableToolFunction[] : { + [Index in keyof FunctionsArgs]: Index extends number ? RunnableToolFunction : FunctionsArgs[Index]; +}; +/** + * This is helper class for passing a `function` and `parse` where the `function` + * argument type matches the `parse` return type. + */ +export declare class ParsingToolFunction { + type: 'function'; + function: RunnableFunctionWithParse; + constructor(input: RunnableFunctionWithParse); +} +export {}; +//# sourceMappingURL=RunnableFunction.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..02cfa15980de707d34e3e50d00d77d99326f9cdd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RunnableFunction.d.ts","sourceRoot":"","sources":["../src/lib/RunnableFunction.ts"],"names":[],"mappings":"OAAO,EAAE,KAAK,oBAAoB,EAAE;OAC7B,EAAE,KAAK,6BAA6B,EAAE;OACtC,EAAE,UAAU,EAAE;AAErB,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,MAAM,yBAAyB,CAAC,IAAI,SAAS,MAAM,IAAI;IAC3D;;;;OAIG;IACH,QAAQ,EAAE,CACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,6BAA6B,CAAC,OAAO,CAAC,KAC3E,cAAc,CAAC,OAAO,CAAC,CAAC;IAC7B;;;OAGG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC;IAC/C;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,6BAA6B,CAAC,OAAO,CAAC,KAC3E,cAAc,CAAC,OAAO,CAAC,CAAC;IAC7B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH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,aAAa,CAAC,KAAK,CAAC;CACvB,CAAC;AAEN,MAAM,MAAM,aAAa,CAAC,aAAa,SAAS,iBAAiB,IAC/D;IAAC,GAAG,EAAE;CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,SAAS,oBAAoB,CAAC,GAAG,CAAC,EAAE,GACpE;KACG,KAAK,IAAI,MAAM,aAAa,GAAG,KAAK,SAAS,MAAM,GAAG,oBAAoB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC/F,aAAa,CAAC,KAAK,CAAC;CACvB,CAAC;AAEN;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,IAAI,SAAS,MAAM;IAClD,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;gBAE9B,KAAK,EAAE,yBAAyB,CAAC,IAAI,CAAC;CAInD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js new file mode 100644 index 0000000000000000000000000000000000000000..c628bb73124475892f6bb79fb3b83ff8c578f747 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParsingToolFunction = void 0; +exports.isRunnableFunctionWithParse = isRunnableFunctionWithParse; +function isRunnableFunctionWithParse(fn) { + return typeof fn.parse === 'function'; +} +/** + * This is helper class for passing a `function` and `parse` where the `function` + * argument type matches the `parse` return type. + */ +class ParsingToolFunction { + constructor(input) { + this.type = 'function'; + this.function = input; + } +} +exports.ParsingToolFunction = ParsingToolFunction; +//# sourceMappingURL=RunnableFunction.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f354264dd5b2c1be65463366637d72cc4f4b9517 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RunnableFunction.js","sourceRoot":"","sources":["../src/lib/RunnableFunction.ts"],"names":[],"mappings":";;;AA+EA,kEAIC;AAJD,SAAgB,2BAA2B,CACzC,EAAO;IAEP,OAAO,OAAQ,EAAU,CAAC,KAAK,KAAK,UAAU,CAAC;AACjD,CAAC;AAkBD;;;GAGG;AACH,MAAa,mBAAmB;IAI9B,YAAY,KAAsC;QAChD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;CACF;AARD,kDAQC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs new file mode 100644 index 0000000000000000000000000000000000000000..33a0ba258d20c62a9588a3bd7f8701facd60d22f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs @@ -0,0 +1,14 @@ +export function isRunnableFunctionWithParse(fn) { + return typeof fn.parse === 'function'; +} +/** + * This is helper class for passing a `function` and `parse` where the `function` + * argument type matches the `parse` return type. + */ +export class ParsingToolFunction { + constructor(input) { + this.type = 'function'; + this.function = input; + } +} +//# sourceMappingURL=RunnableFunction.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6da32c23990eff9782bdc4f46f014c5c589ff1ef --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/RunnableFunction.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"RunnableFunction.mjs","sourceRoot":"","sources":["../src/lib/RunnableFunction.ts"],"names":[],"mappings":"AA+EA,MAAM,UAAU,2BAA2B,CACzC,EAAO;IAEP,OAAO,OAAQ,EAAU,CAAC,KAAK,KAAK,UAAU,CAAC;AACjD,CAAC;AAkBD;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAI9B,YAAY,KAAsC;QAChD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..c36a20ed21473b29aa5e08357d073898235d4918 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts @@ -0,0 +1,5 @@ +/** + * Like `Promise.allSettled()` but throws an error if any promises are rejected. + */ +export declare const allSettledWithThrow: (promises: Promise[]) => Promise; +//# sourceMappingURL=Util.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..42fda6eb9a2e1bc9e548c9b45855ea6f995ac723 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"Util.d.mts","sourceRoot":"","sources":["../src/lib/Util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,CAAC,EAAE,UAAU,OAAO,CAAC,CAAC,CAAC,EAAE,KAAG,OAAO,CAAC,CAAC,EAAE,CAmBhF,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e68f2b6895bf38c9d9304bef8e6169b63b23c4c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts @@ -0,0 +1,5 @@ +/** + * Like `Promise.allSettled()` but throws an error if any promises are rejected. + */ +export declare const allSettledWithThrow: (promises: Promise[]) => Promise; +//# sourceMappingURL=Util.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..01bb37a26ba819ac19722276dd18ff26b4109f6f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../src/lib/Util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,CAAC,EAAE,UAAU,OAAO,CAAC,CAAC,CAAC,EAAE,KAAG,OAAO,CAAC,CAAC,EAAE,CAmBhF,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js new file mode 100644 index 0000000000000000000000000000000000000000..cf581f7ba2d812ef6d46b17c7c66e130b1a02117 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.allSettledWithThrow = void 0; +/** + * Like `Promise.allSettled()` but throws an error if any promises are rejected. + */ +const allSettledWithThrow = async (promises) => { + const results = await Promise.allSettled(promises); + const rejected = results.filter((result) => result.status === 'rejected'); + if (rejected.length) { + for (const result of rejected) { + console.error(result.reason); + } + throw new Error(`${rejected.length} promise(s) failed - see the above errors`); + } + // Note: TS was complaining about using `.filter().map()` here for some reason + const values = []; + for (const result of results) { + if (result.status === 'fulfilled') { + values.push(result.value); + } + } + return values; +}; +exports.allSettledWithThrow = allSettledWithThrow; +//# sourceMappingURL=Util.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0f114ff358ca51435a9abe405c7c8a410b24793c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Util.js","sourceRoot":"","sources":["../src/lib/Util.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACI,MAAM,mBAAmB,GAAG,KAAK,EAAK,QAAsB,EAAgB,EAAE;IACnF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAmC,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;IAC3G,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,GAAG,QAAQ,CAAC,MAAM,2CAA2C,CAAC,CAAC;IACjF,CAAC;IAED,8EAA8E;IAC9E,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAnBW,QAAA,mBAAmB,uBAmB9B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs new file mode 100644 index 0000000000000000000000000000000000000000..845a138e83a198c3635f5918f38b39d069ee669d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs @@ -0,0 +1,22 @@ +/** + * Like `Promise.allSettled()` but throws an error if any promises are rejected. + */ +export const allSettledWithThrow = async (promises) => { + const results = await Promise.allSettled(promises); + const rejected = results.filter((result) => result.status === 'rejected'); + if (rejected.length) { + for (const result of rejected) { + console.error(result.reason); + } + throw new Error(`${rejected.length} promise(s) failed - see the above errors`); + } + // Note: TS was complaining about using `.filter().map()` here for some reason + const values = []; + for (const result of results) { + if (result.status === 'fulfilled') { + values.push(result.value); + } + } + return values; +}; +//# sourceMappingURL=Util.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c8c2031dc457658dd4b2356fd09c5b79bce0c2fc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/Util.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"Util.mjs","sourceRoot":"","sources":["../src/lib/Util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAK,QAAsB,EAAgB,EAAE;IACnF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAmC,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;IAC3G,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,GAAG,QAAQ,CAAC,MAAM,2CAA2C,CAAC,CAAC;IACjF,CAAC;IAED,8EAA8E;IAC9E,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..26d0e0da79c6bf62ff8c9e965ae192622549dd43 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts @@ -0,0 +1,5 @@ +import { type ChatCompletionAssistantMessageParam, type ChatCompletionMessageParam, type ChatCompletionToolMessageParam } from "../resources.mjs"; +export declare const isAssistantMessage: (message: ChatCompletionMessageParam | null | undefined) => message is ChatCompletionAssistantMessageParam; +export declare const isToolMessage: (message: ChatCompletionMessageParam | null | undefined) => message is ChatCompletionToolMessageParam; +export declare function isPresent(obj: T | null | undefined): obj is T; +//# sourceMappingURL=chatCompletionUtils.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..9654352867b95fbac40fa3c1b3832e5ab8ec1d10 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"chatCompletionUtils.d.mts","sourceRoot":"","sources":["../src/lib/chatCompletionUtils.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACpC;AAED,eAAO,MAAM,kBAAkB,GAC7B,SAAS,0BAA0B,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,IAAI,mCAEb,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,SAAS,0BAA0B,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,IAAI,8BAEb,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,IAAI,CAAC,CAEhE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..19371371ec41f4bd432333c4ec2b99eca1cbd6d4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts @@ -0,0 +1,5 @@ +import { type ChatCompletionAssistantMessageParam, type ChatCompletionMessageParam, type ChatCompletionToolMessageParam } from "../resources.js"; +export declare const isAssistantMessage: (message: ChatCompletionMessageParam | null | undefined) => message is ChatCompletionAssistantMessageParam; +export declare const isToolMessage: (message: ChatCompletionMessageParam | null | undefined) => message is ChatCompletionToolMessageParam; +export declare function isPresent(obj: T | null | undefined): obj is T; +//# sourceMappingURL=chatCompletionUtils.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..56d4b5ddf4eaea1a58eb0e4ea302c77212c008ee --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chatCompletionUtils.d.ts","sourceRoot":"","sources":["../src/lib/chatCompletionUtils.ts"],"names":[],"mappings":"OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACpC;AAED,eAAO,MAAM,kBAAkB,GAC7B,SAAS,0BAA0B,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,IAAI,mCAEb,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,SAAS,0BAA0B,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,IAAI,8BAEb,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,IAAI,CAAC,CAEhE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js new file mode 100644 index 0000000000000000000000000000000000000000..f554aba3b1da9c321bdda57e80ad432d51bcd0e2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isToolMessage = exports.isAssistantMessage = void 0; +exports.isPresent = isPresent; +const isAssistantMessage = (message) => { + return message?.role === 'assistant'; +}; +exports.isAssistantMessage = isAssistantMessage; +const isToolMessage = (message) => { + return message?.role === 'tool'; +}; +exports.isToolMessage = isToolMessage; +function isPresent(obj) { + return obj != null; +} +//# sourceMappingURL=chatCompletionUtils.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1f9874e6e481acd1d26d57856867c0f5dbf4fc3d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chatCompletionUtils.js","sourceRoot":"","sources":["../src/lib/chatCompletionUtils.ts"],"names":[],"mappings":";;;AAkBA,8BAEC;AAdM,MAAM,kBAAkB,GAAG,CAChC,OAAsD,EACN,EAAE;IAClD,OAAO,OAAO,EAAE,IAAI,KAAK,WAAW,CAAC;AACvC,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEK,MAAM,aAAa,GAAG,CAC3B,OAAsD,EACX,EAAE;IAC7C,OAAO,OAAO,EAAE,IAAI,KAAK,MAAM,CAAC;AAClC,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEF,SAAgB,SAAS,CAAI,GAAyB;IACpD,OAAO,GAAG,IAAI,IAAI,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs new file mode 100644 index 0000000000000000000000000000000000000000..84be6372014e3f2d8071c62f9cea1a7e6d7727ee --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs @@ -0,0 +1,10 @@ +export const isAssistantMessage = (message) => { + return message?.role === 'assistant'; +}; +export const isToolMessage = (message) => { + return message?.role === 'tool'; +}; +export function isPresent(obj) { + return obj != null; +} +//# sourceMappingURL=chatCompletionUtils.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6fe97a21b8651c5bf0c413157f4a9cd031cf39dc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/chatCompletionUtils.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"chatCompletionUtils.mjs","sourceRoot":"","sources":["../src/lib/chatCompletionUtils.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,OAAsD,EACN,EAAE;IAClD,OAAO,OAAO,EAAE,IAAI,KAAK,WAAW,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,OAAsD,EACX,EAAE;IAC7C,OAAO,OAAO,EAAE,IAAI,KAAK,MAAM,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,UAAU,SAAS,CAAI,GAAyB;IACpD,OAAO,GAAG,IAAI,IAAI,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..8f27e7718ba79344794733088decf1e16e14a5c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts @@ -0,0 +1,106 @@ +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchemaTypeName = ({} & string) | 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null'; +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchemaType = string | number | boolean | JSONSchemaObject | JSONSchemaArray | null; +export interface JSONSchemaObject { + [key: string]: JSONSchemaType; +} +export interface JSONSchemaArray extends Array { +} +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-07/schema#' + * - 'http://json-schema.org/draft-07/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchemaVersion = string; +/** + * JSON Schema v7 + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 + */ +export type JSONSchemaDefinition = JSONSchema | boolean; +export interface JSONSchema { + $id?: string | undefined; + $comment?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1 + */ + type?: JSONSchemaTypeName | JSONSchemaTypeName[] | undefined; + enum?: JSONSchemaType[] | undefined; + const?: JSONSchemaType | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2 + */ + multipleOf?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3 + */ + maxLength?: number | undefined; + minLength?: number | undefined; + pattern?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4 + */ + items?: JSONSchemaDefinition | JSONSchemaDefinition[] | undefined; + additionalItems?: JSONSchemaDefinition | undefined; + maxItems?: number | undefined; + minItems?: number | undefined; + uniqueItems?: boolean | undefined; + contains?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5 + */ + maxProperties?: number | undefined; + minProperties?: number | undefined; + required?: string[] | undefined; + properties?: { + [key: string]: JSONSchemaDefinition; + } | undefined; + patternProperties?: { + [key: string]: JSONSchemaDefinition; + } | undefined; + additionalProperties?: JSONSchemaDefinition | undefined; + propertyNames?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6 + */ + if?: JSONSchemaDefinition | undefined; + then?: JSONSchemaDefinition | undefined; + else?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7 + */ + allOf?: JSONSchemaDefinition[] | undefined; + anyOf?: JSONSchemaDefinition[] | undefined; + oneOf?: JSONSchemaDefinition[] | undefined; + not?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7 + */ + format?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10 + */ + title?: string | undefined; + description?: string | undefined; + default?: JSONSchemaType | undefined; + readOnly?: boolean | undefined; + writeOnly?: boolean | undefined; + examples?: JSONSchemaType | undefined; +} +//# sourceMappingURL=jsonschema.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f023c8789048513c1e6743011b717d65c8b3ea78 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"jsonschema.d.mts","sourceRoot":"","sources":["../src/lib/jsonschema.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,CAAC,EAAE,GAAG,MAAM,CAAC,GACb,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,QAAQ,GACR,OAAO,GACP,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,MAAM,GACN,OAAO,GACP,gBAAgB,GAChB,eAAe,GACf,IAAI,CAAC;AAGT,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC/B;AAID,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC;CAAG;AAEjE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC;;;GAGG;AACH,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QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EACP;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;KACrC,GACD,SAAS,CAAC;IACd,iBAAiB,CAAC,EACd;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;KACrC,GACD,SAAS,CAAC;IACd,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxD,aAAa,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEjD;;OAEG;IACH,EAAE,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACtC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAC3C,GAAG,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CACvC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0a569e988ccd6a70cf18e659d3410ef0a2160ffc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts @@ -0,0 +1,106 @@ +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchemaTypeName = ({} & string) | 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null'; +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchemaType = string | number | boolean | JSONSchemaObject | JSONSchemaArray | null; +export interface JSONSchemaObject { + [key: string]: JSONSchemaType; +} +export interface JSONSchemaArray extends Array { +} +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-07/schema#' + * - 'http://json-schema.org/draft-07/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchemaVersion = string; +/** + * JSON Schema v7 + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 + */ +export type JSONSchemaDefinition = JSONSchema | boolean; +export interface JSONSchema { + $id?: string | undefined; + $comment?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1 + */ + type?: JSONSchemaTypeName | JSONSchemaTypeName[] | undefined; + enum?: JSONSchemaType[] | undefined; + const?: JSONSchemaType | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2 + */ + multipleOf?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3 + */ + maxLength?: number | undefined; + minLength?: number | undefined; + pattern?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4 + */ + items?: JSONSchemaDefinition | JSONSchemaDefinition[] | undefined; + additionalItems?: JSONSchemaDefinition | undefined; + maxItems?: number | undefined; + minItems?: number | undefined; + uniqueItems?: boolean | undefined; + contains?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5 + */ + maxProperties?: number | undefined; + minProperties?: number | undefined; + required?: string[] | undefined; + properties?: { + [key: string]: JSONSchemaDefinition; + } | undefined; + patternProperties?: { + [key: string]: JSONSchemaDefinition; + } | undefined; + additionalProperties?: JSONSchemaDefinition | undefined; + propertyNames?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6 + */ + if?: JSONSchemaDefinition | undefined; + then?: JSONSchemaDefinition | undefined; + else?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7 + */ + allOf?: JSONSchemaDefinition[] | undefined; + anyOf?: JSONSchemaDefinition[] | undefined; + oneOf?: JSONSchemaDefinition[] | undefined; + not?: JSONSchemaDefinition | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7 + */ + format?: string | undefined; + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10 + */ + title?: string | undefined; + description?: string | undefined; + default?: JSONSchemaType | undefined; + readOnly?: boolean | undefined; + writeOnly?: boolean | undefined; + examples?: JSONSchemaType | undefined; +} +//# sourceMappingURL=jsonschema.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6e5c62320e76bfd2bb89d1ac464717d649f69848 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"jsonsch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AAE,GAAG,SAAS,CAAC;IAC3C,GAAG,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CACvC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js new file mode 100644 index 0000000000000000000000000000000000000000..bf2a34ee44823c32fb7b0920d0560672d50b8c21 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js @@ -0,0 +1,11 @@ +"use strict"; +// File mostly copied from @types/json-schema, but stripped down a bit for brevity +// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/817274f3280152ba2929a6067c93df8b34c4c9aa/types/json-schema/index.d.ts +// +// ================================================================================================== +// JSON Schema Draft 07 +// ================================================================================================== +// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 +// -------------------------------------------------------------------------------------------------- +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=jsonschema.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js.map new file mode 100644 index 0000000000000000000000000000000000000000..30d08a7f5061e96fe4bb3ea72ce44e108a419e38 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jsonschema.js","sourceRoot":"","sources":["../src/lib/jsonschema.ts"],"names":[],"mappings":";AAAA,kFAAkF;AAClF,gIAAgI;AAChI,EAAE;AACF,qGAAqG;AACrG,uBAAuB;AACvB,qGAAqG;AACrG,uEAAuE;AACvE,qGAAqG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs new file mode 100644 index 0000000000000000000000000000000000000000..047481bc9fa71e2139df2d7ea80f0b01268c9428 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs @@ -0,0 +1,10 @@ +// File mostly copied from @types/json-schema, but stripped down a bit for brevity +// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/817274f3280152ba2929a6067c93df8b34c4c9aa/types/json-schema/index.d.ts +// +// ================================================================================================== +// JSON Schema Draft 07 +// ================================================================================================== +// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 +// -------------------------------------------------------------------------------------------------- +export {}; +//# sourceMappingURL=jsonschema.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4603e805e95e94107a60537c2b2f92f8431f732d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/jsonschema.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"jsonschema.mjs","sourceRoot":"","sources":["../src/lib/jsonschema.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,gIAAgI;AAChI,EAAE;AACF,qGAAqG;AACrG,uBAAuB;AACvB,qGAAqG;AACrG,uEAAuE;AACvE,qGAAqG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..70146ee0efd648057d60990d388d28f9af44d8e2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts @@ -0,0 +1,47 @@ +import { ChatCompletion, ChatCompletionCreateParams, ChatCompletionCreateParamsBase, ChatCompletionFunctionTool, ChatCompletionMessage, ChatCompletionMessageFunctionToolCall, ChatCompletionStreamingToolRunnerParams, ChatCompletionStreamParams, ChatCompletionToolRunnerParams, ParsedChatCompletion } from "../resources/chat/completions.mjs"; +import { type ResponseFormatTextJSONSchemaConfig } from "../resources/responses/responses.mjs"; +import { ResponseFormatJSONSchema } from "../resources/shared.mjs"; +type AnyChatCompletionCreateParams = ChatCompletionCreateParams | ChatCompletionToolRunnerParams | ChatCompletionStreamingToolRunnerParams | ChatCompletionStreamParams; +type Unpacked = T extends (infer U)[] ? U : T; +type ToolCall = Unpacked; +export declare function isChatCompletionFunctionTool(tool: ToolCall): tool is ChatCompletionFunctionTool; +export type ExtractParsedContentFromParams = Params['response_format'] extends AutoParseableResponseFormat ? P : null; +export type AutoParseableResponseFormat = ResponseFormatJSONSchema & { + __output: ParsedT; + $brand: 'auto-parseable-response-format'; + $parseRaw(content: string): ParsedT; +}; +export declare function makeParseableResponseFormat(response_format: ResponseFormatJSONSchema, parser: (content: string) => ParsedT): AutoParseableResponseFormat; +export type AutoParseableTextFormat = ResponseFormatTextJSONSchemaConfig & { + __output: ParsedT; + $brand: 'auto-parseable-response-format'; + $parseRaw(content: string): ParsedT; +}; +export declare function makeParseableTextFormat(response_format: ResponseFormatTextJSONSchemaConfig, parser: (content: string) => ParsedT): AutoParseableTextFormat; +export declare function isAutoParsableResponseFormat(response_format: any): response_format is AutoParseableResponseFormat; +type ToolOptions = { + name: string; + arguments: any; + function?: ((args: any) => any) | undefined; +}; +export type AutoParseableTool = ChatCompletionFunctionTool & { + __arguments: OptionsT['arguments']; + __name: OptionsT['name']; + __hasFunction: HasFunction; + $brand: 'auto-parseable-tool'; + $callback: ((args: OptionsT['arguments']) => any) | undefined; + $parseRaw(args: string): OptionsT['arguments']; +}; +export declare function makeParseableTool(tool: ChatCompletionFunctionTool, { parser, callback, }: { + parser: (content: string) => OptionsT['arguments']; + callback: ((args: any) => any) | undefined; +}): AutoParseableTool; +export declare function isAutoParsableTool(tool: any): tool is AutoParseableTool; +export declare function maybeParseChatCompletion>>(completion: ChatCompletion, params: Params): ParsedChatCompletion; +export declare function parseChatCompletion>(completion: ChatCompletion, params: Params): ParsedChatCompletion; +export declare function shouldParseToolCall(params: ChatCompletionCreateParams | null | undefined, toolCall: ChatCompletionMessageFunctionToolCall): boolean; +export declare function hasAutoParseableInput(params: AnyChatCompletionCreateParams): boolean; +export declare function assertToolCallsAreChatCompletionFunctionToolCalls(toolCalls: ChatCompletionMessage['tool_calls']): asserts toolCalls is ChatCompletionMessageFunctionToolCall[]; +export declare function validateInputTools(tools: ChatCompletionCreateParamsBase['tools']): void; +export {}; +//# sourceMappingURL=parser.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..4b9429867e1970857b93a57d45f6a6ea81098e32 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.mts","sourceRoot":"","sources":["../src/lib/parser.ts"],"names":[],"mappings":"OACO,EACL,cAAc,EACd,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,qBAAqB,EACrB,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,EAC1B,8BAA8B,EAC9B,oBAAoB,EAGrB;OACM,EAAE,KAAK,kCAAkC,EAAE;OAC3C,EAAE,wBAAwB,EAAE;AAEnC,KAAK,6BAA6B,GAC9B,0BAA0B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AAwB,CACtC,MAAM,SAAS,0BAA0B,GAAG,IAAI,EAChD,OAAO,GAAG,MAAM,SAAS,IAAI,GAAG,IAAI,GAAG,8BAA8B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAC1F,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAwB3E;AAED,wBAAgB,mBAAmB,CACjC,MAAM,SAAS,0BAA0B,EACzC,OAAO,GAAG,8BAA8B,CAAC,MAAM,CAAC,EAChD,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,oBAAoB,CAAC,OAAO,CAAC,CA+B3E;AA2CD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,EACrD,QAAQ,EAAE,qCAAqC,GAC9C,OAAO,CAaT;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAUpF;AAED,wBAAgB,iDAAiD,CAC/D,SAAS,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC7C,OAAO,CAAC,SAAS,IAAI,qCAAqC,EAAE,CAQ9D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,8BAA8B,CAAC,OAAO,CAAC,QAchF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..875464410e835115ab977634f276a4fef8c43239 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts @@ -0,0 +1,47 @@ +import { ChatCompletion, ChatCompletionCreateParams, ChatCompletionCreateParamsBase, ChatCompletionFunctionTool, ChatCompletionMessage, ChatCompletionMessageFunctionToolCall, ChatCompletionStreamingToolRunnerParams, ChatCompletionStreamParams, ChatCompletionToolRunnerParams, ParsedChatCompletion } from "../resources/chat/completions.js"; +import { type ResponseFormatTextJSONSchemaConfig } from "../resources/responses/responses.js"; +import { ResponseFormatJSONSchema } from "../resources/shared.js"; +type AnyChatCompletionCreateParams = ChatCompletionCreateParams | ChatCompletionToolRunnerParams | ChatCompletionStreamingToolRunnerParams | ChatCompletionStreamParams; +type Unpacked = T extends (infer U)[] ? U : T; +type ToolCall = Unpacked; +export declare function isChatCompletionFunctionTool(tool: ToolCall): tool is ChatCompletionFunctionTool; +export type ExtractParsedContentFromParams = Params['response_format'] extends AutoParseableResponseFormat ? P : null; +export type AutoParseableResponseFormat = ResponseFormatJSONSchema & { + __output: ParsedT; + $brand: 'auto-parseable-response-format'; + $parseRaw(content: string): ParsedT; +}; +export declare function makeParseableResponseFormat(response_format: ResponseFormatJSONSchema, parser: (content: string) => ParsedT): AutoParseableResponseFormat; +export type AutoParseableTextFormat = ResponseFormatTextJSONSchemaConfig & { + __output: ParsedT; + $brand: 'auto-parseable-response-format'; + $parseRaw(content: string): ParsedT; +}; +export declare function makeParseableTextFormat(response_format: ResponseFormatTextJSONSchemaConfig, parser: (content: string) => ParsedT): AutoParseableTextFormat; +export declare function isAutoParsableResponseFormat(response_format: any): response_format is AutoParseableResponseFormat; +type ToolOptions = { + name: string; + arguments: any; + function?: ((args: any) => any) | undefined; +}; +export type AutoParseableTool = ChatCompletionFunctionTool & { + __arguments: OptionsT['arguments']; + __name: OptionsT['name']; + __hasFunction: HasFunction; + $brand: 'auto-parseable-tool'; + $callback: ((args: OptionsT['arguments']) => any) | undefined; + $parseRaw(args: string): OptionsT['arguments']; +}; +export declare function makeParseableTool(tool: ChatCompletionFunctionTool, { parser, callback, }: { + parser: (content: string) => OptionsT['arguments']; + callback: ((args: any) => any) | undefined; +}): AutoParseableTool; +export declare function isAutoParsableTool(tool: any): tool is AutoParseableTool; +export declare function maybeParseChatCompletion>>(completion: ChatCompletion, params: Params): ParsedChatCompletion; +export declare function parseChatCompletion>(completion: ChatCompletion, params: Params): ParsedChatCompletion; +export declare function shouldParseToolCall(params: ChatCompletionCreateParams | null | undefined, toolCall: ChatCompletionMessageFunctionToolCall): boolean; +export declare function hasAutoParseableInput(params: AnyChatCompletionCreateParams): boolean; +export declare function assertToolCallsAreChatCompletionFunctionToolCalls(toolCalls: ChatCompletionMessage['tool_calls']): asserts toolCalls is ChatCompletionMessageFunctionToolCall[]; +export declare function validateInputTools(tools: ChatCompletionCreateParamsBase['tools']): void; +export {}; +//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..3213f8c857c7d917e20be1f5dcfed62154d4cab9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/lib/parser.ts"],"names":[],"mappings":"OACO,EACL,cAAc,EACd,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,qBAAqB,EACrB,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,EAC1B,8BAA8B,EAC9B,oBAAoB,EAGrB;OACM,EAAE,KAAK,kCAAkC,EAAE;OAC3C,EAAE,wBAAwB,EAAE;AAEnC,KAAK,6BAA6B,GAC9B,0BAA0B,GAC1B,8BAA8B,CAAC,GAAG,CAAC,GACnC,uCAAuC,CAAC,GAAG,CAAC,GAC5C,0BAA0B,CAAC;AAE/B,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,KAAK,QAAQ,GAAG,QAAQ,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC,CAAC;AAElE,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,IAAI,0BAA0B,CAE/F;AAED,MAAM,M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M,GAAG,oBAAoB,CAAC,OAAO,CAAC,CA+B3E;AA2CD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,EACrD,QAAQ,EAAE,qCAAqC,GAC9C,OAAO,CAaT;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAUpF;AAED,wBAAgB,iDAAiD,CAC/D,SAAS,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC7C,OAAO,CAAC,SAAS,IAAI,qCAAqC,EAAE,CAQ9D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,8BAA8B,CAAC,OAAO,CAAC,QAchF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js new file mode 100644 index 0000000000000000000000000000000000000000..3d517b7ca20bae3d933d12166e35a23c65d89384 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js @@ -0,0 +1,176 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isChatCompletionFunctionTool = isChatCompletionFunctionTool; +exports.makeParseableResponseFormat = makeParseableResponseFormat; +exports.makeParseableTextFormat = makeParseableTextFormat; +exports.isAutoParsableResponseFormat = isAutoParsableResponseFormat; +exports.makeParseableTool = makeParseableTool; +exports.isAutoParsableTool = isAutoParsableTool; +exports.maybeParseChatCompletion = maybeParseChatCompletion; +exports.parseChatCompletion = parseChatCompletion; +exports.shouldParseToolCall = shouldParseToolCall; +exports.hasAutoParseableInput = hasAutoParseableInput; +exports.assertToolCallsAreChatCompletionFunctionToolCalls = assertToolCallsAreChatCompletionFunctionToolCalls; +exports.validateInputTools = validateInputTools; +const error_1 = require("../error.js"); +function isChatCompletionFunctionTool(tool) { + return tool !== undefined && 'function' in tool && tool.function !== undefined; +} +function makeParseableResponseFormat(response_format, parser) { + const obj = { ...response_format }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-response-format', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + }); + return obj; +} +function makeParseableTextFormat(response_format, parser) { + const obj = { ...response_format }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-response-format', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + }); + return obj; +} +function isAutoParsableResponseFormat(response_format) { + return response_format?.['$brand'] === 'auto-parseable-response-format'; +} +function makeParseableTool(tool, { parser, callback, }) { + const obj = { ...tool }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-tool', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + $callback: { + value: callback, + enumerable: false, + }, + }); + return obj; +} +function isAutoParsableTool(tool) { + return tool?.['$brand'] === 'auto-parseable-tool'; +} +function maybeParseChatCompletion(completion, params) { + if (!params || !hasAutoParseableInput(params)) { + return { + ...completion, + choices: completion.choices.map((choice) => { + assertToolCallsAreChatCompletionFunctionToolCalls(choice.message.tool_calls); + return { + ...choice, + message: { + ...choice.message, + parsed: null, + ...(choice.message.tool_calls ? + { + tool_calls: choice.message.tool_calls, + } + : undefined), + }, + }; + }), + }; + } + return parseChatCompletion(completion, params); +} +function parseChatCompletion(completion, params) { + const choices = completion.choices.map((choice) => { + if (choice.finish_reason === 'length') { + throw new error_1.LengthFinishReasonError(); + } + if (choice.finish_reason === 'content_filter') { + throw new error_1.ContentFilterFinishReasonError(); + } + assertToolCallsAreChatCompletionFunctionToolCalls(choice.message.tool_calls); + return { + ...choice, + message: { + ...choice.message, + ...(choice.message.tool_calls ? + { + tool_calls: choice.message.tool_calls?.map((toolCall) => parseToolCall(params, toolCall)) ?? undefined, + } + : undefined), + parsed: choice.message.content && !choice.message.refusal ? + parseResponseFormat(params, choice.message.content) + : null, + }, + }; + }); + return { ...completion, choices }; +} +function parseResponseFormat(params, content) { + if (params.response_format?.type !== 'json_schema') { + return null; + } + if (params.response_format?.type === 'json_schema') { + if ('$parseRaw' in params.response_format) { + const response_format = params.response_format; + return response_format.$parseRaw(content); + } + return JSON.parse(content); + } + return null; +} +function parseToolCall(params, toolCall) { + const inputTool = params.tools?.find((inputTool) => isChatCompletionFunctionTool(inputTool) && inputTool.function?.name === toolCall.function.name); // TS doesn't narrow based on isChatCompletionTool + return { + ...toolCall, + function: { + ...toolCall.function, + parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCall.function.arguments) + : inputTool?.function.strict ? JSON.parse(toolCall.function.arguments) + : null, + }, + }; +} +function shouldParseToolCall(params, toolCall) { + if (!params || !('tools' in params) || !params.tools) { + return false; + } + const inputTool = params.tools?.find((inputTool) => isChatCompletionFunctionTool(inputTool) && inputTool.function?.name === toolCall.function.name); + return (isChatCompletionFunctionTool(inputTool) && + (isAutoParsableTool(inputTool) || inputTool?.function.strict || false)); +} +function hasAutoParseableInput(params) { + if (isAutoParsableResponseFormat(params.response_format)) { + return true; + } + return (params.tools?.some((t) => isAutoParsableTool(t) || (t.type === 'function' && t.function.strict === true)) ?? false); +} +function assertToolCallsAreChatCompletionFunctionToolCalls(toolCalls) { + for (const toolCall of toolCalls || []) { + if (toolCall.type !== 'function') { + throw new error_1.OpenAIError(`Currently only \`function\` tool calls are supported; Received \`${toolCall.type}\``); + } + } +} +function validateInputTools(tools) { + for (const tool of tools ?? []) { + if (tool.type !== 'function') { + throw new error_1.OpenAIError(`Currently only \`function\` tool types support auto-parsing; Received \`${tool.type}\``); + } + if (tool.function.strict !== true) { + throw new error_1.OpenAIError(`The \`${tool.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`); + } + } +} +//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js.map new file mode 100644 index 0000000000000000000000000000000000000000..16a37d07f217d7993e2aa76c4b7ecf1dc3a20ca8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/lib/parser.ts"],"names":[],"mappings":";;AA4BA,oEAEC;AAYD,kEAkBC;AASD,0DAkBC;AAED,oEAIC;AAqBD,8CA4BC;AAED,gDAEC;AAED,4DA2BC;AAED,kDAkCC;AA2CD,kDAgBC;AAED,sDAUC;AAED,8GAUC;AAED,gDAcC;AAtTD,uCAAgG;AA4BhG,SAAgB,4BAA4B,CAAC,IAAc;IACzD,OAAO,IAAI,KAAK,SAAS,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC;AACjF,CAAC;AAYD,SAAgB,2BAA2B,CACzC,eAAyC,EACzC,MAAoC;IAEpC,MAAM,GAAG,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;IAEnC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE;QAC3B,MAAM,EAAE;YACN,KAAK,EAAE,gCAAgC;YACvC,UAAU,EAAE,KAAK;SAClB;QACD,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,KAAK;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,GAA2C,CAAC;AACrD,CAAC;AASD,SAAgB,uBAAuB,CACrC,eAAmD,EACnD,MAAoC;IAEpC,MAAM,GAAG,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;IAEnC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE;QAC3B,MAAM,EAAE;YACN,KAAK,EAAE,gCAAgC;YACvC,UAAU,EAAE,KAAK;SAClB;QACD,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,KAAK;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,GAAuC,CAAC;AACjD,CAAC;AAED,SAAgB,4BAA4B,CAC1C,eAAoB;IAEpB,OAAO,eAAe,EAAE,CAAC,QAAQ,CAAC,KAAK,gCAAgC,CA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EAAE,CAAC;YAClC,MAAM,IAAI,mBAAW,CACnB,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,4FAA4F,CACxH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs new file mode 100644 index 0000000000000000000000000000000000000000..34f698f9babab3b26070c1a7e0847621d0caea06 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs @@ -0,0 +1,162 @@ +import { ContentFilterFinishReasonError, LengthFinishReasonError, OpenAIError } from "../error.mjs"; +export function isChatCompletionFunctionTool(tool) { + return tool !== undefined && 'function' in tool && tool.function !== undefined; +} +export function makeParseableResponseFormat(response_format, parser) { + const obj = { ...response_format }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-response-format', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + }); + return obj; +} +export function makeParseableTextFormat(response_format, parser) { + const obj = { ...response_format }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-response-format', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + }); + return obj; +} +export function isAutoParsableResponseFormat(response_format) { + return response_format?.['$brand'] === 'auto-parseable-response-format'; +} +export function makeParseableTool(tool, { parser, callback, }) { + const obj = { ...tool }; + Object.defineProperties(obj, { + $brand: { + value: 'auto-parseable-tool', + enumerable: false, + }, + $parseRaw: { + value: parser, + enumerable: false, + }, + $callback: { + value: callback, + enumerable: false, + }, + }); + return obj; +} +export function isAutoParsableTool(tool) { + return tool?.['$brand'] === 'auto-parseable-tool'; +} +export function maybeParseChatCompletion(completion, params) { + if (!params || !hasAutoParseableInput(params)) { + return { + ...completion, + choices: completion.choices.map((choice) => { + assertToolCallsAreChatCompletionFunctionToolCalls(choice.message.tool_calls); + return { + ...choice, + message: { + ...choice.message, + parsed: null, + ...(choice.message.tool_calls ? + { + tool_calls: choice.message.tool_calls, + } + : undefined), + }, + }; + }), + }; + } + return parseChatCompletion(completion, params); +} +export function parseChatCompletion(completion, params) { + const choices = completion.choices.map((choice) => { + if (choice.finish_reason === 'length') { + throw new LengthFinishReasonError(); + } + if (choice.finish_reason === 'content_filter') { + throw new ContentFilterFinishReasonError(); + } + assertToolCallsAreChatCompletionFunctionToolCalls(choice.message.tool_calls); + return { + ...choice, + message: { + ...choice.message, + ...(choice.message.tool_calls ? + { + tool_calls: choice.message.tool_calls?.map((toolCall) => parseToolCall(params, toolCall)) ?? undefined, + } + : undefined), + parsed: choice.message.content && !choice.message.refusal ? + parseResponseFormat(params, choice.message.content) + : null, + }, + }; + }); + return { ...completion, choices }; +} +function parseResponseFormat(params, content) { + if (params.response_format?.type !== 'json_schema') { + return null; + } + if (params.response_format?.type === 'json_schema') { + if ('$parseRaw' in params.response_format) { + const response_format = params.response_format; + return response_format.$parseRaw(content); + } + return JSON.parse(content); + } + return null; +} +function parseToolCall(params, toolCall) { + const inputTool = params.tools?.find((inputTool) => isChatCompletionFunctionTool(inputTool) && inputTool.function?.name === toolCall.function.name); // TS doesn't narrow based on isChatCompletionTool + return { + ...toolCall, + function: { + ...toolCall.function, + parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCall.function.arguments) + : inputTool?.function.strict ? JSON.parse(toolCall.function.arguments) + : null, + }, + }; +} +export function shouldParseToolCall(params, toolCall) { + if (!params || !('tools' in params) || !params.tools) { + return false; + } + const inputTool = params.tools?.find((inputTool) => isChatCompletionFunctionTool(inputTool) && inputTool.function?.name === toolCall.function.name); + return (isChatCompletionFunctionTool(inputTool) && + (isAutoParsableTool(inputTool) || inputTool?.function.strict || false)); +} +export function hasAutoParseableInput(params) { + if (isAutoParsableResponseFormat(params.response_format)) { + return true; + } + return (params.tools?.some((t) => isAutoParsableTool(t) || (t.type === 'function' && t.function.strict === true)) ?? false); +} +export function assertToolCallsAreChatCompletionFunctionToolCalls(toolCalls) { + for (const toolCall of toolCalls || []) { + if (toolCall.type !== 'function') { + throw new OpenAIError(`Currently only \`function\` tool calls are supported; Received \`${toolCall.type}\``); + } + } +} +export function validateInputTools(tools) { + for (const tool of tools ?? []) { + if (tool.type !== 'function') { + throw new OpenAIError(`Currently only \`function\` tool types support auto-parsing; Received \`${tool.type}\``); + } + if (tool.function.strict !== true) { + throw new OpenAIError(`The \`${tool.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`); + } + } +} +//# sourceMappingURL=parser.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..14cf96bc93bd6a4a062c4f6b5443b7be5d549ee5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/parser.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.mjs","sourceRoot":"","sources":["../src/lib/parser.ts"],"names":[],"mappings":"OAAO,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,WAAW,EAAE;AA4B/E,MAAM,UAAU,4BAA4B,CAAC,IAAc;IACzD,OAAO,IAAI,KAAK,SAAS,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC;AACjF,CAAC;AAYD,MAAM,UAAU,2BAA2B,CACzC,eAAyC,EACzC,MAAoC;IAEpC,MAAM,GAAG,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;IAEnC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE;QAC3B,MAAM,EAAE;YACN,KAAK,EAAE,gCAAgC;YACvC,UAAU,EAAE,KAAK;SAClB;QACD,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,KAAK;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,GAA2C,CAAC;AACrD,CAAC;AASD,MAAM,U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,EAAE,CAAC;QACvC,IAAI,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACjC,MAAM,IAAI,WAAW,CACnB,oEAAoE,QAAQ,CAAC,IAAI,IAAI,CACtF,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAA8C;IAC/E,KAAK,MAAM,IAAI,IAAI,KAAK,IAAI,EAAE,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC7B,MAAM,IAAI,WAAW,CACnB,2EAA2E,IAAI,CAAC,IAAI,IAAI,CACzF,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,WAAW,CACnB,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,4FAA4F,CACxH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..68b3e09e33ab57eb20206da71d153f61c30bd045 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts @@ -0,0 +1,9 @@ +import { ResponseAudioDeltaEvent, ResponseAudioDoneEvent, ResponseAudioTranscriptDeltaEvent, ResponseAudioTranscriptDoneEvent, ResponseCodeInterpreterCallCodeDeltaEvent, ResponseCodeInterpreterCallCodeDoneEvent, ResponseCodeInterpreterCallCompletedEvent, ResponseCodeInterpreterCallInProgressEvent, ResponseCodeInterpreterCallInterpretingEvent, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreatedEvent, ResponseErrorEvent, ResponseFailedEvent, ResponseFileSearchCallCompletedEvent, ResponseFileSearchCallInProgressEvent, ResponseFileSearchCallSearchingEvent, ResponseFunctionCallArgumentsDeltaEvent as RawResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseInProgressEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseRefusalDeltaEvent, ResponseRefusalDoneEvent, ResponseTextDeltaEvent as RawResponseTextDeltaEvent, ResponseTextDoneEvent, ResponseIncompleteEvent, ResponseWebSearchCallCompletedEvent, ResponseWebSearchCallInProgressEvent, ResponseWebSearchCallSearchingEvent } from "../../resources/responses/responses.mjs"; +export type ResponseFunctionCallArgumentsDeltaEvent = RawResponseFunctionCallArgumentsDeltaEvent & { + snapshot: string; +}; +export type ResponseTextDeltaEvent = RawResponseTextDeltaEvent & { + snapshot: string; +}; +export type ParsedResponseStreamEvent = ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseCodeInterpreterCallCodeDeltaEvent | ResponseCodeInterpreterCallCodeDoneEvent | ResponseCodeInterpreterCallCompletedEvent | ResponseCodeInterpreterCallInProgressEvent | ResponseCodeInterpreterCallInterpretingEvent | ResponseCompletedEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFileSearchCallCompletedEvent | ResponseFileSearchCallInProgressEvent | ResponseFileSearchCallSearchingEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseInProgressEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | ResponseWebSearchCallCompletedEvent | ResponseWebSearchCallInProgressEvent | ResponseWebSearchCallSearchingEvent; +//# sourceMappingURL=EventTypes.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..e62d82bf954a0aed69528efd984d6383d7b56e69 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventTypes.d.mts","sourceRoot":"","sources":["../../src/lib/responses/EventTypes.ts"],"names":[],"mappings":"OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,iCAAiC,EACjC,gCAAgC,EAChC,yCAAyC,EACzC,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,EAC1C,4CAA4C,EAC5C,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oCAAoC,EACpC,qCAAqC,EACrC,oCAAoC,EACpC,uCAAuC,IAAI,0CAA0C,EACrF,sCAAsC,EACtC,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,IAAI,yBAAyB,EACnD,qBAAqB,EACrB,uBAAuB,EACvB,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACpC;AAED,MAAM,MAAM,uCAAuC,GAAG,0CAA0C,GAAG;IACjG,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAAG;IAC/D,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,uBAAuB,GACvB,sBAAsB,GACtB,iCAAiC,GACjC,gCAAgC,GAChC,yCAAyC,GACzC,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,4CAA4C,GAC5C,sBAAsB,GACtB,6BAA6B,GAC7B,4BAA4B,GAC5B,oBAAoB,GACpB,kBAAkB,GAClB,oCAAoC,GACpC,qCAAqC,GACrC,oCAAoC,GACpC,uCAAuC,GACvC,sCAAsC,GACtC,uBAAuB,GACvB,mBAAmB,GACnB,uBAAuB,GACvB,4BAA4B,GAC5B,2BAA2B,GAC3B,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,qBAAqB,GACrB,mCAAmC,GACnC,oCAAoC,GACpC,mCAAmC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8ed3fbb0255802759d92ecd7938e0344c457b43c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts @@ -0,0 +1,9 @@ +import { ResponseAudioDeltaEvent, ResponseAudioDoneEvent, ResponseAudioTranscriptDeltaEvent, ResponseAudioTranscriptDoneEvent, ResponseCodeInterpreterCallCodeDeltaEvent, ResponseCodeInterpreterCallCodeDoneEvent, ResponseCodeInterpreterCallCompletedEvent, ResponseCodeInterpreterCallInProgressEvent, ResponseCodeInterpreterCallInterpretingEvent, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreatedEvent, ResponseErrorEvent, ResponseFailedEvent, ResponseFileSearchCallCompletedEvent, ResponseFileSearchCallInProgressEvent, ResponseFileSearchCallSearchingEvent, ResponseFunctionCallArgumentsDeltaEvent as RawResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseInProgressEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseRefusalDeltaEvent, ResponseRefusalDoneEvent, ResponseTextDeltaEvent as RawResponseTextDeltaEvent, ResponseTextDoneEvent, ResponseIncompleteEvent, ResponseWebSearchCallCompletedEvent, ResponseWebSearchCallInProgressEvent, ResponseWebSearchCallSearchingEvent } from "../../resources/responses/responses.js"; +export type ResponseFunctionCallArgumentsDeltaEvent = RawResponseFunctionCallArgumentsDeltaEvent & { + snapshot: string; +}; +export type ResponseTextDeltaEvent = RawResponseTextDeltaEvent & { + snapshot: string; +}; +export type ParsedResponseStreamEvent = ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseCodeInterpreterCallCodeDeltaEvent | ResponseCodeInterpreterCallCodeDoneEvent | ResponseCodeInterpreterCallCompletedEvent | ResponseCodeInterpreterCallInProgressEvent | ResponseCodeInterpreterCallInterpretingEvent | ResponseCompletedEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFileSearchCallCompletedEvent | ResponseFileSearchCallInProgressEvent | ResponseFileSearchCallSearchingEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseInProgressEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | ResponseWebSearchCallCompletedEvent | ResponseWebSearchCallInProgressEvent | ResponseWebSearchCallSearchingEvent; +//# sourceMappingURL=EventTypes.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2f79b588b5eeffdb6ac60e8bb05396597fad32af --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventTypes.d.ts","sourceRoot":"","sources":["../../src/lib/responses/EventTypes.ts"],"names":[],"mappings":"OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,iCAAiC,EACjC,gCAAgC,EAChC,yCAAyC,EACzC,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,EAC1C,4CAA4C,EAC5C,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oCAAoC,EACpC,qCAAqC,EACrC,oCAAoC,EACpC,uCAAuC,IAAI,0CAA0C,EACrF,sCAAsC,EACtC,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,IAAI,yBAAyB,EACnD,qBAAqB,EACrB,uBAAuB,EACvB,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACpC;AAED,MAAM,MAAM,uCAAuC,GAAG,0CAA0C,GAAG;IACjG,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAAG;IAC/D,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,uBAAuB,GACvB,sBAAsB,GACtB,iCAAiC,GACjC,gCAAgC,GAChC,yCAAyC,GACzC,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,4CAA4C,GAC5C,sBAAsB,GACtB,6BAA6B,GAC7B,4BAA4B,GAC5B,oBAAoB,GACpB,kBAAkB,GAClB,oCAAoC,GACpC,qCAAqC,GACrC,oCAAoC,GACpC,uCAAuC,GACvC,sCAAsC,GACtC,uBAAuB,GACvB,mBAAmB,GACnB,uBAAuB,GACvB,4BAA4B,GAC5B,2BAA2B,GAC3B,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,qBAAqB,GACrB,mCAAmC,GACnC,oCAAoC,GACpC,mCAAmC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js new file mode 100644 index 0000000000000000000000000000000000000000..42d8b1bf918e85d50b66422fd998cef88cc7e444 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=EventTypes.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js.map new file mode 100644 index 0000000000000000000000000000000000000000..aff625e09764de1ff5a3594be48d7f7b51993e6d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../src/lib/responses/EventTypes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs new file mode 100644 index 0000000000000000000000000000000000000000..69ea4d704426afb46a3eae0d57a3c3dae324d19c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=EventTypes.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9cd5996e8da570b301922b5e69c5d346fda5c7ce --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/EventTypes.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"EventTypes.mjs","sourceRoot":"","sources":["../../src/lib/responses/EventTypes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..fd73f5a1d397e06a85ef0133573b20b31750fd65 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts @@ -0,0 +1,59 @@ +import { ResponseTextConfig, type ParsedResponse, type ResponseCreateParamsBase, type ResponseStreamEvent } from "../../resources/responses/responses.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +import OpenAI from "../../index.mjs"; +import { type BaseEvents, EventStream } from "../EventStream.mjs"; +import { type ResponseFunctionCallArgumentsDeltaEvent, type ResponseTextDeltaEvent } from "./EventTypes.mjs"; +import { ParseableToolsParams } from "../ResponsesParser.mjs"; +export type ResponseStreamParams = ResponseCreateAndStreamParams | ResponseStreamByIdParams; +export type ResponseCreateAndStreamParams = Omit & { + stream?: true; +}; +export type ResponseStreamByIdParams = { + /** + * The ID of the response to stream. + */ + response_id: string; + /** + * If provided, the stream will start after the event with the given sequence number. + */ + starting_after?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * An array of tools the model may call while generating a response. When continuing a stream, provide + * the same tools as the original request. + */ + tools?: ParseableToolsParams; +}; +type ResponseEvents = BaseEvents & Omit<{ + [K in ResponseStreamEvent['type']]: (event: Extract) => void; +}, 'response.output_text.delta' | 'response.function_call_arguments.delta'> & { + event: (event: ResponseStreamEvent) => void; + 'response.output_text.delta': (event: ResponseTextDeltaEvent) => void; + 'response.function_call_arguments.delta': (event: ResponseFunctionCallArgumentsDeltaEvent) => void; +}; +export type ResponseStreamingParams = Omit & { + stream?: true; +}; +export declare class ResponseStream extends EventStream implements AsyncIterable { + #private; + constructor(params: ResponseStreamingParams | null); + static createResponse(client: OpenAI, params: ResponseStreamParams, options?: RequestOptions): ResponseStream; + protected _createOrRetrieveResponse(client: OpenAI, params: ResponseStreamParams, options?: RequestOptions): Promise>; + [Symbol.asyncIterator](this: ResponseStream): AsyncIterator; + /** + * @returns a promise that resolves with the final Response, or rejects + * if an error occurred or the stream ended prematurely without producing a REsponse. + */ + finalResponse(): Promise>; +} +export {}; +//# sourceMappingURL=ResponseStream.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..df07a0622d40e36dab2523d0dd0f14bfd8e10623 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponseStream.d.mts","sourceRoot":"","sources":["../../src/lib/responses/ResponseStream.ts"],"names":[],"mappings":"OAAO,EACL,kBAAkB,EAClB,KAAK,cAAc,EAEnB,KAAK,wBAAwB,EAE7B,KAAK,mBAAmB,EACzB;OACM,EAAE,cAAc,EAAE;OAElB,MAAM;OACN,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OAChC,EAAE,KAAK,uCAAuC,EAAE,KAAK,sBAAsB,EAAE;OAC7E,EAAsB,oBAAoB,EAAE;AAGnD,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,GAAG,wBAAwB,CAAC;AAE5F,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GAAG;IACrF,MAAM,CAAC,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB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aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;CAMxD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0b846ddcb201938b7a579ece69c1f6c7dee60298 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts @@ -0,0 +1,59 @@ +import { ResponseTextConfig, type ParsedResponse, type ResponseCreateParamsBase, type ResponseStreamEvent } from "../../resources/responses/responses.js"; +import { RequestOptions } from "../../internal/request-options.js"; +import OpenAI from "../../index.js"; +import { type BaseEvents, EventStream } from "../EventStream.js"; +import { type ResponseFunctionCallArgumentsDeltaEvent, type ResponseTextDeltaEvent } from "./EventTypes.js"; +import { ParseableToolsParams } from "../ResponsesParser.js"; +export type ResponseStreamParams = ResponseCreateAndStreamParams | ResponseStreamByIdParams; +export type ResponseCreateAndStreamParams = Omit & { + stream?: true; +}; +export type ResponseStreamByIdParams = { + /** + * The ID of the response to stream. + */ + response_id: string; + /** + * If provided, the stream will start after the event with the given sequence number. + */ + starting_after?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * An array of tools the model may call while generating a response. When continuing a stream, provide + * the same tools as the original request. + */ + tools?: ParseableToolsParams; +}; +type ResponseEvents = BaseEvents & Omit<{ + [K in ResponseStreamEvent['type']]: (event: Extract) => void; +}, 'response.output_text.delta' | 'response.function_call_arguments.delta'> & { + event: (event: ResponseStreamEvent) => void; + 'response.output_text.delta': (event: ResponseTextDeltaEvent) => void; + 'response.function_call_arguments.delta': (event: ResponseFunctionCallArgumentsDeltaEvent) => void; +}; +export type ResponseStreamingParams = Omit & { + stream?: true; +}; +export declare class ResponseStream extends EventStream implements AsyncIterable { + #private; + constructor(params: ResponseStreamingParams | null); + static createResponse(client: OpenAI, params: ResponseStreamParams, options?: RequestOptions): ResponseStream; + protected _createOrRetrieveResponse(client: OpenAI, params: ResponseStreamParams, options?: RequestOptions): Promise>; + [Symbol.asyncIterator](this: ResponseStream): AsyncIterator; + /** + * @returns a promise that resolves with the final Response, or rejects + * if an error occurred or the stream ended prematurely without producing a REsponse. + */ + finalResponse(): Promise>; +} +export {}; +//# sourceMappingURL=ResponseStream.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..c4dd2236582f99c95f3c7f38cde3feaf5b2fc6dd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponseStream.d.ts","sourceRoot":"","sources":["../../src/lib/responses/ResponseStream.ts"],"names":[],"mappings":"OAAO,EACL,kBAAkB,EAClB,KAAK,cAAc,EAEnB,KAAK,wBAAwB,EAE7B,KAAK,mBAAmB,EACzB;OACM,EAAE,cAAc,EAAE;OAElB,MAAM;OACN,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OAChC,EAAE,KAAK,uCAAuC,EAAE,KAAK,sBAAsB,EAAE;OAC7E,EAAsB,oBAAoB,EAAE;AAGnD,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,GAAG,wBAAwB,CAAC;AAE5F,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GAAG;IACrF,MAAM,CAAC,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CA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AC,CAAC,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,mBAAmB,CAAC;IA6DzF;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;CAMxD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js new file mode 100644 index 0000000000000000000000000000000000000000..0c9e6541438294c024b2308c80d0a5afc2614127 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js @@ -0,0 +1,240 @@ +"use strict"; +var _ResponseStream_instances, _ResponseStream_params, _ResponseStream_currentResponseSnapshot, _ResponseStream_finalResponse, _ResponseStream_beginRequest, _ResponseStream_addEvent, _ResponseStream_endRequest, _ResponseStream_accumulateResponse; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResponseStream = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const error_1 = require("../../error.js"); +const EventStream_1 = require("../EventStream.js"); +const ResponsesParser_1 = require("../ResponsesParser.js"); +class ResponseStream extends EventStream_1.EventStream { + constructor(params) { + super(); + _ResponseStream_instances.add(this); + _ResponseStream_params.set(this, void 0); + _ResponseStream_currentResponseSnapshot.set(this, void 0); + _ResponseStream_finalResponse.set(this, void 0); + tslib_1.__classPrivateFieldSet(this, _ResponseStream_params, params, "f"); + } + static createResponse(client, params, options) { + const runner = new ResponseStream(params); + runner._run(() => runner._createOrRetrieveResponse(client, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + async _createOrRetrieveResponse(client, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + tslib_1.__classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_beginRequest).call(this); + let stream; + let starting_after = null; + if ('response_id' in params) { + stream = await client.responses.retrieve(params.response_id, { stream: true }, { ...options, signal: this.controller.signal, stream: true }); + starting_after = params.starting_after ?? null; + } + else { + stream = await client.responses.create({ ...params, stream: true }, { ...options, signal: this.controller.signal }); + } + this._connected(); + for await (const event of stream) { + tslib_1.__classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_addEvent).call(this, event, starting_after); + } + if (stream.controller.signal?.aborted) { + throw new error_1.APIUserAbortError(); + } + return tslib_1.__classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_endRequest).call(this); + } + [(_ResponseStream_params = new WeakMap(), _ResponseStream_currentResponseSnapshot = new WeakMap(), _ResponseStream_finalResponse = new WeakMap(), _ResponseStream_instances = new WeakSet(), _ResponseStream_beginRequest = function _ResponseStream_beginRequest() { + if (this.ended) + return; + tslib_1.__classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, undefined, "f"); + }, _ResponseStream_addEvent = function _ResponseStream_addEvent(event, starting_after) { + if (this.ended) + return; + const maybeEmit = (name, event) => { + if (starting_after == null || event.sequence_number > starting_after) { + this._emit(name, event); + } + }; + const response = tslib_1.__classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_accumulateResponse).call(this, event); + maybeEmit('event', event); + switch (event.type) { + case 'response.output_text.delta': { + const output = response.output[event.output_index]; + if (!output) { + throw new error_1.OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + const content = output.content[event.content_index]; + if (!content) { + throw new error_1.OpenAIError(`missing content at index ${event.content_index}`); + } + if (content.type !== 'output_text') { + throw new error_1.OpenAIError(`expected content to be 'output_text', got ${content.type}`); + } + maybeEmit('response.output_text.delta', { + ...event, + snapshot: content.text, + }); + } + break; + } + case 'response.function_call_arguments.delta': { + const output = response.output[event.output_index]; + if (!output) { + throw new error_1.OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'function_call') { + maybeEmit('response.function_call_arguments.delta', { + ...event, + snapshot: output.arguments, + }); + } + break; + } + default: + maybeEmit(event.type, event); + break; + } + }, _ResponseStream_endRequest = function _ResponseStream_endRequest() { + if (this.ended) { + throw new error_1.OpenAIError(`stream has ended, this shouldn't happen`); + } + const snapshot = tslib_1.__classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); + if (!snapshot) { + throw new error_1.OpenAIError(`request ended without sending any events`); + } + tslib_1.__classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, undefined, "f"); + const parsedResponse = finalizeResponse(snapshot, tslib_1.__classPrivateFieldGet(this, _ResponseStream_params, "f")); + tslib_1.__classPrivateFieldSet(this, _ResponseStream_finalResponse, parsedResponse, "f"); + return parsedResponse; + }, _ResponseStream_accumulateResponse = function _ResponseStream_accumulateResponse(event) { + let snapshot = tslib_1.__classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); + if (!snapshot) { + if (event.type !== 'response.created') { + throw new error_1.OpenAIError(`When snapshot hasn't been set yet, expected 'response.created' event, got ${event.type}`); + } + snapshot = tslib_1.__classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); + return snapshot; + } + switch (event.type) { + case 'response.output_item.added': { + snapshot.output.push(event.item); + break; + } + case 'response.content_part.added': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new error_1.OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + output.content.push(event.part); + } + break; + } + case 'response.output_text.delta': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new error_1.OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + const content = output.content[event.content_index]; + if (!content) { + throw new error_1.OpenAIError(`missing content at index ${event.content_index}`); + } + if (content.type !== 'output_text') { + throw new error_1.OpenAIError(`expected content to be 'output_text', got ${content.type}`); + } + content.text += event.delta; + } + break; + } + case 'response.function_call_arguments.delta': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new error_1.OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'function_call') { + output.arguments += event.delta; + } + break; + } + case 'response.completed': { + tslib_1.__classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); + break; + } + } + return snapshot; + }, Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + this.on('event', (event) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(event); + } + else { + pushQueue.push(event); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((event) => (event ? { value: event, done: false } : { value: undefined, done: true })); + } + const event = pushQueue.shift(); + return { value: event, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + /** + * @returns a promise that resolves with the final Response, or rejects + * if an error occurred or the stream ended prematurely without producing a REsponse. + */ + async finalResponse() { + await this.done(); + const response = tslib_1.__classPrivateFieldGet(this, _ResponseStream_finalResponse, "f"); + if (!response) + throw new error_1.OpenAIError('stream ended without producing a ChatCompletion'); + return response; + } +} +exports.ResponseStream = ResponseStream; +function finalizeResponse(snapshot, params) { + return (0, ResponsesParser_1.maybeParseResponse)(snapshot, params); +} +//# sourceMappingURL=ResponseStream.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js.map new file mode 100644 index 0000000000000000000000000000000000000000..58bec0781519571c632089aa3284179dd3278523 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponseStream.js","sourceRoot":"","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,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YACvC,CAAC;YACD,MAAM,EAAE,KAAK,IAAI,EAAE;gBACjB,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC1C,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,MAAM,QAAQ,GAAG,+BAAA,IAAI,qCAAe,CAAC;QACrC,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,mBAAW,CAAC,iDAAiD,CAAC,CAAC;QACxF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAjRD,wCAiRC;AAED,SAAS,gBAAgB,CACvB,QAAkB,EAClB,MAAsC;IAEtC,OAAO,IAAA,oCAAkB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs new file mode 100644 index 0000000000000000000000000000000000000000..dbcf5c890e41645eae1b428fa354c9f789ab6f93 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs @@ -0,0 +1,236 @@ +var _ResponseStream_instances, _ResponseStream_params, _ResponseStream_currentResponseSnapshot, _ResponseStream_finalResponse, _ResponseStream_beginRequest, _ResponseStream_addEvent, _ResponseStream_endRequest, _ResponseStream_accumulateResponse; +import { __classPrivateFieldGet, __classPrivateFieldSet } from "../../internal/tslib.mjs"; +import { APIUserAbortError, OpenAIError } from "../../error.mjs"; +import { EventStream } from "../EventStream.mjs"; +import { maybeParseResponse } from "../ResponsesParser.mjs"; +export class ResponseStream extends EventStream { + constructor(params) { + super(); + _ResponseStream_instances.add(this); + _ResponseStream_params.set(this, void 0); + _ResponseStream_currentResponseSnapshot.set(this, void 0); + _ResponseStream_finalResponse.set(this, void 0); + __classPrivateFieldSet(this, _ResponseStream_params, params, "f"); + } + static createResponse(client, params, options) { + const runner = new ResponseStream(params); + runner._run(() => runner._createOrRetrieveResponse(client, params, { + ...options, + headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' }, + })); + return runner; + } + async _createOrRetrieveResponse(client, params, options) { + const signal = options?.signal; + if (signal) { + if (signal.aborted) + this.controller.abort(); + signal.addEventListener('abort', () => this.controller.abort()); + } + __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_beginRequest).call(this); + let stream; + let starting_after = null; + if ('response_id' in params) { + stream = await client.responses.retrieve(params.response_id, { stream: true }, { ...options, signal: this.controller.signal, stream: true }); + starting_after = params.starting_after ?? null; + } + else { + stream = await client.responses.create({ ...params, stream: true }, { ...options, signal: this.controller.signal }); + } + this._connected(); + for await (const event of stream) { + __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_addEvent).call(this, event, starting_after); + } + if (stream.controller.signal?.aborted) { + throw new APIUserAbortError(); + } + return __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_endRequest).call(this); + } + [(_ResponseStream_params = new WeakMap(), _ResponseStream_currentResponseSnapshot = new WeakMap(), _ResponseStream_finalResponse = new WeakMap(), _ResponseStream_instances = new WeakSet(), _ResponseStream_beginRequest = function _ResponseStream_beginRequest() { + if (this.ended) + return; + __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, undefined, "f"); + }, _ResponseStream_addEvent = function _ResponseStream_addEvent(event, starting_after) { + if (this.ended) + return; + const maybeEmit = (name, event) => { + if (starting_after == null || event.sequence_number > starting_after) { + this._emit(name, event); + } + }; + const response = __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_accumulateResponse).call(this, event); + maybeEmit('event', event); + switch (event.type) { + case 'response.output_text.delta': { + const output = response.output[event.output_index]; + if (!output) { + throw new OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + const content = output.content[event.content_index]; + if (!content) { + throw new OpenAIError(`missing content at index ${event.content_index}`); + } + if (content.type !== 'output_text') { + throw new OpenAIError(`expected content to be 'output_text', got ${content.type}`); + } + maybeEmit('response.output_text.delta', { + ...event, + snapshot: content.text, + }); + } + break; + } + case 'response.function_call_arguments.delta': { + const output = response.output[event.output_index]; + if (!output) { + throw new OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'function_call') { + maybeEmit('response.function_call_arguments.delta', { + ...event, + snapshot: output.arguments, + }); + } + break; + } + default: + maybeEmit(event.type, event); + break; + } + }, _ResponseStream_endRequest = function _ResponseStream_endRequest() { + if (this.ended) { + throw new OpenAIError(`stream has ended, this shouldn't happen`); + } + const snapshot = __classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); + if (!snapshot) { + throw new OpenAIError(`request ended without sending any events`); + } + __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, undefined, "f"); + const parsedResponse = finalizeResponse(snapshot, __classPrivateFieldGet(this, _ResponseStream_params, "f")); + __classPrivateFieldSet(this, _ResponseStream_finalResponse, parsedResponse, "f"); + return parsedResponse; + }, _ResponseStream_accumulateResponse = function _ResponseStream_accumulateResponse(event) { + let snapshot = __classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); + if (!snapshot) { + if (event.type !== 'response.created') { + throw new OpenAIError(`When snapshot hasn't been set yet, expected 'response.created' event, got ${event.type}`); + } + snapshot = __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); + return snapshot; + } + switch (event.type) { + case 'response.output_item.added': { + snapshot.output.push(event.item); + break; + } + case 'response.content_part.added': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + output.content.push(event.part); + } + break; + } + case 'response.output_text.delta': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'message') { + const content = output.content[event.content_index]; + if (!content) { + throw new OpenAIError(`missing content at index ${event.content_index}`); + } + if (content.type !== 'output_text') { + throw new OpenAIError(`expected content to be 'output_text', got ${content.type}`); + } + content.text += event.delta; + } + break; + } + case 'response.function_call_arguments.delta': { + const output = snapshot.output[event.output_index]; + if (!output) { + throw new OpenAIError(`missing output at index ${event.output_index}`); + } + if (output.type === 'function_call') { + output.arguments += event.delta; + } + break; + } + case 'response.completed': { + __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); + break; + } + } + return snapshot; + }, Symbol.asyncIterator)]() { + const pushQueue = []; + const readQueue = []; + let done = false; + this.on('event', (event) => { + const reader = readQueue.shift(); + if (reader) { + reader.resolve(event); + } + else { + pushQueue.push(event); + } + }); + this.on('end', () => { + done = true; + for (const reader of readQueue) { + reader.resolve(undefined); + } + readQueue.length = 0; + }); + this.on('abort', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + this.on('error', (err) => { + done = true; + for (const reader of readQueue) { + reader.reject(err); + } + readQueue.length = 0; + }); + return { + next: async () => { + if (!pushQueue.length) { + if (done) { + return { value: undefined, done: true }; + } + return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((event) => (event ? { value: event, done: false } : { value: undefined, done: true })); + } + const event = pushQueue.shift(); + return { value: event, done: false }; + }, + return: async () => { + this.abort(); + return { value: undefined, done: true }; + }, + }; + } + /** + * @returns a promise that resolves with the final Response, or rejects + * if an error occurred or the stream ended prematurely without producing a REsponse. + */ + async finalResponse() { + await this.done(); + const response = __classPrivateFieldGet(this, _ResponseStream_finalResponse, "f"); + if (!response) + throw new OpenAIError('stream ended without producing a ChatCompletion'); + return response; + } +} +function finalizeResponse(snapshot, params) { + return maybeParseResponse(snapshot, params); +} +//# sourceMappingURL=ResponseStream.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..bb668361735cffc829e5352b8f53e64ff07366f8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/lib/responses/ResponseStream.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"ResponseStream.mjs","sourceRoot":"","sources":["../../src/lib/responses/ResponseStream.ts"],"names":[],"mappings":";;OASO,EAAE,iBAAiB,EAAE,WAAW,EAAE;OAElC,EAAmB,WAAW,EAAE;OAEhC,EAAE,kBAAkB,EAAwB;AAkDnD,MAAM,OAAO,cACX,SAAQ,WAA2B;IAOnC,YAAY,MAAsC;QAChD,KAAK,EAAE,CAAC;;QALV,yCAAwC;QACxC,0DAA+C;QAC/C,gDAAoD;QAIlD,uBAAA,IAAI,0BAAW,MAAM,MAAA,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,MAAc,EACd,MAA4B,EAC5B,OAAwB;QAExB,MAAM,MAAM,GAAG,IAAI,cAAc,CAAU,MAAuC,CAAC,CAAC;QACpF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CACf,MAAM,CAAC,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE;SACxE,CAAC,CACH,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IA2ES,KAAK,CAAC,yBAAyB,CACvC,MAAc,EACd,MAA4B,EAC5B,OAAwB;QAExB,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;QAC/B,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,MAAM,CAAC,OAAO;gBAAE,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC5C,MAAM,CAAC,gBAAgB,CAAC,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CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;gBAChG,CAAC;gBACD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,EAAG,CAAC;gBACjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YACvC,CAAC;YACD,MAAM,EAAE,KAAK,IAAI,EAAE;gBACjB,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC1C,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,MAAM,QAAQ,GAAG,uBAAA,IAAI,qCAAe,CAAC;QACrC,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,WAAW,CAAC,iDAAiD,CAAC,CAAC;QACxF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED,SAAS,gBAAgB,CACvB,QAAkB,EAClB,MAAsC;IAEtC,OAAO,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..368f9e18b82a91ad321c3c098d671e096acc2e10 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts @@ -0,0 +1,2 @@ +export * from "./audio/index.mjs"; +//# sourceMappingURL=audio.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5b751deafd650e5f9062d450926a5507cfd92312 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.d.mts","sourceRoot":"","sources":["../src/resources/audio.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b4d55c9d1a71ccff8a2248a8d1d9f2415ca0555e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts @@ -0,0 +1,2 @@ +export * from "./audio/index.js"; +//# sourceMappingURL=audio.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..8cf2949428f09fd9771970f5553795f084ab8aae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../src/resources/audio.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js new file mode 100644 index 0000000000000000000000000000000000000000..fb3518c22ba95a000b2489c032187be0f562fd5b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./audio/index.js"), exports); +//# sourceMappingURL=audio.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b6577c513b5311905d6d55a65bd0ca25056f611b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.js.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.js","sourceRoot":"","sources":["../src/resources/audio.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs new file mode 100644 index 0000000000000000000000000000000000000000..0dacab4ac682a7a6ea8017a909407f7c6d0d6089 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./audio/index.mjs"; +//# sourceMappingURL=audio.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4b2e67440cd901bd84ed90cf12da32c5596a6744 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.mjs","sourceRoot":"","sources":["../src/resources/audio.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..d50942821588c785509538d6709bdc71da042d48 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts @@ -0,0 +1,26 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as SpeechAPI from "./speech.mjs"; +import { Speech, SpeechCreateParams, SpeechModel } from "./speech.mjs"; +import * as TranscriptionsAPI from "./transcriptions.mjs"; +import { Transcription, TranscriptionCreateParams, TranscriptionCreateParamsNonStreaming, TranscriptionCreateParamsStreaming, TranscriptionCreateResponse, TranscriptionInclude, TranscriptionSegment, TranscriptionStreamEvent, TranscriptionTextDeltaEvent, TranscriptionTextDoneEvent, TranscriptionVerbose, TranscriptionWord, Transcriptions } from "./transcriptions.mjs"; +import * as TranslationsAPI from "./translations.mjs"; +import { Translation, TranslationCreateParams, TranslationCreateResponse, TranslationVerbose, Translations } from "./translations.mjs"; +export declare class Audio extends APIResource { + transcriptions: TranscriptionsAPI.Transcriptions; + translations: TranslationsAPI.Translations; + speech: SpeechAPI.Speech; +} +export type AudioModel = 'whisper-1' | 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe'; +/** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, + * the only supported format is `json`. + */ +export type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'; +export declare namespace Audio { + export { type AudioModel as AudioModel, type AudioResponseFormat as AudioResponseFormat }; + export { Transcriptions as Transcriptions, type Transcription as Transcription, type TranscriptionInclude as TranscriptionInclude, type TranscriptionSegment as TranscriptionSegment, type TranscriptionStreamEvent as TranscriptionStreamEvent, type TranscriptionTextDeltaEvent as TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent as TranscriptionTextDoneEvent, type TranscriptionVerbose as TranscriptionVerbose, type TranscriptionWord as TranscriptionWord, type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionCreateParams as TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming as TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming as TranscriptionCreateParamsStreaming, }; + export { Translations as Translations, type Translation as Translation, type TranslationVerbose as TranslationVerbose, type TranslationCreateResponse as TranslationCreateResponse, type TranslationCreateParams as TranslationCreateParams, }; + export { Speech as Speech, type SpeechModel as SpeechModel, type SpeechCreateParams as SpeechCreateParams }; +} +//# sourceMappingURL=audio.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..0e44205a146e21b2bdc8749a6490c9e84f9da267 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.d.mts","sourceRoot":"","sources":["../../src/resources/audio/audio.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE;OAC3C,KAAK,iBAAiB;OACtB,EACL,aAAa,EACb,yBAAyB,EACzB,qCAAqC,EACrC,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACf;OACM,KAAK,eAAe;OACpB,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACb;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAsD;IACtG,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,mBAAmB,GAAG,wBAAwB,CAAC;AAEtF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,cAAc,GAAG,KAAK,CAAC;AAMnF,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAE1F,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2c0193d765caf953080d226407a27f46fc8c3a8f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts @@ -0,0 +1,26 @@ +import { APIResource } from "../../core/resource.js"; +import * as SpeechAPI from "./speech.js"; +import { Speech, SpeechCreateParams, SpeechModel } from "./speech.js"; +import * as TranscriptionsAPI from "./transcriptions.js"; +import { Transcription, TranscriptionCreateParams, TranscriptionCreateParamsNonStreaming, TranscriptionCreateParamsStreaming, TranscriptionCreateResponse, TranscriptionInclude, TranscriptionSegment, TranscriptionStreamEvent, TranscriptionTextDeltaEvent, TranscriptionTextDoneEvent, TranscriptionVerbose, TranscriptionWord, Transcriptions } from "./transcriptions.js"; +import * as TranslationsAPI from "./translations.js"; +import { Translation, TranslationCreateParams, TranslationCreateResponse, TranslationVerbose, Translations } from "./translations.js"; +export declare class Audio extends APIResource { + transcriptions: TranscriptionsAPI.Transcriptions; + translations: TranslationsAPI.Translations; + speech: SpeechAPI.Speech; +} +export type AudioModel = 'whisper-1' | 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe'; +/** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, + * the only supported format is `json`. + */ +export type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'; +export declare namespace Audio { + export { type AudioModel as AudioModel, type AudioResponseFormat as AudioResponseFormat }; + export { Transcriptions as Transcriptions, type Transcription as Transcription, type TranscriptionInclude as TranscriptionInclude, type TranscriptionSegment as TranscriptionSegment, type TranscriptionStreamEvent as TranscriptionStreamEvent, type TranscriptionTextDeltaEvent as TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent as TranscriptionTextDoneEvent, type TranscriptionVerbose as TranscriptionVerbose, type TranscriptionWord as TranscriptionWord, type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionCreateParams as TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming as TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming as TranscriptionCreateParamsStreaming, }; + export { Translations as Translations, type Translation as Translation, type TranslationVerbose as TranslationVerbose, type TranslationCreateResponse as TranslationCreateResponse, type TranslationCreateParams as TranslationCreateParams, }; + export { Speech as Speech, type SpeechModel as SpeechModel, type SpeechCreateParams as SpeechCreateParams }; +} +//# sourceMappingURL=audio.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..0470be0e12dfb999908869ca72c6928f7e95c7a7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/resources/audio/audio.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE;OAC3C,KAAK,iBAAiB;OACtB,EACL,aAAa,EACb,yBAAyB,EACzB,qCAAqC,EACrC,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACf;OACM,KAAK,eAAe;OACpB,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACb;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAsD;IACtG,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,mBAAmB,GAAG,wBAAwB,CAAC;AAEtF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,cAAc,GAAG,KAAK,CAAC;AAMnF,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAE1F,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js new file mode 100644 index 0000000000000000000000000000000000000000..e0791a6b8ee258a533f17a0f8b03fcab8cac479b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js @@ -0,0 +1,25 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Audio = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const SpeechAPI = tslib_1.__importStar(require("./speech.js")); +const speech_1 = require("./speech.js"); +const TranscriptionsAPI = tslib_1.__importStar(require("./transcriptions.js")); +const transcriptions_1 = require("./transcriptions.js"); +const TranslationsAPI = tslib_1.__importStar(require("./translations.js")); +const translations_1 = require("./translations.js"); +class Audio extends resource_1.APIResource { + constructor() { + super(...arguments); + this.transcriptions = new TranscriptionsAPI.Transcriptions(this._client); + this.translations = new TranslationsAPI.Translations(this._client); + this.speech = new SpeechAPI.Speech(this._client); + } +} +exports.Audio = Audio; +Audio.Transcriptions = transcriptions_1.Transcriptions; +Audio.Translations = translations_1.Translations; +Audio.Speech = speech_1.Speech; +//# sourceMappingURL=audio.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js.map new file mode 100644 index 0000000000000000000000000000000000000000..befddafc5baeecc6b84c16db209544d48875b77e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.js.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.js","sourceRoot":"","sources":["../../src/resources/audio/audio.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAmE;AACnE,+EAAsD;AACtD,wDAc0B;AAC1B,2EAAkD;AAClD,oDAMwB;AAExB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtG,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,sBAIC;AAWD,KAAK,CAAC,cAAc,GAAG,+BAAc,CAAC;AACtC,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs new file mode 100644 index 0000000000000000000000000000000000000000..26b5025f609233b8ffe3c2d260db6805a5cc74d7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as SpeechAPI from "./speech.mjs"; +import { Speech } from "./speech.mjs"; +import * as TranscriptionsAPI from "./transcriptions.mjs"; +import { Transcriptions, } from "./transcriptions.mjs"; +import * as TranslationsAPI from "./translations.mjs"; +import { Translations, } from "./translations.mjs"; +export class Audio extends APIResource { + constructor() { + super(...arguments); + this.transcriptions = new TranscriptionsAPI.Transcriptions(this._client); + this.translations = new TranslationsAPI.Translations(this._client); + this.speech = new SpeechAPI.Speech(this._client); + } +} +Audio.Transcriptions = Transcriptions; +Audio.Translations = Translations; +Audio.Speech = Speech; +//# sourceMappingURL=audio.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..636994404ab080de2f03f14b86e5a93f7be65fe5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/audio.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"audio.mjs","sourceRoot":"","sources":["../../src/resources/audio/audio.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAmC;OAC3C,KAAK,iBAAiB;OACtB,EAaL,cAAc,GACf;OACM,KAAK,eAAe;OACpB,EAKL,YAAY,GACb;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtG,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAWD,KAAK,CAAC,cAAc,GAAG,cAAc,CAAC;AACtC,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..5f20763d17ad575fc2695d4db106dc66907273d1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts @@ -0,0 +1,5 @@ +export { Audio, type AudioModel, type AudioResponseFormat } from "./audio.mjs"; +export { Speech, type SpeechModel, type SpeechCreateParams } from "./speech.mjs"; +export { Transcriptions, type Transcription, type TranscriptionInclude, type TranscriptionSegment, type TranscriptionStreamEvent, type TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent, type TranscriptionVerbose, type TranscriptionWord, type TranscriptionCreateResponse, type TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming, } from "./transcriptions.mjs"; +export { Translations, type Translation, type TranslationVerbose, type TranslationCreateResponse, type TranslationCreateParams, } from "./translations.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..8c9c4eaadf54a41419784949202693772dc6fcd9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE;OACpD,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE;OACrD,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qCAAqC,EAC1C,KAAK,kCAAkC,GACxC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9bedd86b919c025fa84f983ad036d79fdc1328d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts @@ -0,0 +1,5 @@ +export { Audio, type AudioModel, type AudioResponseFormat } from "./audio.js"; +export { Speech, type SpeechModel, type SpeechCreateParams } from "./speech.js"; +export { Transcriptions, type Transcription, type TranscriptionInclude, type TranscriptionSegment, type TranscriptionStreamEvent, type TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent, type TranscriptionVerbose, type TranscriptionWord, type TranscriptionCreateResponse, type TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming, } from "./transcriptions.js"; +export { Translations, type Translation, type TranslationVerbose, type TranslationCreateResponse, type TranslationCreateParams, } from "./translations.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e59b031c14edc9ebd30ae67bfc84033bf9dfd32f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE;OACpD,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE;OACrD,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qCAAqC,EAC1C,KAAK,kCAAkC,GACxC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js new file mode 100644 index 0000000000000000000000000000000000000000..1e38c2f2bd86a480901a29c7fc7787142364f066 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js @@ -0,0 +1,13 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Translations = exports.Transcriptions = exports.Speech = exports.Audio = void 0; +var audio_1 = require("./audio.js"); +Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return audio_1.Audio; } }); +var speech_1 = require("./speech.js"); +Object.defineProperty(exports, "Speech", { enumerable: true, get: function () { return speech_1.Speech; } }); +var transcriptions_1 = require("./transcriptions.js"); +Object.defineProperty(exports, "Transcriptions", { enumerable: true, get: function () { return transcriptions_1.Transcriptions; } }); +var translations_1 = require("./translations.js"); +Object.defineProperty(exports, "Translations", { enumerable: true, get: function () { return translations_1.Translations; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..37690317034711bf7f4eeb66db8fbc296a9f4c4a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA2E;AAAlE,8FAAA,KAAK,OAAA;AACd,sCAA6E;AAApE,gGAAA,MAAM,OAAA;AACf,sDAc0B;AAbxB,gHAAA,cAAc,OAAA;AAchB,kDAMwB;AALtB,4GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..1ecb5e46004d50bfff94ef2daf3572e1ea9d5d1c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Audio } from "./audio.mjs"; +export { Speech } from "./speech.mjs"; +export { Transcriptions, } from "./transcriptions.mjs"; +export { Translations, } from "./translations.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..5eee012098988e9a9dfbf876e0f7c47f5754c2cc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA6C;OACpD,EAAE,MAAM,EAA6C;OACrD,EACL,cAAc,GAaf;OACM,EACL,YAAY,GAKb"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..04aa0c28fc9f5cdede46aaa5eec2d011efadc077 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts @@ -0,0 +1,64 @@ +import { APIResource } from "../../core/resource.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Speech extends APIResource { + /** + * Generates audio from the input text. + * + * @example + * ```ts + * const speech = await client.audio.speech.create({ + * input: 'input', + * model: 'string', + * voice: 'ash', + * }); + * + * const content = await speech.blob(); + * console.log(content); + * ``` + */ + create(body: SpeechCreateParams, options?: RequestOptions): APIPromise; +} +export type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts'; +export interface SpeechCreateParams { + /** + * The text to generate audio for. The maximum length is 4096 characters. + */ + input: string; + /** + * One of the available [TTS models](https://platform.openai.com/docs/models#tts): + * `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + */ + model: (string & {}) | SpeechModel; + /** + * The voice to use when generating the audio. Supported voices are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and + * `verse`. Previews of the voices are available in the + * [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options). + */ + voice: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + /** + * Control the voice of your generated audio with additional instructions. Does not + * work with `tts-1` or `tts-1-hd`. + */ + instructions?: string; + /** + * The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, + * `wav`, and `pcm`. + */ + response_format?: 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'; + /** + * The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is + * the default. + */ + speed?: number; + /** + * The format to stream the audio in. Supported formats are `sse` and `audio`. + * `sse` is not supported for `tts-1` or `tts-1-hd`. + */ + stream_format?: 'sse' | 'audio'; +} +export declare namespace Speech { + export { type SpeechModel as SpeechModel, type SpeechCreateParams as SpeechCreateParams }; +} +//# sourceMappingURL=speech.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..b90c569e52930875a34a9fe437ed48779a124d96 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"speech.d.mts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAQjF;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,WAAW,CAAC;IAEnC;;;;;OAKG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAEpG;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAElE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC3F"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0abb311cda2beb6317c3e3d0d904f2e09bca621d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts @@ -0,0 +1,64 @@ +import { APIResource } from "../../core/resource.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Speech extends APIResource { + /** + * Generates audio from the input text. + * + * @example + * ```ts + * const speech = await client.audio.speech.create({ + * input: 'input', + * model: 'string', + * voice: 'ash', + * }); + * + * const content = await speech.blob(); + * console.log(content); + * ``` + */ + create(body: SpeechCreateParams, options?: RequestOptions): APIPromise; +} +export type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts'; +export interface SpeechCreateParams { + /** + * The text to generate audio for. The maximum length is 4096 characters. + */ + input: string; + /** + * One of the available [TTS models](https://platform.openai.com/docs/models#tts): + * `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + */ + model: (string & {}) | SpeechModel; + /** + * The voice to use when generating the audio. Supported voices are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and + * `verse`. Previews of the voices are available in the + * [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options). + */ + voice: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + /** + * Control the voice of your generated audio with additional instructions. Does not + * work with `tts-1` or `tts-1-hd`. + */ + instructions?: string; + /** + * The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, + * `wav`, and `pcm`. + */ + response_format?: 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'; + /** + * The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is + * the default. + */ + speed?: number; + /** + * The format to stream the audio in. Supported formats are `sse` and `audio`. + * `sse` is not supported for `tts-1` or `tts-1-hd`. + */ + stream_format?: 'sse' | 'audio'; +} +export declare namespace Speech { + export { type SpeechModel as SpeechModel, type SpeechCreateParams as SpeechCreateParams }; +} +//# sourceMappingURL=speech.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..edf42199a4442437e961307462831cb55d21b64e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAQjF;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,WAAW,CAAC;IAEnC;;;;;OAKG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAEpG;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAElE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC3F"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js new file mode 100644 index 0000000000000000000000000000000000000000..1a0a7cdc32081a858721952c3d2c10dc6b57c952 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js @@ -0,0 +1,33 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Speech = void 0; +const resource_1 = require("../../core/resource.js"); +const headers_1 = require("../../internal/headers.js"); +class Speech extends resource_1.APIResource { + /** + * Generates audio from the input text. + * + * @example + * ```ts + * const speech = await client.audio.speech.create({ + * input: 'input', + * model: 'string', + * voice: 'ash', + * }); + * + * const content = await speech.blob(); + * console.log(content); + * ``` + */ + create(body, options) { + return this._client.post('/audio/speech', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]), + __binaryResponse: true, + }); + } +} +exports.Speech = Speech; +//# sourceMappingURL=speech.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js.map new file mode 100644 index 0000000000000000000000000000000000000000..74f71162d6710302e5c0937cbbff067c032d79d7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.js.map @@ -0,0 +1 @@ +{"version":3,"file":"speech.js","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,wBAwBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c1983949eaa7288b0ddfca6816bce946443846a8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +export class Speech extends APIResource { + /** + * Generates audio from the input text. + * + * @example + * ```ts + * const speech = await client.audio.speech.create({ + * input: 'input', + * model: 'string', + * voice: 'ash', + * }); + * + * const content = await speech.blob(); + * console.log(content); + * ``` + */ + create(body, options) { + return this._client.post('/audio/speech', { + body, + ...options, + headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]), + __binaryResponse: true, + }); + } +} +//# sourceMappingURL=speech.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..72402cf513f204208250237c712c38f550b023ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/speech.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"speech.mjs","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..adbc9665dfedb57434834721caea4c48860504fb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts @@ -0,0 +1,485 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as TranscriptionsAPI from "./transcriptions.mjs"; +import * as AudioAPI from "./audio.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { Stream } from "../../core/streaming.mjs"; +import { type Uploadable } from "../../core/uploads.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Transcriptions extends APIResource { + /** + * Transcribes audio into the input language. + * + * @example + * ```ts + * const transcription = + * await client.audio.transcriptions.create({ + * file: fs.createReadStream('speech.mp3'), + * model: 'gpt-4o-transcribe', + * }); + * ``` + */ + create(body: TranscriptionCreateParamsNonStreaming<'json' | undefined>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming<'verbose_json'>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming<'srt' | 'vtt' | 'text'>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: TranscriptionCreateParamsStreaming, options?: RequestOptions): APIPromise>; +} +/** + * Represents a transcription response returned by model, based on the provided + * input. + */ +export interface Transcription { + /** + * The transcribed text. + */ + text: string; + /** + * The log probabilities of the tokens in the transcription. Only returned with the + * models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added + * to the `include` array. + */ + logprobs?: Array; + /** + * Token usage statistics for the request. + */ + usage?: Transcription.Tokens | Transcription.Duration; +} +export declare namespace Transcription { + interface Logprob { + /** + * The token in the transcription. + */ + token?: string; + /** + * The bytes of the token. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } + /** + * Usage statistics for models billed by token usage. + */ + interface Tokens { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: Tokens.InputTokenDetails; + } + namespace Tokens { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } + /** + * Usage statistics for models billed by audio input duration. + */ + interface Duration { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } +} +export type TranscriptionInclude = 'logprobs'; +export interface TranscriptionSegment { + /** + * Unique identifier of the segment. + */ + id: number; + /** + * Average logprob of the segment. If the value is lower than -1, consider the + * logprobs failed. + */ + avg_logprob: number; + /** + * Compression ratio of the segment. If the value is greater than 2.4, consider the + * compression failed. + */ + compression_ratio: number; + /** + * End time of the segment in seconds. + */ + end: number; + /** + * Probability of no speech in the segment. If the value is higher than 1.0 and the + * `avg_logprob` is below -1, consider this segment silent. + */ + no_speech_prob: number; + /** + * Seek offset of the segment. + */ + seek: number; + /** + * Start time of the segment in seconds. + */ + start: number; + /** + * Temperature parameter used for generating the segment. + */ + temperature: number; + /** + * Text content of the segment. + */ + text: string; + /** + * Array of token IDs for the text content. + */ + tokens: Array; +} +/** + * Emitted when there is an additional text delta. This is also the first event + * emitted when the transcription starts. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export type TranscriptionStreamEvent = TranscriptionTextDeltaEvent | TranscriptionTextDoneEvent; +/** + * Emitted when there is an additional text delta. This is also the first event + * emitted when the transcription starts. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export interface TranscriptionTextDeltaEvent { + /** + * The text delta that was additionally transcribed. + */ + delta: string; + /** + * The type of the event. Always `transcript.text.delta`. + */ + type: 'transcript.text.delta'; + /** + * The log probabilities of the delta. Only included if you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `include[]` parameter set to `logprobs`. + */ + logprobs?: Array; +} +export declare namespace TranscriptionTextDeltaEvent { + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token?: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } +} +/** + * Emitted when the transcription is complete. Contains the complete transcription + * text. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export interface TranscriptionTextDoneEvent { + /** + * The text that was transcribed. + */ + text: string; + /** + * The type of the event. Always `transcript.text.done`. + */ + type: 'transcript.text.done'; + /** + * The log probabilities of the individual tokens in the transcription. Only + * included if you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `include[]` parameter set to `logprobs`. + */ + logprobs?: Array; + /** + * Usage statistics for models billed by token usage. + */ + usage?: TranscriptionTextDoneEvent.Usage; +} +export declare namespace TranscriptionTextDoneEvent { + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token?: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } + /** + * Usage statistics for models billed by token usage. + */ + interface Usage { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: Usage.InputTokenDetails; + } + namespace Usage { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } +} +/** + * Represents a verbose json transcription response returned by model, based on the + * provided input. + */ +export interface TranscriptionVerbose { + /** + * The duration of the input audio. + */ + duration: number; + /** + * The language of the input audio. + */ + language: string; + /** + * The transcribed text. + */ + text: string; + /** + * Segments of the transcribed text and their corresponding details. + */ + segments?: Array; + /** + * Usage statistics for models billed by audio input duration. + */ + usage?: TranscriptionVerbose.Usage; + /** + * Extracted words and their corresponding timestamps. + */ + words?: Array; +} +export declare namespace TranscriptionVerbose { + /** + * Usage statistics for models billed by audio input duration. + */ + interface Usage { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } +} +export interface TranscriptionWord { + /** + * End time of the word in seconds. + */ + end: number; + /** + * Start time of the word in seconds. + */ + start: number; + /** + * The text content of the word. + */ + word: string; +} +/** + * Represents a transcription response returned by model, based on the provided + * input. + */ +export type TranscriptionCreateResponse = Transcription | TranscriptionVerbose; +export type TranscriptionCreateParams = TranscriptionCreateParamsNonStreaming | TranscriptionCreateParamsStreaming; +export interface TranscriptionCreateParamsBase { + /** + * The audio file object (not file name) to transcribe, in one of these formats: + * flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + */ + file: Uploadable; + /** + * ID of the model to use. The options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source + * Whisper V2 model). + */ + model: (string & {}) | AudioAPI.AudioModel; + /** + * Controls how the audio is cut into chunks. When set to `"auto"`, the server + * first normalizes loudness and then uses voice activity detection (VAD) to choose + * boundaries. `server_vad` object can be provided to tweak VAD detection + * parameters manually. If unset, the audio is transcribed as a single block. + */ + chunking_strategy?: 'auto' | TranscriptionCreateParams.VadConfig | null; + /** + * Additional information to include in the transcription response. `logprobs` will + * return the log probabilities of the tokens in the response to understand the + * model's confidence in the transcription. `logprobs` only works with + * response_format set to `json` and only with the models `gpt-4o-transcribe` and + * `gpt-4o-mini-transcribe`. + */ + include?: Array; + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should match the audio language. + */ + prompt?: string; + /** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, + * the only supported format is `json`. + */ + response_format?: ResponseFormat; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream?: boolean | null; + /** + * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + * output more random, while lower values like 0.2 will make it more focused and + * deterministic. If set to 0, the model will use + * [log probability](https://en.wikipedia.org/wiki/Log_probability) to + * automatically increase the temperature until certain thresholds are hit. + */ + temperature?: number; + /** + * The timestamp granularities to populate for this transcription. + * `response_format` must be set `verbose_json` to use timestamp granularities. + * Either or both of these options are supported: `word`, or `segment`. Note: There + * is no additional latency for segment timestamps, but generating word timestamps + * incurs additional latency. + */ + timestamp_granularities?: Array<'word' | 'segment'>; +} +export declare namespace TranscriptionCreateParams { + interface VadConfig { + /** + * Must be set to `server_vad` to enable manual chunking using server side VAD. + */ + type: 'server_vad'; + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). With shorter values + * the model will respond more quickly, but may jump in on short pauses from the + * user. + */ + silence_duration_ms?: number; + /** + * Sensitivity threshold (0.0 to 1.0) for voice activity detection. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + } + type TranscriptionCreateParamsNonStreaming = TranscriptionsAPI.TranscriptionCreateParamsNonStreaming; + type TranscriptionCreateParamsStreaming = TranscriptionsAPI.TranscriptionCreateParamsStreaming; +} +export interface TranscriptionCreateParamsNonStreaming extends TranscriptionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream?: false | null; +} +export interface TranscriptionCreateParamsStreaming extends TranscriptionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream: true; +} +export declare namespace Transcriptions { + export { type Transcription as Transcription, type TranscriptionInclude as TranscriptionInclude, type TranscriptionSegment as TranscriptionSegment, type TranscriptionStreamEvent as TranscriptionStreamEvent, type TranscriptionTextDeltaEvent as TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent as TranscriptionTextDoneEvent, type TranscriptionVerbose as TranscriptionVerbose, type TranscriptionWord as TranscriptionWord, type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionCreateParams as TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming as TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming as TranscriptionCreateParamsStreaming, }; +} +//# sourceMappingURL=transcriptions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..a8b4ab60a8d77edabc05fc6bab520dd48c6a71bd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"transcriptions.d.mts","sourceRoot":"","sources":["../../src/resources/audio/transcriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,qCAAqC,CAAC,MAAM,GAAG,S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d;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..814280b65d8edaf6b06b82e1f7d1a8a0d1c370cf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts @@ -0,0 +1,485 @@ +import { APIResource } from "../../core/resource.js"; +import * as TranscriptionsAPI from "./transcriptions.js"; +import * as AudioAPI from "./audio.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { Stream } from "../../core/streaming.js"; +import { type Uploadable } from "../../core/uploads.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Transcriptions extends APIResource { + /** + * Transcribes audio into the input language. + * + * @example + * ```ts + * const transcription = + * await client.audio.transcriptions.create({ + * file: fs.createReadStream('speech.mp3'), + * model: 'gpt-4o-transcribe', + * }); + * ``` + */ + create(body: TranscriptionCreateParamsNonStreaming<'json' | undefined>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming<'verbose_json'>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming<'srt' | 'vtt' | 'text'>, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: TranscriptionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: TranscriptionCreateParamsStreaming, options?: RequestOptions): APIPromise>; +} +/** + * Represents a transcription response returned by model, based on the provided + * input. + */ +export interface Transcription { + /** + * The transcribed text. + */ + text: string; + /** + * The log probabilities of the tokens in the transcription. Only returned with the + * models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added + * to the `include` array. + */ + logprobs?: Array; + /** + * Token usage statistics for the request. + */ + usage?: Transcription.Tokens | Transcription.Duration; +} +export declare namespace Transcription { + interface Logprob { + /** + * The token in the transcription. + */ + token?: string; + /** + * The bytes of the token. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } + /** + * Usage statistics for models billed by token usage. + */ + interface Tokens { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: Tokens.InputTokenDetails; + } + namespace Tokens { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } + /** + * Usage statistics for models billed by audio input duration. + */ + interface Duration { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } +} +export type TranscriptionInclude = 'logprobs'; +export interface TranscriptionSegment { + /** + * Unique identifier of the segment. + */ + id: number; + /** + * Average logprob of the segment. If the value is lower than -1, consider the + * logprobs failed. + */ + avg_logprob: number; + /** + * Compression ratio of the segment. If the value is greater than 2.4, consider the + * compression failed. + */ + compression_ratio: number; + /** + * End time of the segment in seconds. + */ + end: number; + /** + * Probability of no speech in the segment. If the value is higher than 1.0 and the + * `avg_logprob` is below -1, consider this segment silent. + */ + no_speech_prob: number; + /** + * Seek offset of the segment. + */ + seek: number; + /** + * Start time of the segment in seconds. + */ + start: number; + /** + * Temperature parameter used for generating the segment. + */ + temperature: number; + /** + * Text content of the segment. + */ + text: string; + /** + * Array of token IDs for the text content. + */ + tokens: Array; +} +/** + * Emitted when there is an additional text delta. This is also the first event + * emitted when the transcription starts. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export type TranscriptionStreamEvent = TranscriptionTextDeltaEvent | TranscriptionTextDoneEvent; +/** + * Emitted when there is an additional text delta. This is also the first event + * emitted when the transcription starts. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export interface TranscriptionTextDeltaEvent { + /** + * The text delta that was additionally transcribed. + */ + delta: string; + /** + * The type of the event. Always `transcript.text.delta`. + */ + type: 'transcript.text.delta'; + /** + * The log probabilities of the delta. Only included if you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `include[]` parameter set to `logprobs`. + */ + logprobs?: Array; +} +export declare namespace TranscriptionTextDeltaEvent { + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token?: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } +} +/** + * Emitted when the transcription is complete. Contains the complete transcription + * text. Only emitted when you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `Stream` parameter set to `true`. + */ +export interface TranscriptionTextDoneEvent { + /** + * The text that was transcribed. + */ + text: string; + /** + * The type of the event. Always `transcript.text.done`. + */ + type: 'transcript.text.done'; + /** + * The log probabilities of the individual tokens in the transcription. Only + * included if you + * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) + * with the `include[]` parameter set to `logprobs`. + */ + logprobs?: Array; + /** + * Usage statistics for models billed by token usage. + */ + usage?: TranscriptionTextDoneEvent.Usage; +} +export declare namespace TranscriptionTextDoneEvent { + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token?: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes?: Array; + /** + * The log probability of the token. + */ + logprob?: number; + } + /** + * Usage statistics for models billed by token usage. + */ + interface Usage { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: Usage.InputTokenDetails; + } + namespace Usage { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } +} +/** + * Represents a verbose json transcription response returned by model, based on the + * provided input. + */ +export interface TranscriptionVerbose { + /** + * The duration of the input audio. + */ + duration: number; + /** + * The language of the input audio. + */ + language: string; + /** + * The transcribed text. + */ + text: string; + /** + * Segments of the transcribed text and their corresponding details. + */ + segments?: Array; + /** + * Usage statistics for models billed by audio input duration. + */ + usage?: TranscriptionVerbose.Usage; + /** + * Extracted words and their corresponding timestamps. + */ + words?: Array; +} +export declare namespace TranscriptionVerbose { + /** + * Usage statistics for models billed by audio input duration. + */ + interface Usage { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } +} +export interface TranscriptionWord { + /** + * End time of the word in seconds. + */ + end: number; + /** + * Start time of the word in seconds. + */ + start: number; + /** + * The text content of the word. + */ + word: string; +} +/** + * Represents a transcription response returned by model, based on the provided + * input. + */ +export type TranscriptionCreateResponse = Transcription | TranscriptionVerbose; +export type TranscriptionCreateParams = TranscriptionCreateParamsNonStreaming | TranscriptionCreateParamsStreaming; +export interface TranscriptionCreateParamsBase { + /** + * The audio file object (not file name) to transcribe, in one of these formats: + * flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + */ + file: Uploadable; + /** + * ID of the model to use. The options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source + * Whisper V2 model). + */ + model: (string & {}) | AudioAPI.AudioModel; + /** + * Controls how the audio is cut into chunks. When set to `"auto"`, the server + * first normalizes loudness and then uses voice activity detection (VAD) to choose + * boundaries. `server_vad` object can be provided to tweak VAD detection + * parameters manually. If unset, the audio is transcribed as a single block. + */ + chunking_strategy?: 'auto' | TranscriptionCreateParams.VadConfig | null; + /** + * Additional information to include in the transcription response. `logprobs` will + * return the log probabilities of the tokens in the response to understand the + * model's confidence in the transcription. `logprobs` only works with + * response_format set to `json` and only with the models `gpt-4o-transcribe` and + * `gpt-4o-mini-transcribe`. + */ + include?: Array; + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should match the audio language. + */ + prompt?: string; + /** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, + * the only supported format is `json`. + */ + response_format?: ResponseFormat; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream?: boolean | null; + /** + * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + * output more random, while lower values like 0.2 will make it more focused and + * deterministic. If set to 0, the model will use + * [log probability](https://en.wikipedia.org/wiki/Log_probability) to + * automatically increase the temperature until certain thresholds are hit. + */ + temperature?: number; + /** + * The timestamp granularities to populate for this transcription. + * `response_format` must be set `verbose_json` to use timestamp granularities. + * Either or both of these options are supported: `word`, or `segment`. Note: There + * is no additional latency for segment timestamps, but generating word timestamps + * incurs additional latency. + */ + timestamp_granularities?: Array<'word' | 'segment'>; +} +export declare namespace TranscriptionCreateParams { + interface VadConfig { + /** + * Must be set to `server_vad` to enable manual chunking using server side VAD. + */ + type: 'server_vad'; + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). With shorter values + * the model will respond more quickly, but may jump in on short pauses from the + * user. + */ + silence_duration_ms?: number; + /** + * Sensitivity threshold (0.0 to 1.0) for voice activity detection. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + } + type TranscriptionCreateParamsNonStreaming = TranscriptionsAPI.TranscriptionCreateParamsNonStreaming; + type TranscriptionCreateParamsStreaming = TranscriptionsAPI.TranscriptionCreateParamsStreaming; +} +export interface TranscriptionCreateParamsNonStreaming extends TranscriptionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream?: false | null; +} +export interface TranscriptionCreateParamsStreaming extends TranscriptionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions) + * for more information. + * + * Note: Streaming is not supported for the `whisper-1` model and will be ignored. + */ + stream: true; +} +export declare namespace Transcriptions { + export { type Transcription as Transcription, type TranscriptionInclude as TranscriptionInclude, type TranscriptionSegment as TranscriptionSegment, type TranscriptionStreamEvent as TranscriptionStreamEvent, type TranscriptionTextDeltaEvent as TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent as TranscriptionTextDoneEvent, type TranscriptionVerbose as TranscriptionVerbose, type TranscriptionWord as TranscriptionWord, type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionCreateParams as TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming as TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming as TranscriptionCreateParamsStreaming, }; +} +//# sourceMappingURL=transcriptions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..4a13c81549dd49f896ecde637c2a8f1b51907d76 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transcriptions.d.ts","sourceRoot":"","sources":["../../src/resources/audio/transcriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,qCAAqC,CAAC,MAAM,GAAG,SAAS,CAAC,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;I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AAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js new file mode 100644 index 0000000000000000000000000000000000000000..95c3011aef17e3a1de4eec067509c5b53a120f0e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js @@ -0,0 +1,18 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Transcriptions = void 0; +const resource_1 = require("../../core/resource.js"); +const uploads_1 = require("../../internal/uploads.js"); +class Transcriptions extends resource_1.APIResource { + create(body, options) { + return this._client.post('/audio/transcriptions', (0, uploads_1.multipartFormRequestOptions)({ + body, + ...options, + stream: body.stream ?? false, + __metadata: { model: body.model }, + }, this._client)); + } +} +exports.Transcriptions = Transcriptions; +//# sourceMappingURL=transcriptions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b2aeb192bfca244a54f0172d74d8597e566771a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transcriptions.js","sourceRoot":"","sources":["../../src/resources/audio/transcriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAOlD,uDAAqE;AAErE,MAAa,cAAe,SAAQ,sBAAW;IAkC7C,MAAM,CACJ,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,uBAAuB,EACvB,IAAA,qCAA2B,EACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SAClC,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF;AAnDD,wCAmDC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a13e6422c8747971a4b0c9ddfad8cd066bc09edd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { multipartFormRequestOptions } from "../../internal/uploads.mjs"; +export class Transcriptions extends APIResource { + create(body, options) { + return this._client.post('/audio/transcriptions', multipartFormRequestOptions({ + body, + ...options, + stream: body.stream ?? false, + __metadata: { model: body.model }, + }, this._client)); + } +} +//# sourceMappingURL=transcriptions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..a89aea3ab240264405b5d31ec75c8b8895c4da2c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/transcriptions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"transcriptions.mjs","sourceRoot":"","sources":["../../src/resources/audio/transcriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAOf,EAAE,2BAA2B,EAAE;AAEtC,MAAM,OAAO,cAAe,SAAQ,WAAW;IAkC7C,MAAM,CACJ,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,uBAAuB,EACvB,2BAA2B,CACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SAClC,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..7aa18a5f0d6f77ea2e47eedb0187080436c0eeb2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts @@ -0,0 +1,81 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as AudioAPI from "./audio.mjs"; +import * as TranscriptionsAPI from "./transcriptions.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { type Uploadable } from "../../core/uploads.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Translations extends APIResource { + /** + * Translates audio into English. + * + * @example + * ```ts + * const translation = await client.audio.translations.create({ + * file: fs.createReadStream('speech.mp3'), + * model: 'whisper-1', + * }); + * ``` + */ + create(body: TranslationCreateParams<'json' | undefined>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams<'verbose_json'>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams<'text' | 'srt' | 'vtt'>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams, options?: RequestOptions): APIPromise; +} +export interface Translation { + text: string; +} +export interface TranslationVerbose { + /** + * The duration of the input audio. + */ + duration: number; + /** + * The language of the output translation (always `english`). + */ + language: string; + /** + * The translated text. + */ + text: string; + /** + * Segments of the translated text and their corresponding details. + */ + segments?: Array; +} +export type TranslationCreateResponse = Translation | TranslationVerbose; +export interface TranslationCreateParams { + /** + * The audio file object (not file name) translate, in one of these formats: flac, + * mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + */ + file: Uploadable; + /** + * ID of the model to use. Only `whisper-1` (which is powered by our open source + * Whisper V2 model) is currently available. + */ + model: (string & {}) | AudioAPI.AudioModel; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should be in English. + */ + prompt?: string; + /** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. + */ + response_format?: 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'; + /** + * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + * output more random, while lower values like 0.2 will make it more focused and + * deterministic. If set to 0, the model will use + * [log probability](https://en.wikipedia.org/wiki/Log_probability) to + * automatically increase the temperature until certain thresholds are hit. + */ + temperature?: number; +} +export declare namespace Translations { + export { type Translation as Translation, type TranslationVerbose as TranslationVerbose, type TranslationCreateResponse as TranslationCreateResponse, type TranslationCreateParams as TranslationCreateParams, }; +} +//# sourceMappingURL=translations.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..1386aa620c0beff6dc0c2cb8f42727892710f7e3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"translations.d.mts","sourceRoot":"","sources":["../../src/resources/audio/translations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,CAAC,MAAM,GAAG,SAAS,CAAC,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAC1B,MAAM,CACJ,IAAI,EAAE,uBAAuB,CAAC,cAAc,CAAC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IACjC,MAAM,CAAC,IAAI,EAAE,uBAAuB,CAAC,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAC3G,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;CAUzF;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;CAC1D;AAED,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAEzE,MAAM,WAAW,uBAAuB,CACtC,cAAc,SAAS,QAAQ,CAAC,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC,mBAAmB,GAAG,SAAS;IAE1G;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;OAGG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC;IAE3C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,cAAc,GAAG,KAAK,CAAC;IAEnE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8cbc6d352cc26fc59d80bce8d6eaa63977832067 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts @@ -0,0 +1,81 @@ +import { APIResource } from "../../core/resource.js"; +import * as AudioAPI from "./audio.js"; +import * as TranscriptionsAPI from "./transcriptions.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { type Uploadable } from "../../core/uploads.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Translations extends APIResource { + /** + * Translates audio into English. + * + * @example + * ```ts + * const translation = await client.audio.translations.create({ + * file: fs.createReadStream('speech.mp3'), + * model: 'whisper-1', + * }); + * ``` + */ + create(body: TranslationCreateParams<'json' | undefined>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams<'verbose_json'>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams<'text' | 'srt' | 'vtt'>, options?: RequestOptions): APIPromise; + create(body: TranslationCreateParams, options?: RequestOptions): APIPromise; +} +export interface Translation { + text: string; +} +export interface TranslationVerbose { + /** + * The duration of the input audio. + */ + duration: number; + /** + * The language of the output translation (always `english`). + */ + language: string; + /** + * The translated text. + */ + text: string; + /** + * Segments of the translated text and their corresponding details. + */ + segments?: Array; +} +export type TranslationCreateResponse = Translation | TranslationVerbose; +export interface TranslationCreateParams { + /** + * The audio file object (not file name) translate, in one of these formats: flac, + * mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + */ + file: Uploadable; + /** + * ID of the model to use. Only `whisper-1` (which is powered by our open source + * Whisper V2 model) is currently available. + */ + model: (string & {}) | AudioAPI.AudioModel; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should be in English. + */ + prompt?: string; + /** + * The format of the output, in one of these options: `json`, `text`, `srt`, + * `verbose_json`, or `vtt`. + */ + response_format?: 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'; + /** + * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + * output more random, while lower values like 0.2 will make it more focused and + * deterministic. If set to 0, the model will use + * [log probability](https://en.wikipedia.org/wiki/Log_probability) to + * automatically increase the temperature until certain thresholds are hit. + */ + temperature?: number; +} +export declare namespace Translations { + export { type Translation as Translation, type TranslationVerbose as TranslationVerbose, type TranslationCreateResponse as TranslationCreateResponse, type TranslationCreateParams as TranslationCreateParams, }; +} +//# sourceMappingURL=translations.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..b228d619b6c5964458d2d2168582c6b49e6931e9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/resources/audio/translations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,CAAC,MAAM,GAAG,SAAS,CAAC,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAC1B,MAAM,CACJ,IAAI,EAAE,uBAAuB,CAAC,cAAc,CAAC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IACjC,MAAM,CAAC,IAAI,EAAE,uBAAuB,CAAC,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAC3G,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;CAUzF;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;CAC1D;AAED,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAEzE,MAAM,WAAW,uBAAuB,CACtC,cAAc,SAAS,QAAQ,CAAC,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC,mBAAmB,GAAG,SAAS;IAE1G;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;OAGG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC;IAE3C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,cAAc,GAAG,KAAK,CAAC;IAEnE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js new file mode 100644 index 0000000000000000000000000000000000000000..75db79f95e39ed8bbb5f5d0b182e3a08ef556330 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js @@ -0,0 +1,13 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Translations = void 0; +const resource_1 = require("../../core/resource.js"); +const uploads_1 = require("../../internal/uploads.js"); +class Translations extends resource_1.APIResource { + create(body, options) { + return this._client.post('/audio/translations', (0, uploads_1.multipartFormRequestOptions)({ body, ...options, __metadata: { model: body.model } }, this._client)); + } +} +exports.Translations = Translations; +//# sourceMappingURL=translations.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js.map new file mode 100644 index 0000000000000000000000000000000000000000..4e9b97c6ebdcc471825920ac3e54f7bde16bf755 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../src/resources/audio/translations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,uDAAqE;AAErE,MAAa,YAAa,SAAQ,sBAAW;IAsB3C,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,qBAAqB,EACrB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACnG,CAAC;IACJ,CAAC;CACF;AA/BD,oCA+BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs new file mode 100644 index 0000000000000000000000000000000000000000..ef232b6910ed90bfa268b82ff70b03f848683ff1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs @@ -0,0 +1,9 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { multipartFormRequestOptions } from "../../internal/uploads.mjs"; +export class Translations extends APIResource { + create(body, options) { + return this._client.post('/audio/translations', multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model } }, this._client)); + } +} +//# sourceMappingURL=translations.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c81b19c739c1f34776a9d0f0a448fdac70bde6b6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/audio/translations.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"translations.mjs","sourceRoot":"","sources":["../../src/resources/audio/translations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,2BAA2B,EAAE;AAEtC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAsB3C,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,qBAAqB,EACrB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACnG,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..e962a337c41cc9118dbb7501aed5974373ba9038 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts @@ -0,0 +1,217 @@ +import { APIResource } from "../core/resource.mjs"; +import * as BatchesAPI from "./batches.mjs"; +import * as Shared from "./shared.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Batches extends APIResource { + /** + * Creates and executes a batch from an uploaded file of requests + */ + create(body: BatchCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a batch. + */ + retrieve(batchID: string, options?: RequestOptions): APIPromise; + /** + * List your organization's batches. + */ + list(query?: BatchListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Cancels an in-progress batch. The batch will be in status `cancelling` for up to + * 10 minutes, before changing to `cancelled`, where it will have partial results + * (if any) available in the output file. + */ + cancel(batchID: string, options?: RequestOptions): APIPromise; +} +export type BatchesPage = CursorPage; +export interface Batch { + id: string; + /** + * The time frame within which the batch should be processed. + */ + completion_window: string; + /** + * The Unix timestamp (in seconds) for when the batch was created. + */ + created_at: number; + /** + * The OpenAI API endpoint used by the batch. + */ + endpoint: string; + /** + * The ID of the input file for the batch. + */ + input_file_id: string; + /** + * The object type, which is always `batch`. + */ + object: 'batch'; + /** + * The current status of the batch. + */ + status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled'; + /** + * The Unix timestamp (in seconds) for when the batch was cancelled. + */ + cancelled_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started cancelling. + */ + cancelling_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch was completed. + */ + completed_at?: number; + /** + * The ID of the file containing the outputs of requests with errors. + */ + error_file_id?: string; + errors?: Batch.Errors; + /** + * The Unix timestamp (in seconds) for when the batch expired. + */ + expired_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch will expire. + */ + expires_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch failed. + */ + failed_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started finalizing. + */ + finalizing_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started processing. + */ + in_progress_at?: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The ID of the file containing the outputs of successfully executed requests. + */ + output_file_id?: string; + /** + * The request counts for different statuses within the batch. + */ + request_counts?: BatchRequestCounts; +} +export declare namespace Batch { + interface Errors { + data?: Array; + /** + * The object type, which is always `list`. + */ + object?: string; + } +} +export interface BatchError { + /** + * An error code identifying the error type. + */ + code?: string; + /** + * The line number of the input file where the error occurred, if applicable. + */ + line?: number | null; + /** + * A human-readable message providing more details about the error. + */ + message?: string; + /** + * The name of the parameter that caused the error, if applicable. + */ + param?: string | null; +} +/** + * The request counts for different statuses within the batch. + */ +export interface BatchRequestCounts { + /** + * Number of requests that have been completed successfully. + */ + completed: number; + /** + * Number of requests that have failed. + */ + failed: number; + /** + * Total number of requests in the batch. + */ + total: number; +} +export interface BatchCreateParams { + /** + * The time frame within which the batch should be processed. Currently only `24h` + * is supported. + */ + completion_window: '24h'; + /** + * The endpoint to be used for all requests in the batch. Currently + * `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` + * are supported. Note that `/v1/embeddings` batches are also restricted to a + * maximum of 50,000 embedding inputs across all requests in the batch. + */ + endpoint: '/v1/responses' | '/v1/chat/completions' | '/v1/embeddings' | '/v1/completions'; + /** + * The ID of an uploaded file that contains requests for the new batch. + * + * See [upload file](https://platform.openai.com/docs/api-reference/files/create) + * for how to upload a file. + * + * Your input file must be formatted as a + * [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), + * and must be uploaded with the purpose `batch`. The file can contain up to 50,000 + * requests, and can be up to 200 MB in size. + */ + input_file_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The expiration policy for the output and/or error file that are generated for a + * batch. + */ + output_expires_after?: BatchCreateParams.OutputExpiresAfter; +} +export declare namespace BatchCreateParams { + /** + * The expiration policy for the output and/or error file that are generated for a + * batch. + */ + interface OutputExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. Note that the anchor is the file creation time, not the time the + * batch is created. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface BatchListParams extends CursorPageParams { +} +export declare namespace Batches { + export { type Batch as Batch, type BatchError as BatchError, type BatchRequestCounts as BatchRequestCounts, type BatchesPage as BatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, }; +} +//# sourceMappingURL=batches.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..32fc308e0a58f7f7e7d1e393a16069a8882714e3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAItE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC;IAIlC;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;CA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KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..394478fdbe1e213622345b14ed1e58ed87a90b78 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts @@ -0,0 +1,217 @@ +import { APIResource } from "../core/resource.js"; +import * as BatchesAPI from "./batches.js"; +import * as Shared from "./shared.js"; +import { APIPromise } from "../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Batches extends APIResource { + /** + * Creates and executes a batch from an uploaded file of requests + */ + create(body: BatchCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a batch. + */ + retrieve(batchID: string, options?: RequestOptions): APIPromise; + /** + * List your organization's batches. + */ + list(query?: BatchListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Cancels an in-progress batch. The batch will be in status `cancelling` for up to + * 10 minutes, before changing to `cancelled`, where it will have partial results + * (if any) available in the output file. + */ + cancel(batchID: string, options?: RequestOptions): APIPromise; +} +export type BatchesPage = CursorPage; +export interface Batch { + id: string; + /** + * The time frame within which the batch should be processed. + */ + completion_window: string; + /** + * The Unix timestamp (in seconds) for when the batch was created. + */ + created_at: number; + /** + * The OpenAI API endpoint used by the batch. + */ + endpoint: string; + /** + * The ID of the input file for the batch. + */ + input_file_id: string; + /** + * The object type, which is always `batch`. + */ + object: 'batch'; + /** + * The current status of the batch. + */ + status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled'; + /** + * The Unix timestamp (in seconds) for when the batch was cancelled. + */ + cancelled_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started cancelling. + */ + cancelling_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch was completed. + */ + completed_at?: number; + /** + * The ID of the file containing the outputs of requests with errors. + */ + error_file_id?: string; + errors?: Batch.Errors; + /** + * The Unix timestamp (in seconds) for when the batch expired. + */ + expired_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch will expire. + */ + expires_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch failed. + */ + failed_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started finalizing. + */ + finalizing_at?: number; + /** + * The Unix timestamp (in seconds) for when the batch started processing. + */ + in_progress_at?: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The ID of the file containing the outputs of successfully executed requests. + */ + output_file_id?: string; + /** + * The request counts for different statuses within the batch. + */ + request_counts?: BatchRequestCounts; +} +export declare namespace Batch { + interface Errors { + data?: Array; + /** + * The object type, which is always `list`. + */ + object?: string; + } +} +export interface BatchError { + /** + * An error code identifying the error type. + */ + code?: string; + /** + * The line number of the input file where the error occurred, if applicable. + */ + line?: number | null; + /** + * A human-readable message providing more details about the error. + */ + message?: string; + /** + * The name of the parameter that caused the error, if applicable. + */ + param?: string | null; +} +/** + * The request counts for different statuses within the batch. + */ +export interface BatchRequestCounts { + /** + * Number of requests that have been completed successfully. + */ + completed: number; + /** + * Number of requests that have failed. + */ + failed: number; + /** + * Total number of requests in the batch. + */ + total: number; +} +export interface BatchCreateParams { + /** + * The time frame within which the batch should be processed. Currently only `24h` + * is supported. + */ + completion_window: '24h'; + /** + * The endpoint to be used for all requests in the batch. Currently + * `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` + * are supported. Note that `/v1/embeddings` batches are also restricted to a + * maximum of 50,000 embedding inputs across all requests in the batch. + */ + endpoint: '/v1/responses' | '/v1/chat/completions' | '/v1/embeddings' | '/v1/completions'; + /** + * The ID of an uploaded file that contains requests for the new batch. + * + * See [upload file](https://platform.openai.com/docs/api-reference/files/create) + * for how to upload a file. + * + * Your input file must be formatted as a + * [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), + * and must be uploaded with the purpose `batch`. The file can contain up to 50,000 + * requests, and can be up to 200 MB in size. + */ + input_file_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The expiration policy for the output and/or error file that are generated for a + * batch. + */ + output_expires_after?: BatchCreateParams.OutputExpiresAfter; +} +export declare namespace BatchCreateParams { + /** + * The expiration policy for the output and/or error file that are generated for a + * batch. + */ + interface OutputExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. Note that the anchor is the file creation time, not the time the + * batch is created. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface BatchListParams extends CursorPageParams { +} +export declare namespace Batches { + export { type Batch as Batch, type BatchError as BatchError, type BatchRequestCounts as BatchRequestCounts, type BatchesPage as BatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, }; +} +//# sourceMappingURL=batches.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f96af5b67e3ed2574cdaf2fb0afdca7dc68541cd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../src/resources/bat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,iBAAiB,EAAE,KAAK,CAAC;IAEzB;;;;;OAKG;IACH,QAAQ,EAAE,eAAe,GAAG,sBAAsB,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;IAE1F;;;;;;;;;;OAUG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;CAC7D;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;;OAGG;IACH,UAAiB,kBAAkB;QACjC;;;;WAIG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;CAAG;AAE5D,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js new file mode 100644 index 0000000000000000000000000000000000000000..41961de26e6e22fdf146456a0bafd2c7fbdb5c66 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js @@ -0,0 +1,37 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Batches = void 0; +const resource_1 = require("../core/resource.js"); +const pagination_1 = require("../core/pagination.js"); +const path_1 = require("../internal/utils/path.js"); +class Batches extends resource_1.APIResource { + /** + * Creates and executes a batch from an uploaded file of requests + */ + create(body, options) { + return this._client.post('/batches', { body, ...options }); + } + /** + * Retrieves a batch. + */ + retrieve(batchID, options) { + return this._client.get((0, path_1.path) `/batches/${batchID}`, options); + } + /** + * List your organization's batches. + */ + list(query = {}, options) { + return this._client.getAPIList('/batches', (pagination_1.CursorPage), { query, ...options }); + } + /** + * Cancels an in-progress batch. The batch will be in status `cancelling` for up to + * 10 minutes, before changing to `cancelled`, where it will have partial results + * (if any) available in the output file. + */ + cancel(batchID, options) { + return this._client.post((0, path_1.path) `/batches/${batchID}/cancel`, options); + } +} +exports.Batches = Batches; +//# sourceMappingURL=batches.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c67ed861de74569498a15158cb3ccf28accc2a38 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"batches.js","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,uBAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AAjCD,0BAiCC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs new file mode 100644 index 0000000000000000000000000000000000000000..3317552b60a6faa2c5097189d3aac65a74af34ce --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +import { CursorPage } from "../core/pagination.mjs"; +import { path } from "../internal/utils/path.mjs"; +export class Batches extends APIResource { + /** + * Creates and executes a batch from an uploaded file of requests + */ + create(body, options) { + return this._client.post('/batches', { body, ...options }); + } + /** + * Retrieves a batch. + */ + retrieve(batchID, options) { + return this._client.get(path `/batches/${batchID}`, options); + } + /** + * List your organization's batches. + */ + list(query = {}, options) { + return this._client.getAPIList('/batches', (CursorPage), { query, ...options }); + } + /** + * Cancels an in-progress batch. The batch will be in status `cancelling` for up to + * 10 minutes, before changing to `cancelled`, where it will have partial results + * (if any) available in the output file. + */ + cancel(batchID, options) { + return this._client.post(path `/batches/${batchID}/cancel`, options); + } +} +//# sourceMappingURL=batches.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..f4c2312f97b2a3ae0cdf7fbb190e5f2c7e62e256 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/batches.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,UAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..42b229dab494758715e344894456d4012cca27d6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts @@ -0,0 +1,2 @@ +export * from "./beta/index.mjs"; +//# sourceMappingURL=beta.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..55303b68f0b44c8eaee87cb7887de46e643bdd53 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../src/resources/beta.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..03922ad3616559c41244308b6eb22ab9d5ce6b08 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts @@ -0,0 +1,2 @@ +export * from "./beta/index.js"; +//# sourceMappingURL=beta.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..04b228170fe2230522f33df109de2c46f5989bc7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../src/resources/beta.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js new file mode 100644 index 0000000000000000000000000000000000000000..4bcc05c863286cbd4f1c82e001ae381967657dfb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./beta/index.js"), exports); +//# sourceMappingURL=beta.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js.map new file mode 100644 index 0000000000000000000000000000000000000000..800b37085f60721ceaed52a1388651142fd2914d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.js.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.js","sourceRoot":"","sources":["../src/resources/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs new file mode 100644 index 0000000000000000000000000000000000000000..db74562ebb7be6911cfbb1ccf649f7a16fa2b81f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./beta/index.mjs"; +//# sourceMappingURL=beta.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..385fa153027702b5ca0c985d6d372812b2df6e9e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../src/resources/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a3a62149f9e540777726fd47c64e74e7534230ed --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts @@ -0,0 +1,1232 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as Shared from "../shared.mjs"; +import * as MessagesAPI from "./threads/messages.mjs"; +import * as ThreadsAPI from "./threads/threads.mjs"; +import * as RunsAPI from "./threads/runs/runs.mjs"; +import * as StepsAPI from "./threads/runs/steps.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +import { AssistantStream } from "../../lib/AssistantStream.mjs"; +export declare class Assistants extends APIResource { + /** + * Create an assistant with a model and instructions. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.create({ + * model: 'gpt-4o', + * }); + * ``` + */ + create(body: AssistantCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.retrieve( + * 'assistant_id', + * ); + * ``` + */ + retrieve(assistantID: string, options?: RequestOptions): APIPromise; + /** + * Modifies an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.update( + * 'assistant_id', + * ); + * ``` + */ + update(assistantID: string, body: AssistantUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of assistants. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const assistant of client.beta.assistants.list()) { + * // ... + * } + * ``` + */ + list(query?: AssistantListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an assistant. + * + * @example + * ```ts + * const assistantDeleted = + * await client.beta.assistants.delete('assistant_id'); + * ``` + */ + delete(assistantID: string, options?: RequestOptions): APIPromise; +} +export type AssistantsPage = CursorPage; +/** + * Represents an `assistant` that can call the model and use tools. + */ +export interface Assistant { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the assistant was created. + */ + created_at: number; + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: string; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name: string | null; + /** + * The object type, which is always `assistant`. + */ + object: 'assistant'; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools: Array; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: Assistant.ToolResources | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace Assistant { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter`` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } +} +export interface AssistantDeleted { + id: string; + deleted: boolean; + object: 'assistant.deleted'; +} +/** + * Represents an event emitted when streaming a Run. + * + * Each event in a server-sent events stream has an `event` and `data` property: + * + * ``` + * event: thread.created + * data: {"id": "thread_123", "object": "thread", ...} + * ``` + * + * We emit events whenever a new object is created, transitions to a new state, or + * is being streamed in parts (deltas). For example, we emit `thread.run.created` + * when a new run is created, `thread.run.completed` when a run completes, and so + * on. When an Assistant chooses to create a message during a run, we emit a + * `thread.message.created event`, a `thread.message.in_progress` event, many + * `thread.message.delta` events, and finally a `thread.message.completed` event. + * + * We may add additional events over time, so we recommend handling unknown events + * gracefully in your code. See the + * [Assistants API quickstart](https://platform.openai.com/docs/assistants/overview) + * to learn how to integrate the Assistants API with streaming. + */ +export type AssistantStreamEvent = AssistantStreamEvent.ThreadCreated | AssistantStreamEvent.ThreadRunCreated | AssistantStreamEvent.ThreadRunQueued | AssistantStreamEvent.ThreadRunInProgress | AssistantStreamEvent.ThreadRunRequiresAction | AssistantStreamEvent.ThreadRunCompleted | AssistantStreamEvent.ThreadRunIncomplete | AssistantStreamEvent.ThreadRunFailed | AssistantStreamEvent.ThreadRunCancelling | AssistantStreamEvent.ThreadRunCancelled | AssistantStreamEvent.ThreadRunExpired | AssistantStreamEvent.ThreadRunStepCreated | AssistantStreamEvent.ThreadRunStepInProgress | AssistantStreamEvent.ThreadRunStepDelta | AssistantStreamEvent.ThreadRunStepCompleted | AssistantStreamEvent.ThreadRunStepFailed | AssistantStreamEvent.ThreadRunStepCancelled | AssistantStreamEvent.ThreadRunStepExpired | AssistantStreamEvent.ThreadMessageCreated | AssistantStreamEvent.ThreadMessageInProgress | AssistantStreamEvent.ThreadMessageDelta | AssistantStreamEvent.ThreadMessageCompleted | AssistantStreamEvent.ThreadMessageIncomplete | AssistantStreamEvent.ErrorEvent; +export declare namespace AssistantStreamEvent { + /** + * Occurs when a new + * [thread](https://platform.openai.com/docs/api-reference/threads/object) is + * created. + */ + interface ThreadCreated { + /** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ + data: ThreadsAPI.Thread; + event: 'thread.created'; + /** + * Whether to enable input audio transcription. + */ + enabled?: boolean; + } + /** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ + interface ThreadRunCreated { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.created'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `queued` status. + */ + interface ThreadRunQueued { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.queued'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to an `in_progress` status. + */ + interface ThreadRunInProgress { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.in_progress'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `requires_action` status. + */ + interface ThreadRunRequiresAction { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.requires_action'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is completed. + */ + interface ThreadRunCompleted { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.completed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * ends with status `incomplete`. + */ + interface ThreadRunIncomplete { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.incomplete'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * fails. + */ + interface ThreadRunFailed { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.failed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `cancelling` status. + */ + interface ThreadRunCancelling { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelling'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is cancelled. + */ + interface ThreadRunCancelled { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelled'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * expires. + */ + interface ThreadRunExpired { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.expired'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ + interface ThreadRunStepCreated { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.created'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * moves to an `in_progress` state. + */ + interface ThreadRunStepInProgress { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.in_progress'; + } + /** + * Occurs when parts of a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * are being streamed. + */ + interface ThreadRunStepDelta { + /** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ + data: StepsAPI.RunStepDeltaEvent; + event: 'thread.run.step.delta'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is completed. + */ + interface ThreadRunStepCompleted { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.completed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * fails. + */ + interface ThreadRunStepFailed { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.failed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is cancelled. + */ + interface ThreadRunStepCancelled { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.cancelled'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * expires. + */ + interface ThreadRunStepExpired { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.expired'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ + interface ThreadMessageCreated { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.created'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) moves + * to an `in_progress` state. + */ + interface ThreadMessageInProgress { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.in_progress'; + } + /** + * Occurs when parts of a + * [Message](https://platform.openai.com/docs/api-reference/messages/object) are + * being streamed. + */ + interface ThreadMessageDelta { + /** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ + data: MessagesAPI.MessageDeltaEvent; + event: 'thread.message.delta'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * completed. + */ + interface ThreadMessageCompleted { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.completed'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) ends + * before it is completed. + */ + interface ThreadMessageIncomplete { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.incomplete'; + } + /** + * Occurs when an + * [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs. + * This can happen due to an internal server error or a timeout. + */ + interface ErrorEvent { + data: Shared.ErrorObject; + event: 'error'; + } +} +export type AssistantTool = CodeInterpreterTool | FileSearchTool | FunctionTool; +export interface CodeInterpreterTool { + /** + * The type of tool being defined: `code_interpreter` + */ + type: 'code_interpreter'; +} +export interface FileSearchTool { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + /** + * Overrides for the file search tool. + */ + file_search?: FileSearchTool.FileSearch; +} +export declare namespace FileSearchTool { + /** + * Overrides for the file search tool. + */ + interface FileSearch { + /** + * The maximum number of results the file search tool should output. The default is + * 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between + * 1 and 50 inclusive. + * + * Note that the file search tool may output fewer than `max_num_results` results. + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + max_num_results?: number; + /** + * The ranking options for the file search. If not specified, the file search tool + * will use the `auto` ranker and a score_threshold of 0. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + ranking_options?: FileSearch.RankingOptions; + } + namespace FileSearch { + /** + * The ranking options for the file search. If not specified, the file search tool + * will use the `auto` ranker and a score_threshold of 0. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + interface RankingOptions { + /** + * The score threshold for the file search. All values must be a floating point + * number between 0 and 1. + */ + score_threshold: number; + /** + * The ranker to use for the file search. If not specified will use the `auto` + * ranker. + */ + ranker?: 'auto' | 'default_2024_08_21'; + } + } +} +export interface FunctionTool { + function: Shared.FunctionDefinition; + /** + * The type of tool being defined: `function` + */ + type: 'function'; +} +/** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ +export type MessageStreamEvent = MessageStreamEvent.ThreadMessageCreated | MessageStreamEvent.ThreadMessageInProgress | MessageStreamEvent.ThreadMessageDelta | MessageStreamEvent.ThreadMessageCompleted | MessageStreamEvent.ThreadMessageIncomplete; +export declare namespace MessageStreamEvent { + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ + interface ThreadMessageCreated { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.created'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) moves + * to an `in_progress` state. + */ + interface ThreadMessageInProgress { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.in_progress'; + } + /** + * Occurs when parts of a + * [Message](https://platform.openai.com/docs/api-reference/messages/object) are + * being streamed. + */ + interface ThreadMessageDelta { + /** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ + data: MessagesAPI.MessageDeltaEvent; + event: 'thread.message.delta'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * completed. + */ + interface ThreadMessageCompleted { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.completed'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) ends + * before it is completed. + */ + interface ThreadMessageIncomplete { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.incomplete'; + } +} +/** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ +export type RunStepStreamEvent = RunStepStreamEvent.ThreadRunStepCreated | RunStepStreamEvent.ThreadRunStepInProgress | RunStepStreamEvent.ThreadRunStepDelta | RunStepStreamEvent.ThreadRunStepCompleted | RunStepStreamEvent.ThreadRunStepFailed | RunStepStreamEvent.ThreadRunStepCancelled | RunStepStreamEvent.ThreadRunStepExpired; +export declare namespace RunStepStreamEvent { + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ + interface ThreadRunStepCreated { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.created'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * moves to an `in_progress` state. + */ + interface ThreadRunStepInProgress { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.in_progress'; + } + /** + * Occurs when parts of a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * are being streamed. + */ + interface ThreadRunStepDelta { + /** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ + data: StepsAPI.RunStepDeltaEvent; + event: 'thread.run.step.delta'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is completed. + */ + interface ThreadRunStepCompleted { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.completed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * fails. + */ + interface ThreadRunStepFailed { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.failed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is cancelled. + */ + interface ThreadRunStepCancelled { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.cancelled'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * expires. + */ + interface ThreadRunStepExpired { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.expired'; + } +} +/** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ +export type RunStreamEvent = RunStreamEvent.ThreadRunCreated | RunStreamEvent.ThreadRunQueued | RunStreamEvent.ThreadRunInProgress | RunStreamEvent.ThreadRunRequiresAction | RunStreamEvent.ThreadRunCompleted | RunStreamEvent.ThreadRunIncomplete | RunStreamEvent.ThreadRunFailed | RunStreamEvent.ThreadRunCancelling | RunStreamEvent.ThreadRunCancelled | RunStreamEvent.ThreadRunExpired; +export declare namespace RunStreamEvent { + /** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ + interface ThreadRunCreated { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.created'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `queued` status. + */ + interface ThreadRunQueued { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.queued'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to an `in_progress` status. + */ + interface ThreadRunInProgress { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.in_progress'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `requires_action` status. + */ + interface ThreadRunRequiresAction { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.requires_action'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is completed. + */ + interface ThreadRunCompleted { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.completed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * ends with status `incomplete`. + */ + interface ThreadRunIncomplete { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.incomplete'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * fails. + */ + interface ThreadRunFailed { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.failed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `cancelling` status. + */ + interface ThreadRunCancelling { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelling'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is cancelled. + */ + interface ThreadRunCancelled { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelled'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * expires. + */ + interface ThreadRunExpired { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.expired'; + } +} +/** + * Occurs when a new + * [thread](https://platform.openai.com/docs/api-reference/threads/object) is + * created. + */ +export interface ThreadStreamEvent { + /** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ + data: ThreadsAPI.Thread; + event: 'thread.created'; + /** + * Whether to enable input audio transcription. + */ + enabled?: boolean; +} +export interface AssistantCreateParams { + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | Shared.ChatModel; + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description?: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions?: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name?: string | null; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: AssistantCreateParams.ToolResources | null; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace AssistantCreateParams { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this assistant. There can be a maximum of 1 + * vector store attached to the assistant. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } +} +export interface AssistantUpdateParams { + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description?: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions?: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model?: (string & {}) | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4.5-preview' | 'gpt-4.5-preview-2025-02-27' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613'; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name?: string | null; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: AssistantUpdateParams.ToolResources | null; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace AssistantUpdateParams { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * Overrides the list of + * [file](https://platform.openai.com/docs/api-reference/files) IDs made available + * to the `code_interpreter` tool. There can be a maximum of 20 files associated + * with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * Overrides the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } +} +export interface AssistantListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Assistants { + export { type Assistant as Assistant, type AssistantDeleted as AssistantDeleted, type AssistantStreamEvent as AssistantStreamEvent, type AssistantTool as AssistantTool, type CodeInterpreterTool as CodeInterpreterTool, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type MessageStreamEvent as MessageStreamEvent, type RunStepStreamEvent as RunStepStreamEvent, type RunStreamEvent as RunStreamEvent, type ThreadStreamEvent as ThreadStreamEvent, type AssistantsPage as AssistantsPage, type AssistantCreateParams as AssistantCreateParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantListParams as AssistantListParams, }; + export { AssistantStream }; +} +//# sourceMappingURL=assistants.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..aefad493d59e39163c1c11b7bba078c1462de39c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"assistants.d.mts","sourceRoot":"","sources":["../../src/resources/beta/assistants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,OAAO;OACZ,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EA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SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a5cb2527f2a8fc3dc08317641039ce7767848281 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts @@ -0,0 +1,1232 @@ +import { APIResource } from "../../core/resource.js"; +import * as Shared from "../shared.js"; +import * as MessagesAPI from "./threads/messages.js"; +import * as ThreadsAPI from "./threads/threads.js"; +import * as RunsAPI from "./threads/runs/runs.js"; +import * as StepsAPI from "./threads/runs/steps.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +import { AssistantStream } from "../../lib/AssistantStream.js"; +export declare class Assistants extends APIResource { + /** + * Create an assistant with a model and instructions. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.create({ + * model: 'gpt-4o', + * }); + * ``` + */ + create(body: AssistantCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.retrieve( + * 'assistant_id', + * ); + * ``` + */ + retrieve(assistantID: string, options?: RequestOptions): APIPromise; + /** + * Modifies an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.update( + * 'assistant_id', + * ); + * ``` + */ + update(assistantID: string, body: AssistantUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of assistants. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const assistant of client.beta.assistants.list()) { + * // ... + * } + * ``` + */ + list(query?: AssistantListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an assistant. + * + * @example + * ```ts + * const assistantDeleted = + * await client.beta.assistants.delete('assistant_id'); + * ``` + */ + delete(assistantID: string, options?: RequestOptions): APIPromise; +} +export type AssistantsPage = CursorPage; +/** + * Represents an `assistant` that can call the model and use tools. + */ +export interface Assistant { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the assistant was created. + */ + created_at: number; + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: string; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name: string | null; + /** + * The object type, which is always `assistant`. + */ + object: 'assistant'; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools: Array; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: Assistant.ToolResources | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace Assistant { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter`` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } +} +export interface AssistantDeleted { + id: string; + deleted: boolean; + object: 'assistant.deleted'; +} +/** + * Represents an event emitted when streaming a Run. + * + * Each event in a server-sent events stream has an `event` and `data` property: + * + * ``` + * event: thread.created + * data: {"id": "thread_123", "object": "thread", ...} + * ``` + * + * We emit events whenever a new object is created, transitions to a new state, or + * is being streamed in parts (deltas). For example, we emit `thread.run.created` + * when a new run is created, `thread.run.completed` when a run completes, and so + * on. When an Assistant chooses to create a message during a run, we emit a + * `thread.message.created event`, a `thread.message.in_progress` event, many + * `thread.message.delta` events, and finally a `thread.message.completed` event. + * + * We may add additional events over time, so we recommend handling unknown events + * gracefully in your code. See the + * [Assistants API quickstart](https://platform.openai.com/docs/assistants/overview) + * to learn how to integrate the Assistants API with streaming. + */ +export type AssistantStreamEvent = AssistantStreamEvent.ThreadCreated | AssistantStreamEvent.ThreadRunCreated | AssistantStreamEvent.ThreadRunQueued | AssistantStreamEvent.ThreadRunInProgress | AssistantStreamEvent.ThreadRunRequiresAction | AssistantStreamEvent.ThreadRunCompleted | AssistantStreamEvent.ThreadRunIncomplete | AssistantStreamEvent.ThreadRunFailed | AssistantStreamEvent.ThreadRunCancelling | AssistantStreamEvent.ThreadRunCancelled | AssistantStreamEvent.ThreadRunExpired | AssistantStreamEvent.ThreadRunStepCreated | AssistantStreamEvent.ThreadRunStepInProgress | AssistantStreamEvent.ThreadRunStepDelta | AssistantStreamEvent.ThreadRunStepCompleted | AssistantStreamEvent.ThreadRunStepFailed | AssistantStreamEvent.ThreadRunStepCancelled | AssistantStreamEvent.ThreadRunStepExpired | AssistantStreamEvent.ThreadMessageCreated | AssistantStreamEvent.ThreadMessageInProgress | AssistantStreamEvent.ThreadMessageDelta | AssistantStreamEvent.ThreadMessageCompleted | AssistantStreamEvent.ThreadMessageIncomplete | AssistantStreamEvent.ErrorEvent; +export declare namespace AssistantStreamEvent { + /** + * Occurs when a new + * [thread](https://platform.openai.com/docs/api-reference/threads/object) is + * created. + */ + interface ThreadCreated { + /** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ + data: ThreadsAPI.Thread; + event: 'thread.created'; + /** + * Whether to enable input audio transcription. + */ + enabled?: boolean; + } + /** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ + interface ThreadRunCreated { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.created'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `queued` status. + */ + interface ThreadRunQueued { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.queued'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to an `in_progress` status. + */ + interface ThreadRunInProgress { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.in_progress'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `requires_action` status. + */ + interface ThreadRunRequiresAction { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.requires_action'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is completed. + */ + interface ThreadRunCompleted { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.completed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * ends with status `incomplete`. + */ + interface ThreadRunIncomplete { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.incomplete'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * fails. + */ + interface ThreadRunFailed { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.failed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `cancelling` status. + */ + interface ThreadRunCancelling { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelling'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is cancelled. + */ + interface ThreadRunCancelled { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelled'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * expires. + */ + interface ThreadRunExpired { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.expired'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ + interface ThreadRunStepCreated { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.created'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * moves to an `in_progress` state. + */ + interface ThreadRunStepInProgress { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.in_progress'; + } + /** + * Occurs when parts of a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * are being streamed. + */ + interface ThreadRunStepDelta { + /** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ + data: StepsAPI.RunStepDeltaEvent; + event: 'thread.run.step.delta'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is completed. + */ + interface ThreadRunStepCompleted { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.completed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * fails. + */ + interface ThreadRunStepFailed { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.failed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is cancelled. + */ + interface ThreadRunStepCancelled { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.cancelled'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * expires. + */ + interface ThreadRunStepExpired { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.expired'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ + interface ThreadMessageCreated { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.created'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) moves + * to an `in_progress` state. + */ + interface ThreadMessageInProgress { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.in_progress'; + } + /** + * Occurs when parts of a + * [Message](https://platform.openai.com/docs/api-reference/messages/object) are + * being streamed. + */ + interface ThreadMessageDelta { + /** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ + data: MessagesAPI.MessageDeltaEvent; + event: 'thread.message.delta'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * completed. + */ + interface ThreadMessageCompleted { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.completed'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) ends + * before it is completed. + */ + interface ThreadMessageIncomplete { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.incomplete'; + } + /** + * Occurs when an + * [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs. + * This can happen due to an internal server error or a timeout. + */ + interface ErrorEvent { + data: Shared.ErrorObject; + event: 'error'; + } +} +export type AssistantTool = CodeInterpreterTool | FileSearchTool | FunctionTool; +export interface CodeInterpreterTool { + /** + * The type of tool being defined: `code_interpreter` + */ + type: 'code_interpreter'; +} +export interface FileSearchTool { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + /** + * Overrides for the file search tool. + */ + file_search?: FileSearchTool.FileSearch; +} +export declare namespace FileSearchTool { + /** + * Overrides for the file search tool. + */ + interface FileSearch { + /** + * The maximum number of results the file search tool should output. The default is + * 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between + * 1 and 50 inclusive. + * + * Note that the file search tool may output fewer than `max_num_results` results. + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + max_num_results?: number; + /** + * The ranking options for the file search. If not specified, the file search tool + * will use the `auto` ranker and a score_threshold of 0. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + ranking_options?: FileSearch.RankingOptions; + } + namespace FileSearch { + /** + * The ranking options for the file search. If not specified, the file search tool + * will use the `auto` ranker and a score_threshold of 0. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + interface RankingOptions { + /** + * The score threshold for the file search. All values must be a floating point + * number between 0 and 1. + */ + score_threshold: number; + /** + * The ranker to use for the file search. If not specified will use the `auto` + * ranker. + */ + ranker?: 'auto' | 'default_2024_08_21'; + } + } +} +export interface FunctionTool { + function: Shared.FunctionDefinition; + /** + * The type of tool being defined: `function` + */ + type: 'function'; +} +/** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ +export type MessageStreamEvent = MessageStreamEvent.ThreadMessageCreated | MessageStreamEvent.ThreadMessageInProgress | MessageStreamEvent.ThreadMessageDelta | MessageStreamEvent.ThreadMessageCompleted | MessageStreamEvent.ThreadMessageIncomplete; +export declare namespace MessageStreamEvent { + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * created. + */ + interface ThreadMessageCreated { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.created'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) moves + * to an `in_progress` state. + */ + interface ThreadMessageInProgress { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.in_progress'; + } + /** + * Occurs when parts of a + * [Message](https://platform.openai.com/docs/api-reference/messages/object) are + * being streamed. + */ + interface ThreadMessageDelta { + /** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ + data: MessagesAPI.MessageDeltaEvent; + event: 'thread.message.delta'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) is + * completed. + */ + interface ThreadMessageCompleted { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.completed'; + } + /** + * Occurs when a + * [message](https://platform.openai.com/docs/api-reference/messages/object) ends + * before it is completed. + */ + interface ThreadMessageIncomplete { + /** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: MessagesAPI.Message; + event: 'thread.message.incomplete'; + } +} +/** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ +export type RunStepStreamEvent = RunStepStreamEvent.ThreadRunStepCreated | RunStepStreamEvent.ThreadRunStepInProgress | RunStepStreamEvent.ThreadRunStepDelta | RunStepStreamEvent.ThreadRunStepCompleted | RunStepStreamEvent.ThreadRunStepFailed | RunStepStreamEvent.ThreadRunStepCancelled | RunStepStreamEvent.ThreadRunStepExpired; +export declare namespace RunStepStreamEvent { + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is created. + */ + interface ThreadRunStepCreated { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.created'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * moves to an `in_progress` state. + */ + interface ThreadRunStepInProgress { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.in_progress'; + } + /** + * Occurs when parts of a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * are being streamed. + */ + interface ThreadRunStepDelta { + /** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ + data: StepsAPI.RunStepDeltaEvent; + event: 'thread.run.step.delta'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is completed. + */ + interface ThreadRunStepCompleted { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.completed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * fails. + */ + interface ThreadRunStepFailed { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.failed'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * is cancelled. + */ + interface ThreadRunStepCancelled { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.cancelled'; + } + /** + * Occurs when a + * [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) + * expires. + */ + interface ThreadRunStepExpired { + /** + * Represents a step in execution of a run. + */ + data: StepsAPI.RunStep; + event: 'thread.run.step.expired'; + } +} +/** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ +export type RunStreamEvent = RunStreamEvent.ThreadRunCreated | RunStreamEvent.ThreadRunQueued | RunStreamEvent.ThreadRunInProgress | RunStreamEvent.ThreadRunRequiresAction | RunStreamEvent.ThreadRunCompleted | RunStreamEvent.ThreadRunIncomplete | RunStreamEvent.ThreadRunFailed | RunStreamEvent.ThreadRunCancelling | RunStreamEvent.ThreadRunCancelled | RunStreamEvent.ThreadRunExpired; +export declare namespace RunStreamEvent { + /** + * Occurs when a new + * [run](https://platform.openai.com/docs/api-reference/runs/object) is created. + */ + interface ThreadRunCreated { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.created'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `queued` status. + */ + interface ThreadRunQueued { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.queued'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to an `in_progress` status. + */ + interface ThreadRunInProgress { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.in_progress'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `requires_action` status. + */ + interface ThreadRunRequiresAction { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.requires_action'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is completed. + */ + interface ThreadRunCompleted { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.completed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * ends with status `incomplete`. + */ + interface ThreadRunIncomplete { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.incomplete'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * fails. + */ + interface ThreadRunFailed { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.failed'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * moves to a `cancelling` status. + */ + interface ThreadRunCancelling { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelling'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * is cancelled. + */ + interface ThreadRunCancelled { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.cancelled'; + } + /** + * Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) + * expires. + */ + interface ThreadRunExpired { + /** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ + data: RunsAPI.Run; + event: 'thread.run.expired'; + } +} +/** + * Occurs when a new + * [thread](https://platform.openai.com/docs/api-reference/threads/object) is + * created. + */ +export interface ThreadStreamEvent { + /** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ + data: ThreadsAPI.Thread; + event: 'thread.created'; + /** + * Whether to enable input audio transcription. + */ + enabled?: boolean; +} +export interface AssistantCreateParams { + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | Shared.ChatModel; + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description?: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions?: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name?: string | null; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: AssistantCreateParams.ToolResources | null; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace AssistantCreateParams { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this assistant. There can be a maximum of 1 + * vector store attached to the assistant. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } +} +export interface AssistantUpdateParams { + /** + * The description of the assistant. The maximum length is 512 characters. + */ + description?: string | null; + /** + * The system instructions that the assistant uses. The maximum length is 256,000 + * characters. + */ + instructions?: string | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model?: (string & {}) | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4.5-preview' | 'gpt-4.5-preview-2025-02-27' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613'; + /** + * The name of the assistant. The maximum length is 256 characters. + */ + name?: string | null; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: AssistantUpdateParams.ToolResources | null; + /** + * A list of tool enabled on the assistant. There can be a maximum of 128 tools per + * assistant. Tools can be of types `code_interpreter`, `file_search`, or + * `function`. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; +} +export declare namespace AssistantUpdateParams { + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * Overrides the list of + * [file](https://platform.openai.com/docs/api-reference/files) IDs made available + * to the `code_interpreter` tool. There can be a maximum of 20 files associated + * with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * Overrides the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } +} +export interface AssistantListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Assistants { + export { type Assistant as Assistant, type AssistantDeleted as AssistantDeleted, type AssistantStreamEvent as AssistantStreamEvent, type AssistantTool as AssistantTool, type CodeInterpreterTool as CodeInterpreterTool, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type MessageStreamEvent as MessageStreamEvent, type RunStepStreamEvent as RunStepStreamEvent, type RunStreamEvent as RunStreamEvent, type ThreadStreamEvent as ThreadStreamEvent, type AssistantsPage as AssistantsPage, type AssistantCreateParams as AssistantCreateParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantListParams as AssistantListParams, }; + export { AssistantStream }; +} +//# sourceMappingURL=assistants.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..8efd7868490eb86c2529c0b299e6045ca11791a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"assistants.d.ts","sourceRoot":"","sources":["../../src/resources/beta/assistants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,OAAO;OACZ,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;OAElB,EAAE,eAAe,EAAE;AAE1B,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAQpF;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAO9E;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAQzG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,cAAc,EAAE,SAAS,CAAC;IAQzC;;;;;;;;OAQG;IACH,MAAM,CAAC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AKG;IACH,UAAiB,aAAa;QAC5B,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC;QAEjD,WAAW,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;KACxC;IAED,UAAiB,aAAa,CAAC;QAC7B,UAAiB,eAAe;YAC9B;;;;;eAKG;YACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SAC1B;QAED,UAAiB,UAAU;YACzB;;;;;eAKG;YACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SAClC;KACF;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js new file mode 100644 index 0000000000000000000000000000000000000000..fc093cd917fe1c79856212625909d58612f0c58e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js @@ -0,0 +1,95 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Assistants = void 0; +const resource_1 = require("../../core/resource.js"); +const pagination_1 = require("../../core/pagination.js"); +const headers_1 = require("../../internal/headers.js"); +const path_1 = require("../../internal/utils/path.js"); +class Assistants extends resource_1.APIResource { + /** + * Create an assistant with a model and instructions. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.create({ + * model: 'gpt-4o', + * }); + * ``` + */ + create(body, options) { + return this._client.post('/assistants', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.retrieve( + * 'assistant_id', + * ); + * ``` + */ + retrieve(assistantID, options) { + return this._client.get((0, path_1.path) `/assistants/${assistantID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.update( + * 'assistant_id', + * ); + * ``` + */ + update(assistantID, body, options) { + return this._client.post((0, path_1.path) `/assistants/${assistantID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of assistants. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const assistant of client.beta.assistants.list()) { + * // ... + * } + * ``` + */ + list(query = {}, options) { + return this._client.getAPIList('/assistants', (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete an assistant. + * + * @example + * ```ts + * const assistantDeleted = + * await client.beta.assistants.delete('assistant_id'); + * ``` + */ + delete(assistantID, options) { + return this._client.delete((0, path_1.path) `/assistants/${assistantID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.Assistants = Assistants; +//# sourceMappingURL=assistants.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js.map new file mode 100644 index 0000000000000000000000000000000000000000..90251aff89402b2b565540c07b7b4b5950d54627 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"assistants.js","sourceRoot":"","sources":["../../src/resources/beta/assistants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAOlD,yDAAuF;AACvF,uDAAsD;AAEtD,uDAAiD;AAGjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAmB,EAAE,IAA2B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,uBAAqB,CAAA,EAAE;YACnE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA3FD,gCA2FC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs new file mode 100644 index 0000000000000000000000000000000000000000..34ca97ed04509d02b014cb18bda535b9831569ec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs @@ -0,0 +1,91 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Assistants extends APIResource { + /** + * Create an assistant with a model and instructions. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.create({ + * model: 'gpt-4o', + * }); + * ``` + */ + create(body, options) { + return this._client.post('/assistants', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.retrieve( + * 'assistant_id', + * ); + * ``` + */ + retrieve(assistantID, options) { + return this._client.get(path `/assistants/${assistantID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies an assistant. + * + * @example + * ```ts + * const assistant = await client.beta.assistants.update( + * 'assistant_id', + * ); + * ``` + */ + update(assistantID, body, options) { + return this._client.post(path `/assistants/${assistantID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of assistants. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const assistant of client.beta.assistants.list()) { + * // ... + * } + * ``` + */ + list(query = {}, options) { + return this._client.getAPIList('/assistants', (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete an assistant. + * + * @example + * ```ts + * const assistantDeleted = + * await client.beta.assistants.delete('assistant_id'); + * ``` + */ + delete(assistantID, options) { + return this._client.delete(path `/assistants/${assistantID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +//# sourceMappingURL=assistants.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..8ea6ae34a266317cc73f26d6bb50cd4a697c2032 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/assistants.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"assistants.mjs","sourceRoot":"","sources":["../../src/resources/beta/assistants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAOf,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAGf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAmB,EAAE,IAA2B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,UAAqB,CAAA,EAAE;YACnE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..04dc3cca78f412fd8e2c9a57f2f3ab48707ec593 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts @@ -0,0 +1,18 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as AssistantsAPI from "./assistants.mjs"; +import { Assistant, AssistantCreateParams, AssistantDeleted, AssistantListParams, AssistantStreamEvent, AssistantTool, AssistantUpdateParams, Assistants, AssistantsPage, CodeInterpreterTool, FileSearchTool, FunctionTool, MessageStreamEvent, RunStepStreamEvent, RunStreamEvent, ThreadStreamEvent } from "./assistants.mjs"; +import * as RealtimeAPI from "./realtime/realtime.mjs"; +import { ConversationCreatedEvent, ConversationItem, ConversationItemContent, ConversationItemCreateEvent, ConversationItemCreatedEvent, ConversationItemDeleteEvent, ConversationItemDeletedEvent, ConversationItemInputAudioTranscriptionCompletedEvent, ConversationItemInputAudioTranscriptionDeltaEvent, ConversationItemInputAudioTranscriptionFailedEvent, ConversationItemRetrieveEvent, ConversationItemTruncateEvent, ConversationItemTruncatedEvent, ConversationItemWithReference, ErrorEvent, InputAudioBufferAppendEvent, InputAudioBufferClearEvent, InputAudioBufferClearedEvent, InputAudioBufferCommitEvent, InputAudioBufferCommittedEvent, InputAudioBufferSpeechStartedEvent, InputAudioBufferSpeechStoppedEvent, RateLimitsUpdatedEvent, Realtime, RealtimeClientEvent, RealtimeResponse, RealtimeResponseStatus, RealtimeResponseUsage, RealtimeServerEvent, ResponseAudioDeltaEvent, ResponseAudioDoneEvent, ResponseAudioTranscriptDeltaEvent, ResponseAudioTranscriptDoneEvent, ResponseCancelEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreateEvent, ResponseCreatedEvent, ResponseDoneEvent, ResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseTextDeltaEvent, ResponseTextDoneEvent, SessionCreatedEvent, SessionUpdateEvent, SessionUpdatedEvent, TranscriptionSessionUpdate, TranscriptionSessionUpdatedEvent } from "./realtime/realtime.mjs"; +import * as ThreadsAPI from "./threads/threads.mjs"; +import { AssistantResponseFormatOption, AssistantToolChoice, AssistantToolChoiceFunction, AssistantToolChoiceOption, Thread, ThreadCreateAndRunParams, ThreadCreateAndRunParamsNonStreaming, ThreadCreateAndRunParamsStreaming, ThreadCreateAndRunPollParams, ThreadCreateAndRunStreamParams, ThreadCreateParams, ThreadDeleted, ThreadUpdateParams, Threads } from "./threads/threads.mjs"; +export declare class Beta extends APIResource { + realtime: RealtimeAPI.Realtime; + assistants: AssistantsAPI.Assistants; + threads: ThreadsAPI.Threads; +} +export declare namespace Beta { + export { Realtime as Realtime, type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, }; + export { Assistants as Assistants, type Assistant as Assistant, type AssistantDeleted as AssistantDeleted, type AssistantStreamEvent as AssistantStreamEvent, type AssistantTool as AssistantTool, type CodeInterpreterTool as CodeInterpreterTool, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type MessageStreamEvent as MessageStreamEvent, type RunStepStreamEvent as RunStepStreamEvent, type RunStreamEvent as RunStreamEvent, type ThreadStreamEvent as ThreadStreamEvent, type AssistantsPage as AssistantsPage, type AssistantCreateParams as AssistantCreateParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantListParams as AssistantListParams, }; + export { Threads as Threads, type AssistantResponseFormatOption as AssistantResponseFormatOption, type AssistantToolChoice as AssistantToolChoice, type AssistantToolChoiceFunction as AssistantToolChoiceFunction, type AssistantToolChoiceOption as AssistantToolChoiceOption, type Thread as Thread, type ThreadDeleted as ThreadDeleted, type ThreadCreateParams as ThreadCreateParams, type ThreadUpdateParams as ThreadUpdateParams, type ThreadCreateAndRunParams as ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, }; +} +//# sourceMappingURL=beta.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..2671f0ff91f78a7b672f0f14eebfc3ac3cbf16f9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EACL,SAAS,EACT,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EAClB;OACM,KAAK,WAAW;OAChB,EACL,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,qDAAqD,EACrD,iDAAiD,EACjD,kDAAkD,EAClD,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,UAAU,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,sBAAsB,EACtB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EAC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,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..46d2b4c1bb9db0a9cd65cc4fb38e7b07ee43ca25 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts @@ -0,0 +1,18 @@ +import { APIResource } from "../../core/resource.js"; +import * as AssistantsAPI from "./assistants.js"; +import { Assistant, AssistantCreateParams, AssistantDeleted, AssistantListParams, AssistantStreamEvent, AssistantTool, AssistantUpdateParams, Assistants, AssistantsPage, CodeInterpreterTool, FileSearchTool, FunctionTool, MessageStreamEvent, RunStepStreamEvent, RunStreamEvent, ThreadStreamEvent } from "./assistants.js"; +import * as RealtimeAPI from "./realtime/realtime.js"; +import { ConversationCreatedEvent, ConversationItem, ConversationItemContent, ConversationItemCreateEvent, ConversationItemCreatedEvent, ConversationItemDeleteEvent, ConversationItemDeletedEvent, ConversationItemInputAudioTranscriptionCompletedEvent, ConversationItemInputAudioTranscriptionDeltaEvent, ConversationItemInputAudioTranscriptionFailedEvent, ConversationItemRetrieveEvent, ConversationItemTruncateEvent, ConversationItemTruncatedEvent, ConversationItemWithReference, ErrorEvent, InputAudioBufferAppendEvent, InputAudioBufferClearEvent, InputAudioBufferClearedEvent, InputAudioBufferCommitEvent, InputAudioBufferCommittedEvent, InputAudioBufferSpeechStartedEvent, InputAudioBufferSpeechStoppedEvent, RateLimitsUpdatedEvent, Realtime, RealtimeClientEvent, RealtimeResponse, RealtimeResponseStatus, RealtimeResponseUsage, RealtimeServerEvent, ResponseAudioDeltaEvent, ResponseAudioDoneEvent, ResponseAudioTranscriptDeltaEvent, ResponseAudioTranscriptDoneEvent, ResponseCancelEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreateEvent, ResponseCreatedEvent, ResponseDoneEvent, ResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseTextDeltaEvent, ResponseTextDoneEvent, SessionCreatedEvent, SessionUpdateEvent, SessionUpdatedEvent, TranscriptionSessionUpdate, TranscriptionSessionUpdatedEvent } from "./realtime/realtime.js"; +import * as ThreadsAPI from "./threads/threads.js"; +import { AssistantResponseFormatOption, AssistantToolChoice, AssistantToolChoiceFunction, AssistantToolChoiceOption, Thread, ThreadCreateAndRunParams, ThreadCreateAndRunParamsNonStreaming, ThreadCreateAndRunParamsStreaming, ThreadCreateAndRunPollParams, ThreadCreateAndRunStreamParams, ThreadCreateParams, ThreadDeleted, ThreadUpdateParams, Threads } from "./threads/threads.js"; +export declare class Beta extends APIResource { + realtime: RealtimeAPI.Realtime; + assistants: AssistantsAPI.Assistants; + threads: ThreadsAPI.Threads; +} +export declare namespace Beta { + export { Realtime as Realtime, type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, }; + export { Assistants as Assistants, type Assistant as Assistant, type AssistantDeleted as AssistantDeleted, type AssistantStreamEvent as AssistantStreamEvent, type AssistantTool as AssistantTool, type CodeInterpreterTool as CodeInterpreterTool, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type MessageStreamEvent as MessageStreamEvent, type RunStepStreamEvent as RunStepStreamEvent, type RunStreamEvent as RunStreamEvent, type ThreadStreamEvent as ThreadStreamEvent, type AssistantsPage as AssistantsPage, type AssistantCreateParams as AssistantCreateParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantListParams as AssistantListParams, }; + export { Threads as Threads, type AssistantResponseFormatOption as AssistantResponseFormatOption, type AssistantToolChoice as AssistantToolChoice, type AssistantToolChoiceFunction as AssistantToolChoiceFunction, type AssistantToolChoiceOption as AssistantToolChoiceOption, type Thread as Thread, type ThreadDeleted as ThreadDeleted, type ThreadCreateParams as ThreadCreateParams, type ThreadUpdateParams as ThreadUpdateParams, type ThreadCreateAndRunParams as ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, }; +} +//# sourceMappingURL=beta.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7c4fe51214be9e6a96cbacffc515c87cbeaadbb0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EACL,SAAS,EACT,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EAClB;OACM,KAAK,WAAW;OAChB,EACL,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B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AAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js new file mode 100644 index 0000000000000000000000000000000000000000..00103cbbbd902cd71f8865bc825060c5942652e7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js @@ -0,0 +1,25 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Beta = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const AssistantsAPI = tslib_1.__importStar(require("./assistants.js")); +const assistants_1 = require("./assistants.js"); +const RealtimeAPI = tslib_1.__importStar(require("./realtime/realtime.js")); +const realtime_1 = require("./realtime/realtime.js"); +const ThreadsAPI = tslib_1.__importStar(require("./threads/threads.js")); +const threads_1 = require("./threads/threads.js"); +class Beta extends resource_1.APIResource { + constructor() { + super(...arguments); + this.realtime = new RealtimeAPI.Realtime(this._client); + this.assistants = new AssistantsAPI.Assistants(this._client); + this.threads = new ThreadsAPI.Threads(this._client); + } +} +exports.Beta = Beta; +Beta.Realtime = realtime_1.Realtime; +Beta.Assistants = assistants_1.Assistants; +Beta.Threads = threads_1.Threads; +//# sourceMappingURL=beta.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7658cdd8012a937ab73867a6f9f5b918a2087800 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.js.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAiBsB;AACtB,4EAAmD;AACnD,qDAmD6B;AAC7B,yEAAgD;AAChD,kDAe2B;AAE3B,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAJD,oBAIC;AAED,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC7B,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a9acc916d58d389ca4ba1d17ce887acfc4fd6ff7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as AssistantsAPI from "./assistants.mjs"; +import { Assistants, } from "./assistants.mjs"; +import * as RealtimeAPI from "./realtime/realtime.mjs"; +import { Realtime, } from "./realtime/realtime.mjs"; +import * as ThreadsAPI from "./threads/threads.mjs"; +import { Threads, } from "./threads/threads.mjs"; +export class Beta extends APIResource { + constructor() { + super(...arguments); + this.realtime = new RealtimeAPI.Realtime(this._client); + this.assistants = new AssistantsAPI.Assistants(this._client); + this.threads = new ThreadsAPI.Threads(this._client); + } +} +Beta.Realtime = Realtime; +Beta.Assistants = Assistants; +Beta.Threads = Threads; +//# sourceMappingURL=beta.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..d4ed730434a951d1703235024df497662f46db15 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/beta.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAQL,UAAU,GASX;OACM,KAAK,WAAW;OAChB,EAwBL,QAAQ,GA2BT;OACM,KAAK,UAAU;OACf,EAcL,OAAO,GACR;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..9753031028e3ee57ad2ed790d5c0e4d2febee7f2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts @@ -0,0 +1,5 @@ +export { Assistants, type Assistant, type AssistantDeleted, type AssistantStreamEvent, type AssistantTool, type CodeInterpreterTool, type FileSearchTool, type FunctionTool, type MessageStreamEvent, type RunStepStreamEvent, type RunStreamEvent, type ThreadStreamEvent, type AssistantCreateParams, type AssistantUpdateParams, type AssistantListParams, type AssistantsPage, } from "./assistants.mjs"; +export { Beta } from "./beta.mjs"; +export { Realtime } from "./realtime/index.mjs"; +export { Threads, type AssistantResponseFormatOption, type AssistantToolChoice, type AssistantToolChoiceFunction, type AssistantToolChoiceOption, type Thread, type ThreadDeleted, type ThreadCreateParams, type ThreadUpdateParams, type ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, } from "./threads/index.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..952c66ffe3ec01843150a23f9a9c6215bfc5e117 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB;OACM,EAAE,IAAI,EAAE;OACR,EAAE,QAAQ,EAAE;OACZ,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b636d846467be845a541aba77dbcec1dd8879803 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts @@ -0,0 +1,5 @@ +export { Assistants, type Assistant, type AssistantDeleted, type AssistantStreamEvent, type AssistantTool, type CodeInterpreterTool, type FileSearchTool, type FunctionTool, type MessageStreamEvent, type RunStepStreamEvent, type RunStreamEvent, type ThreadStreamEvent, type AssistantCreateParams, type AssistantUpdateParams, type AssistantListParams, type AssistantsPage, } from "./assistants.js"; +export { Beta } from "./beta.js"; +export { Realtime } from "./realtime/index.js"; +export { Threads, type AssistantResponseFormatOption, type AssistantToolChoice, type AssistantToolChoiceFunction, type AssistantToolChoiceOption, type Thread, type ThreadDeleted, type ThreadCreateParams, type ThreadUpdateParams, type ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, } from "./threads/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ab24efb3a6bab8939e87a9506dc2f1172a034296 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB;OACM,EAAE,IAAI,EAAE;OACR,EAAE,QAAQ,EAAE;OACZ,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js new file mode 100644 index 0000000000000000000000000000000000000000..6ab2d85969e036b411d0728a60fd6d0f97ae38c0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js @@ -0,0 +1,13 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Threads = exports.Realtime = exports.Beta = exports.Assistants = void 0; +var assistants_1 = require("./assistants.js"); +Object.defineProperty(exports, "Assistants", { enumerable: true, get: function () { return assistants_1.Assistants; } }); +var beta_1 = require("./beta.js"); +Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } }); +var index_1 = require("./realtime/index.js"); +Object.defineProperty(exports, "Realtime", { enumerable: true, get: function () { return index_1.Realtime; } }); +var index_2 = require("./threads/index.js"); +Object.defineProperty(exports, "Threads", { enumerable: true, get: function () { return index_2.Threads; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..764765dddc13201e98bc71f8178e814a8f9939f0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAiBsB;AAhBpB,wGAAA,UAAU,OAAA;AAiBZ,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6CAA4C;AAAnC,iGAAA,QAAQ,OAAA;AACjB,4CAeyB;AAdvB,gGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..3949010cbf44d6ddc14bab256637ea56323a85c7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Assistants, } from "./assistants.mjs"; +export { Beta } from "./beta.mjs"; +export { Realtime } from "./realtime/index.mjs"; +export { Threads, } from "./threads/index.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9a013ba034978769ae88e6d05a96c3537737dad0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAgBX;OACM,EAAE,IAAI,EAAE;OACR,EAAE,QAAQ,EAAE;OACZ,EACL,OAAO,GAcR"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..e74bd13d8dbc8a9243de922314807db90294bfcd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts @@ -0,0 +1,2 @@ +export * from "./realtime/index.mjs"; +//# sourceMappingURL=realtime.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..8109d339fdb3a5637ce1801e8d4379f74c421588 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.d.mts","sourceRoot":"","sources":["../../src/resources/beta/realtime.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bcf4f50984a5f7da309057ed0a46ade57b029e18 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts @@ -0,0 +1,2 @@ +export * from "./realtime/index.js"; +//# sourceMappingURL=realtime.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..9de58ae1d93832ef327fbb67bb2f29a9877029cb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../src/resources/beta/realtime.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js new file mode 100644 index 0000000000000000000000000000000000000000..42490aaae0802d86e8e283ad5d534bab232bf968 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./realtime/index.js"), exports); +//# sourceMappingURL=realtime.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7b7093fab40d5c4ee95bb35dd2105e93157e2795 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.js","sourceRoot":"","sources":["../../src/resources/beta/realtime.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e6db7cf10e7dd89996dd10bf58b46ecd7c374863 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./realtime/index.mjs"; +//# sourceMappingURL=realtime.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4e54f7028970ccb6dce4d9038de84a6e1efbf96c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.mjs","sourceRoot":"","sources":["../../src/resources/beta/realtime.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..3478e252a56f4226f67ddd23ea81554c6caa4229 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts @@ -0,0 +1,4 @@ +export { Realtime } from "./realtime.mjs"; +export { Sessions, type Session, type SessionCreateResponse, type SessionCreateParams } from "./sessions.mjs"; +export { TranscriptionSessions, type TranscriptionSession, type TranscriptionSessionCreateParams, } from "./transcription-sessions.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..19ed1cc2624e5310f7027f7093445725cc892c92 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OAChF,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,GACtC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a5c8646d990b0a580db7a14d546dd2bc073a8dfd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts @@ -0,0 +1,4 @@ +export { Realtime } from "./realtime.js"; +export { Sessions, type Session, type SessionCreateResponse, type SessionCreateParams } from "./sessions.js"; +export { TranscriptionSessions, type TranscriptionSession, type TranscriptionSessionCreateParams, } from "./transcription-sessions.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d28ae71c1efb03cf338dd1dd4beeff572a2422c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OAChF,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,GACtC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js new file mode 100644 index 0000000000000000000000000000000000000000..94b1194751f465c4e1f3ca1290462bfbda2570fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js @@ -0,0 +1,11 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TranscriptionSessions = exports.Sessions = exports.Realtime = void 0; +var realtime_1 = require("./realtime.js"); +Object.defineProperty(exports, "Realtime", { enumerable: true, get: function () { return realtime_1.Realtime; } }); +var sessions_1 = require("./sessions.js"); +Object.defineProperty(exports, "Sessions", { enumerable: true, get: function () { return sessions_1.Sessions; } }); +var transcription_sessions_1 = require("./transcription-sessions.js"); +Object.defineProperty(exports, "TranscriptionSessions", { enumerable: true, get: function () { return transcription_sessions_1.TranscriptionSessions; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..970806e6469b413b23a7a6554731175d2ef8ccac --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/realtime/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,0CAA0G;AAAjG,oGAAA,QAAQ,OAAA;AACjB,sEAIkC;AAHhC,+HAAA,qBAAqB,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..767387328c3dddc231e926bb0da700175427b902 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Realtime } from "./realtime.mjs"; +export { Sessions } from "./sessions.mjs"; +export { TranscriptionSessions, } from "./transcription-sessions.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6560be424cb687141b32cda32af301e8e02f98f9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/realtime/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAAE;OACZ,EAAE,QAAQ,EAAsE;OAChF,EACL,qBAAqB,GAGtB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..948fea54740aeac22ddf3e9e96f6555923eb8b88 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts @@ -0,0 +1,2329 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as RealtimeAPI from "./realtime.mjs"; +import * as Shared from "../../shared.mjs"; +import * as SessionsAPI from "./sessions.mjs"; +import { Session as SessionsAPISession, SessionCreateParams, SessionCreateResponse, Sessions } from "./sessions.mjs"; +import * as TranscriptionSessionsAPI from "./transcription-sessions.mjs"; +import { TranscriptionSession, TranscriptionSessionCreateParams, TranscriptionSessions } from "./transcription-sessions.mjs"; +export declare class Realtime extends APIResource { + sessions: SessionsAPI.Sessions; + transcriptionSessions: TranscriptionSessionsAPI.TranscriptionSessions; +} +/** + * Returned when a conversation is created. Emitted right after session creation. + */ +export interface ConversationCreatedEvent { + /** + * The conversation resource. + */ + conversation: ConversationCreatedEvent.Conversation; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `conversation.created`. + */ + type: 'conversation.created'; +} +export declare namespace ConversationCreatedEvent { + /** + * The conversation resource. + */ + interface Conversation { + /** + * The unique ID of the conversation. + */ + id?: string; + /** + * The object type, must be `realtime.conversation`. + */ + object?: 'realtime.conversation'; + } +} +/** + * The item to add to the conversation. + */ +export interface ConversationItem { + /** + * The unique ID of the item, this can be generated by the client to help manage + * server-side context, but is not required because the server will generate one if + * not provided. + */ + id?: string; + /** + * The arguments of the function call (for `function_call` items). + */ + arguments?: string; + /** + * The ID of the function call (for `function_call` and `function_call_output` + * items). If passed on a `function_call_output` item, the server will check that a + * `function_call` item with the same ID exists in the conversation history. + */ + call_id?: string; + /** + * The content of the message, applicable for `message` items. + * + * - Message items of role `system` support only `input_text` content + * - Message items of role `user` support `input_text` and `input_audio` content + * - Message items of role `assistant` support `text` content. + */ + content?: Array; + /** + * The name of the function being called (for `function_call` items). + */ + name?: string; + /** + * Identifier for the API object being returned - always `realtime.item`. + */ + object?: 'realtime.item'; + /** + * The output of the function call (for `function_call_output` items). + */ + output?: string; + /** + * The role of the message sender (`user`, `assistant`, `system`), only applicable + * for `message` items. + */ + role?: 'user' | 'assistant' | 'system'; + /** + * The status of the item (`completed`, `incomplete`, `in_progress`). These have no + * effect on the conversation, but are accepted for consistency with the + * `conversation.item.created` event. + */ + status?: 'completed' | 'incomplete' | 'in_progress'; + /** + * The type of the item (`message`, `function_call`, `function_call_output`). + */ + type?: 'message' | 'function_call' | 'function_call_output'; +} +export interface ConversationItemContent { + /** + * ID of a previous conversation item to reference (for `item_reference` content + * types in `response.create` events). These can reference both client and server + * created items. + */ + id?: string; + /** + * Base64-encoded audio bytes, used for `input_audio` content type. + */ + audio?: string; + /** + * The text content, used for `input_text` and `text` content types. + */ + text?: string; + /** + * The transcript of the audio, used for `input_audio` and `audio` content types. + */ + transcript?: string; + /** + * The content type (`input_text`, `input_audio`, `item_reference`, `text`, + * `audio`). + */ + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text' | 'audio'; +} +/** + * Add a new Item to the Conversation's context, including messages, function + * calls, and function call responses. This event can be used both to populate a + * "history" of the conversation and to add new items mid-stream, but has the + * current limitation that it cannot populate assistant audio messages. + * + * If successful, the server will respond with a `conversation.item.created` event, + * otherwise an `error` event will be sent. + */ +export interface ConversationItemCreateEvent { + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The event type, must be `conversation.item.create`. + */ + type: 'conversation.item.create'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * The ID of the preceding item after which the new item will be inserted. If not + * set, the new item will be appended to the end of the conversation. If set to + * `root`, the new item will be added to the beginning of the conversation. If set + * to an existing ID, it allows an item to be inserted mid-conversation. If the ID + * cannot be found, an error will be returned and the item will not be added. + */ + previous_item_id?: string; +} +/** + * Returned when a conversation item is created. There are several scenarios that + * produce this event: + * + * - The server is generating a Response, which if successful will produce either + * one or two Items, which will be of type `message` (role `assistant`) or type + * `function_call`. + * - The input audio buffer has been committed, either by the client or the server + * (in `server_vad` mode). The server will take the content of the input audio + * buffer and add it to a new user message Item. + * - The client has sent a `conversation.item.create` event to add a new Item to + * the Conversation. + */ +export interface ConversationItemCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The event type, must be `conversation.item.created`. + */ + type: 'conversation.item.created'; + /** + * The ID of the preceding item in the Conversation context, allows the client to + * understand the order of the conversation. Can be `null` if the item has no + * predecessor. + */ + previous_item_id?: string | null; +} +/** + * Send this event when you want to remove any item from the conversation history. + * The server will respond with a `conversation.item.deleted` event, unless the + * item does not exist in the conversation history, in which case the server will + * respond with an error. + */ +export interface ConversationItemDeleteEvent { + /** + * The ID of the item to delete. + */ + item_id: string; + /** + * The event type, must be `conversation.item.delete`. + */ + type: 'conversation.item.delete'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an item in the conversation is deleted by the client with a + * `conversation.item.delete` event. This event is used to synchronize the server's + * understanding of the conversation history with the client's view. + */ +export interface ConversationItemDeletedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item that was deleted. + */ + item_id: string; + /** + * The event type, must be `conversation.item.deleted`. + */ + type: 'conversation.item.deleted'; +} +/** + * This event is the output of audio transcription for user audio written to the + * user audio buffer. Transcription begins when the input audio buffer is committed + * by the client or server (in `server_vad` mode). Transcription runs + * asynchronously with Response creation, so this event may come before or after + * the Response events. + * + * Realtime API models accept audio natively, and thus input transcription is a + * separate process run on a separate ASR (Automatic Speech Recognition) model. The + * transcript may diverge somewhat from the model's interpretation, and should be + * treated as a rough guide. + */ +export interface ConversationItemInputAudioTranscriptionCompletedEvent { + /** + * The index of the content part containing the audio. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item containing the audio. + */ + item_id: string; + /** + * The transcribed text. + */ + transcript: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.completed`. + */ + type: 'conversation.item.input_audio_transcription.completed'; + /** + * Usage statistics for the transcription. + */ + usage: ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageTokens | ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageDuration; + /** + * The log probabilities of the transcription. + */ + logprobs?: Array | null; +} +export declare namespace ConversationItemInputAudioTranscriptionCompletedEvent { + /** + * Usage statistics for models billed by token usage. + */ + interface TranscriptTextUsageTokens { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: TranscriptTextUsageTokens.InputTokenDetails; + } + namespace TranscriptTextUsageTokens { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } + /** + * Usage statistics for models billed by audio input duration. + */ + interface TranscriptTextUsageDuration { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } + /** + * A log probability object. + */ + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes: Array; + /** + * The log probability of the token. + */ + logprob: number; + } +} +/** + * Returned when the text value of an input audio transcription content part is + * updated. + */ +export interface ConversationItemInputAudioTranscriptionDeltaEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.delta`. + */ + type: 'conversation.item.input_audio_transcription.delta'; + /** + * The index of the content part in the item's content array. + */ + content_index?: number; + /** + * The text delta. + */ + delta?: string; + /** + * The log probabilities of the transcription. + */ + logprobs?: Array | null; +} +export declare namespace ConversationItemInputAudioTranscriptionDeltaEvent { + /** + * A log probability object. + */ + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes: Array; + /** + * The log probability of the token. + */ + logprob: number; + } +} +/** + * Returned when input audio transcription is configured, and a transcription + * request for a user message failed. These events are separate from other `error` + * events so that the client can identify the related Item. + */ +export interface ConversationItemInputAudioTranscriptionFailedEvent { + /** + * The index of the content part containing the audio. + */ + content_index: number; + /** + * Details of the transcription error. + */ + error: ConversationItemInputAudioTranscriptionFailedEvent.Error; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item. + */ + item_id: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.failed`. + */ + type: 'conversation.item.input_audio_transcription.failed'; +} +export declare namespace ConversationItemInputAudioTranscriptionFailedEvent { + /** + * Details of the transcription error. + */ + interface Error { + /** + * Error code, if any. + */ + code?: string; + /** + * A human-readable error message. + */ + message?: string; + /** + * Parameter related to the error, if any. + */ + param?: string; + /** + * The type of error. + */ + type?: string; + } +} +/** + * Send this event when you want to retrieve the server's representation of a + * specific item in the conversation history. This is useful, for example, to + * inspect user audio after noise cancellation and VAD. The server will respond + * with a `conversation.item.retrieved` event, unless the item does not exist in + * the conversation history, in which case the server will respond with an error. + */ +export interface ConversationItemRetrieveEvent { + /** + * The ID of the item to retrieve. + */ + item_id: string; + /** + * The event type, must be `conversation.item.retrieve`. + */ + type: 'conversation.item.retrieve'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Send this event to truncate a previous assistant message’s audio. The server + * will produce audio faster than realtime, so this event is useful when the user + * interrupts to truncate audio that has already been sent to the client but not + * yet played. This will synchronize the server's understanding of the audio with + * the client's playback. + * + * Truncating audio will delete the server-side text transcript to ensure there is + * not text in the context that hasn't been heard by the user. + * + * If successful, the server will respond with a `conversation.item.truncated` + * event. + */ +export interface ConversationItemTruncateEvent { + /** + * Inclusive duration up to which audio is truncated, in milliseconds. If the + * audio_end_ms is greater than the actual audio duration, the server will respond + * with an error. + */ + audio_end_ms: number; + /** + * The index of the content part to truncate. Set this to 0. + */ + content_index: number; + /** + * The ID of the assistant message item to truncate. Only assistant message items + * can be truncated. + */ + item_id: string; + /** + * The event type, must be `conversation.item.truncate`. + */ + type: 'conversation.item.truncate'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an earlier assistant audio message item is truncated by the client + * with a `conversation.item.truncate` event. This event is used to synchronize the + * server's understanding of the audio with the client's playback. + * + * This action will truncate the audio and remove the server-side text transcript + * to ensure there is no text in the context that hasn't been heard by the user. + */ +export interface ConversationItemTruncatedEvent { + /** + * The duration up to which the audio was truncated, in milliseconds. + */ + audio_end_ms: number; + /** + * The index of the content part that was truncated. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the assistant message item that was truncated. + */ + item_id: string; + /** + * The event type, must be `conversation.item.truncated`. + */ + type: 'conversation.item.truncated'; +} +/** + * The item to add to the conversation. + */ +export interface ConversationItemWithReference { + /** + * For an item of type (`message` | `function_call` | `function_call_output`) this + * field allows the client to assign the unique ID of the item. It is not required + * because the server will generate one if not provided. + * + * For an item of type `item_reference`, this field is required and is a reference + * to any item that has previously existed in the conversation. + */ + id?: string; + /** + * The arguments of the function call (for `function_call` items). + */ + arguments?: string; + /** + * The ID of the function call (for `function_call` and `function_call_output` + * items). If passed on a `function_call_output` item, the server will check that a + * `function_call` item with the same ID exists in the conversation history. + */ + call_id?: string; + /** + * The content of the message, applicable for `message` items. + * + * - Message items of role `system` support only `input_text` content + * - Message items of role `user` support `input_text` and `input_audio` content + * - Message items of role `assistant` support `text` content. + */ + content?: Array; + /** + * The name of the function being called (for `function_call` items). + */ + name?: string; + /** + * Identifier for the API object being returned - always `realtime.item`. + */ + object?: 'realtime.item'; + /** + * The output of the function call (for `function_call_output` items). + */ + output?: string; + /** + * The role of the message sender (`user`, `assistant`, `system`), only applicable + * for `message` items. + */ + role?: 'user' | 'assistant' | 'system'; + /** + * The status of the item (`completed`, `incomplete`, `in_progress`). These have no + * effect on the conversation, but are accepted for consistency with the + * `conversation.item.created` event. + */ + status?: 'completed' | 'incomplete' | 'in_progress'; + /** + * The type of the item (`message`, `function_call`, `function_call_output`, + * `item_reference`). + */ + type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference'; +} +export declare namespace ConversationItemWithReference { + interface Content { + /** + * ID of a previous conversation item to reference (for `item_reference` content + * types in `response.create` events). These can reference both client and server + * created items. + */ + id?: string; + /** + * Base64-encoded audio bytes, used for `input_audio` content type. + */ + audio?: string; + /** + * The text content, used for `input_text` and `text` content types. + */ + text?: string; + /** + * The transcript of the audio, used for `input_audio` content type. + */ + transcript?: string; + /** + * The content type (`input_text`, `input_audio`, `item_reference`, `text`). + */ + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text'; + } +} +/** + * Returned when an error occurs, which could be a client problem or a server + * problem. Most errors are recoverable and the session will stay open, we + * recommend to implementors to monitor and log error messages by default. + */ +export interface ErrorEvent { + /** + * Details of the error. + */ + error: ErrorEvent.Error; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `error`. + */ + type: 'error'; +} +export declare namespace ErrorEvent { + /** + * Details of the error. + */ + interface Error { + /** + * A human-readable error message. + */ + message: string; + /** + * The type of error (e.g., "invalid_request_error", "server_error"). + */ + type: string; + /** + * Error code, if any. + */ + code?: string | null; + /** + * The event_id of the client event that caused the error, if applicable. + */ + event_id?: string | null; + /** + * Parameter related to the error, if any. + */ + param?: string | null; + } +} +/** + * Send this event to append audio bytes to the input audio buffer. The audio + * buffer is temporary storage you can write to and later commit. In Server VAD + * mode, the audio buffer is used to detect speech and the server will decide when + * to commit. When Server VAD is disabled, you must commit the audio buffer + * manually. + * + * The client may choose how much audio to place in each event up to a maximum of + * 15 MiB, for example streaming smaller chunks from the client may allow the VAD + * to be more responsive. Unlike made other client events, the server will not send + * a confirmation response to this event. + */ +export interface InputAudioBufferAppendEvent { + /** + * Base64-encoded audio bytes. This must be in the format specified by the + * `input_audio_format` field in the session configuration. + */ + audio: string; + /** + * The event type, must be `input_audio_buffer.append`. + */ + type: 'input_audio_buffer.append'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Send this event to clear the audio bytes in the buffer. The server will respond + * with an `input_audio_buffer.cleared` event. + */ +export interface InputAudioBufferClearEvent { + /** + * The event type, must be `input_audio_buffer.clear`. + */ + type: 'input_audio_buffer.clear'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when the input audio buffer is cleared by the client with a + * `input_audio_buffer.clear` event. + */ +export interface InputAudioBufferClearedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `input_audio_buffer.cleared`. + */ + type: 'input_audio_buffer.cleared'; +} +/** + * Send this event to commit the user input audio buffer, which will create a new + * user message item in the conversation. This event will produce an error if the + * input audio buffer is empty. When in Server VAD mode, the client does not need + * to send this event, the server will commit the audio buffer automatically. + * + * Committing the input audio buffer will trigger input audio transcription (if + * enabled in session configuration), but it will not create a response from the + * model. The server will respond with an `input_audio_buffer.committed` event. + */ +export interface InputAudioBufferCommitEvent { + /** + * The event type, must be `input_audio_buffer.commit`. + */ + type: 'input_audio_buffer.commit'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an input audio buffer is committed, either by the client or + * automatically in server VAD mode. The `item_id` property is the ID of the user + * message item that will be created, thus a `conversation.item.created` event will + * also be sent to the client. + */ +export interface InputAudioBufferCommittedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.committed`. + */ + type: 'input_audio_buffer.committed'; + /** + * The ID of the preceding item after which the new item will be inserted. Can be + * `null` if the item has no predecessor. + */ + previous_item_id?: string | null; +} +/** + * Sent by the server when in `server_vad` mode to indicate that speech has been + * detected in the audio buffer. This can happen any time audio is added to the + * buffer (unless speech is already detected). The client may want to use this + * event to interrupt audio playback or provide visual feedback to the user. + * + * The client should expect to receive a `input_audio_buffer.speech_stopped` event + * when speech stops. The `item_id` property is the ID of the user message item + * that will be created when speech stops and will also be included in the + * `input_audio_buffer.speech_stopped` event (unless the client manually commits + * the audio buffer during VAD activation). + */ +export interface InputAudioBufferSpeechStartedEvent { + /** + * Milliseconds from the start of all audio written to the buffer during the + * session when speech was first detected. This will correspond to the beginning of + * audio sent to the model, and thus includes the `prefix_padding_ms` configured in + * the Session. + */ + audio_start_ms: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created when speech stops. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.speech_started`. + */ + type: 'input_audio_buffer.speech_started'; +} +/** + * Returned in `server_vad` mode when the server detects the end of speech in the + * audio buffer. The server will also send an `conversation.item.created` event + * with the user message item that is created from the audio buffer. + */ +export interface InputAudioBufferSpeechStoppedEvent { + /** + * Milliseconds since the session started when speech stopped. This will correspond + * to the end of audio sent to the model, and thus includes the + * `min_silence_duration_ms` configured in the Session. + */ + audio_end_ms: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.speech_stopped`. + */ + type: 'input_audio_buffer.speech_stopped'; +} +/** + * Emitted at the beginning of a Response to indicate the updated rate limits. When + * a Response is created some tokens will be "reserved" for the output tokens, the + * rate limits shown here reflect that reservation, which is then adjusted + * accordingly once the Response is completed. + */ +export interface RateLimitsUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * List of rate limit information. + */ + rate_limits: Array; + /** + * The event type, must be `rate_limits.updated`. + */ + type: 'rate_limits.updated'; +} +export declare namespace RateLimitsUpdatedEvent { + interface RateLimit { + /** + * The maximum allowed value for the rate limit. + */ + limit?: number; + /** + * The name of the rate limit (`requests`, `tokens`). + */ + name?: 'requests' | 'tokens'; + /** + * The remaining value before the limit is reached. + */ + remaining?: number; + /** + * Seconds until the rate limit resets. + */ + reset_seconds?: number; + } +} +/** + * A realtime client event. + */ +export type RealtimeClientEvent = ConversationItemCreateEvent | ConversationItemDeleteEvent | ConversationItemRetrieveEvent | ConversationItemTruncateEvent | InputAudioBufferAppendEvent | InputAudioBufferClearEvent | RealtimeClientEvent.OutputAudioBufferClear | InputAudioBufferCommitEvent | ResponseCancelEvent | ResponseCreateEvent | SessionUpdateEvent | TranscriptionSessionUpdate; +export declare namespace RealtimeClientEvent { + /** + * **WebRTC Only:** Emit to cut off the current audio response. This will trigger + * the server to stop generating audio and emit a `output_audio_buffer.cleared` + * event. This event should be preceded by a `response.cancel` client event to stop + * the generation of the current response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferClear { + /** + * The event type, must be `output_audio_buffer.clear`. + */ + type: 'output_audio_buffer.clear'; + /** + * The unique ID of the client event used for error handling. + */ + event_id?: string; + } +} +/** + * The response resource. + */ +export interface RealtimeResponse { + /** + * The unique ID of the response. + */ + id?: string; + /** + * Which conversation the response is added to, determined by the `conversation` + * field in the `response.create` event. If `auto`, the response will be added to + * the default conversation and the value of `conversation_id` will be an id like + * `conv_1234`. If `none`, the response will not be added to any conversation and + * the value of `conversation_id` will be `null`. If responses are being triggered + * by server VAD, the response will be added to the default conversation, thus the + * `conversation_id` will be an id like `conv_1234`. + */ + conversation_id?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls, that was used in this response. + */ + max_output_tokens?: number | 'inf'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The set of modalities the model used to respond. If there are multiple + * modalities, the model will pick one, for example if `modalities` is + * `["text", "audio"]`, the model could be responding in either text or audio. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The object type, must be `realtime.response`. + */ + object?: 'realtime.response'; + /** + * The list of output items generated by the response. + */ + output?: Array; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The final status of the response (`completed`, `cancelled`, `failed`, or + * `incomplete`, `in_progress`). + */ + status?: 'completed' | 'cancelled' | 'failed' | 'incomplete' | 'in_progress'; + /** + * Additional details about the status. + */ + status_details?: RealtimeResponseStatus; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * Usage statistics for the Response, this will correspond to billing. A Realtime + * API session will maintain a conversation context and append new Items to the + * Conversation, thus output from previous turns (text and audio tokens) will + * become the input for later turns. + */ + usage?: RealtimeResponseUsage; + /** + * The voice the model used to respond. Current voice options are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +/** + * Additional details about the status. + */ +export interface RealtimeResponseStatus { + /** + * A description of the error that caused the response to fail, populated when the + * `status` is `failed`. + */ + error?: RealtimeResponseStatus.Error; + /** + * The reason the Response did not complete. For a `cancelled` Response, one of + * `turn_detected` (the server VAD detected a new start of speech) or + * `client_cancelled` (the client sent a cancel event). For an `incomplete` + * Response, one of `max_output_tokens` or `content_filter` (the server-side safety + * filter activated and cut off the response). + */ + reason?: 'turn_detected' | 'client_cancelled' | 'max_output_tokens' | 'content_filter'; + /** + * The type of error that caused the response to fail, corresponding with the + * `status` field (`completed`, `cancelled`, `incomplete`, `failed`). + */ + type?: 'completed' | 'cancelled' | 'incomplete' | 'failed'; +} +export declare namespace RealtimeResponseStatus { + /** + * A description of the error that caused the response to fail, populated when the + * `status` is `failed`. + */ + interface Error { + /** + * Error code, if any. + */ + code?: string; + /** + * The type of error. + */ + type?: string; + } +} +/** + * Usage statistics for the Response, this will correspond to billing. A Realtime + * API session will maintain a conversation context and append new Items to the + * Conversation, thus output from previous turns (text and audio tokens) will + * become the input for later turns. + */ +export interface RealtimeResponseUsage { + /** + * Details about the input tokens used in the Response. + */ + input_token_details?: RealtimeResponseUsage.InputTokenDetails; + /** + * The number of input tokens used in the Response, including text and audio + * tokens. + */ + input_tokens?: number; + /** + * Details about the output tokens used in the Response. + */ + output_token_details?: RealtimeResponseUsage.OutputTokenDetails; + /** + * The number of output tokens sent in the Response, including text and audio + * tokens. + */ + output_tokens?: number; + /** + * The total number of tokens in the Response including input and output text and + * audio tokens. + */ + total_tokens?: number; +} +export declare namespace RealtimeResponseUsage { + /** + * Details about the input tokens used in the Response. + */ + interface InputTokenDetails { + /** + * The number of audio tokens used in the Response. + */ + audio_tokens?: number; + /** + * The number of cached tokens used in the Response. + */ + cached_tokens?: number; + /** + * The number of text tokens used in the Response. + */ + text_tokens?: number; + } + /** + * Details about the output tokens used in the Response. + */ + interface OutputTokenDetails { + /** + * The number of audio tokens used in the Response. + */ + audio_tokens?: number; + /** + * The number of text tokens used in the Response. + */ + text_tokens?: number; + } +} +/** + * A realtime server event. + */ +export type RealtimeServerEvent = ConversationCreatedEvent | ConversationItemCreatedEvent | ConversationItemDeletedEvent | ConversationItemInputAudioTranscriptionCompletedEvent | ConversationItemInputAudioTranscriptionDeltaEvent | ConversationItemInputAudioTranscriptionFailedEvent | RealtimeServerEvent.ConversationItemRetrieved | ConversationItemTruncatedEvent | ErrorEvent | InputAudioBufferClearedEvent | InputAudioBufferCommittedEvent | InputAudioBufferSpeechStartedEvent | InputAudioBufferSpeechStoppedEvent | RateLimitsUpdatedEvent | ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseDoneEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | SessionCreatedEvent | SessionUpdatedEvent | TranscriptionSessionUpdatedEvent | RealtimeServerEvent.OutputAudioBufferStarted | RealtimeServerEvent.OutputAudioBufferStopped | RealtimeServerEvent.OutputAudioBufferCleared; +export declare namespace RealtimeServerEvent { + /** + * Returned when a conversation item is retrieved with + * `conversation.item.retrieve`. + */ + interface ConversationItemRetrieved { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: RealtimeAPI.ConversationItem; + /** + * The event type, must be `conversation.item.retrieved`. + */ + type: 'conversation.item.retrieved'; + } + /** + * **WebRTC Only:** Emitted when the server begins streaming audio to the client. + * This event is emitted after an audio content part has been added + * (`response.content_part.added`) to the response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferStarted { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.started`. + */ + type: 'output_audio_buffer.started'; + } + /** + * **WebRTC Only:** Emitted when the output audio buffer has been completely + * drained on the server, and no more audio is forthcoming. This event is emitted + * after the full response data has been sent to the client (`response.done`). + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferStopped { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.stopped`. + */ + type: 'output_audio_buffer.stopped'; + } + /** + * **WebRTC Only:** Emitted when the output audio buffer is cleared. This happens + * either in VAD mode when the user has interrupted + * (`input_audio_buffer.speech_started`), or when the client has emitted the + * `output_audio_buffer.clear` event to manually cut off the current audio + * response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferCleared { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.cleared`. + */ + type: 'output_audio_buffer.cleared'; + } +} +/** + * Returned when the model-generated audio is updated. + */ +export interface ResponseAudioDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * Base64-encoded audio data delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio.delta`. + */ + type: 'response.audio.delta'; +} +/** + * Returned when the model-generated audio is done. Also emitted when a Response is + * interrupted, incomplete, or cancelled. + */ +export interface ResponseAudioDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio.done`. + */ + type: 'response.audio.done'; +} +/** + * Returned when the model-generated transcription of audio output is updated. + */ +export interface ResponseAudioTranscriptDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The transcript delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio_transcript.delta`. + */ + type: 'response.audio_transcript.delta'; +} +/** + * Returned when the model-generated transcription of audio output is done + * streaming. Also emitted when a Response is interrupted, incomplete, or + * cancelled. + */ +export interface ResponseAudioTranscriptDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The final transcript of the audio. + */ + transcript: string; + /** + * The event type, must be `response.audio_transcript.done`. + */ + type: 'response.audio_transcript.done'; +} +/** + * Send this event to cancel an in-progress response. The server will respond with + * a `response.done` event with a status of `response.status=cancelled`. If there + * is no response to cancel, the server will respond with an error. + */ +export interface ResponseCancelEvent { + /** + * The event type, must be `response.cancel`. + */ + type: 'response.cancel'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * A specific response ID to cancel - if not provided, will cancel an in-progress + * response in the default conversation. + */ + response_id?: string; +} +/** + * Returned when a new content part is added to an assistant message item during + * response generation. + */ +export interface ResponseContentPartAddedEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item to which the content part was added. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The content part that was added. + */ + part: ResponseContentPartAddedEvent.Part; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.content_part.added`. + */ + type: 'response.content_part.added'; +} +export declare namespace ResponseContentPartAddedEvent { + /** + * The content part that was added. + */ + interface Part { + /** + * Base64-encoded audio data (if type is "audio"). + */ + audio?: string; + /** + * The text content (if type is "text"). + */ + text?: string; + /** + * The transcript of the audio (if type is "audio"). + */ + transcript?: string; + /** + * The content type ("text", "audio"). + */ + type?: 'text' | 'audio'; + } +} +/** + * Returned when a content part is done streaming in an assistant message item. + * Also emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseContentPartDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The content part that is done. + */ + part: ResponseContentPartDoneEvent.Part; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.content_part.done`. + */ + type: 'response.content_part.done'; +} +export declare namespace ResponseContentPartDoneEvent { + /** + * The content part that is done. + */ + interface Part { + /** + * Base64-encoded audio data (if type is "audio"). + */ + audio?: string; + /** + * The text content (if type is "text"). + */ + text?: string; + /** + * The transcript of the audio (if type is "audio"). + */ + transcript?: string; + /** + * The content type ("text", "audio"). + */ + type?: 'text' | 'audio'; + } +} +/** + * This event instructs the server to create a Response, which means triggering + * model inference. When in Server VAD mode, the server will create Responses + * automatically. + * + * A Response will include at least one Item, and may have two, in which case the + * second will be a function call. These Items will be appended to the conversation + * history. + * + * The server will respond with a `response.created` event, events for Items and + * content created, and finally a `response.done` event to indicate the Response is + * complete. + * + * The `response.create` event includes inference configuration like + * `instructions`, and `temperature`. These fields will override the Session's + * configuration for this Response only. + */ +export interface ResponseCreateEvent { + /** + * The event type, must be `response.create`. + */ + type: 'response.create'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * Create a new Realtime response with these parameters + */ + response?: ResponseCreateEvent.Response; +} +export declare namespace ResponseCreateEvent { + /** + * Create a new Realtime response with these parameters + */ + interface Response { + /** + * Controls which conversation the response is added to. Currently supports `auto` + * and `none`, with `auto` as the default value. The `auto` value means that the + * contents of the response will be added to the default conversation. Set this to + * `none` to create an out-of-band response which will not add items to default + * conversation. + */ + conversation?: (string & {}) | 'auto' | 'none'; + /** + * Input items to include in the prompt for the model. Using this field creates a + * new context for this Response instead of using the default conversation. An + * empty array `[]` will clear the context for this Response. Note that this can + * include references to items from the default conversation. + */ + input?: Array; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function, like `{"type": "function", "function": {"name": "my_function"}}`. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + } + namespace Response { + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + } +} +/** + * Returned when a new Response is created. The first event of response creation, + * where the response is in an initial state of `in_progress`. + */ +export interface ResponseCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The response resource. + */ + response: RealtimeResponse; + /** + * The event type, must be `response.created`. + */ + type: 'response.created'; +} +/** + * Returned when a Response is done streaming. Always emitted, no matter the final + * state. The Response object included in the `response.done` event will include + * all output Items in the Response but will omit the raw audio data. + */ +export interface ResponseDoneEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The response resource. + */ + response: RealtimeResponse; + /** + * The event type, must be `response.done`. + */ + type: 'response.done'; +} +/** + * Returned when the model-generated function call arguments are updated. + */ +export interface ResponseFunctionCallArgumentsDeltaEvent { + /** + * The ID of the function call. + */ + call_id: string; + /** + * The arguments delta as a JSON string. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the function call item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.function_call_arguments.delta`. + */ + type: 'response.function_call_arguments.delta'; +} +/** + * Returned when the model-generated function call arguments are done streaming. + * Also emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseFunctionCallArgumentsDoneEvent { + /** + * The final arguments as a JSON string. + */ + arguments: string; + /** + * The ID of the function call. + */ + call_id: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the function call item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.function_call_arguments.done`. + */ + type: 'response.function_call_arguments.done'; +} +/** + * Returned when a new Item is created during Response generation. + */ +export interface ResponseOutputItemAddedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The index of the output item in the Response. + */ + output_index: number; + /** + * The ID of the Response to which the item belongs. + */ + response_id: string; + /** + * The event type, must be `response.output_item.added`. + */ + type: 'response.output_item.added'; +} +/** + * Returned when an Item is done streaming. Also emitted when a Response is + * interrupted, incomplete, or cancelled. + */ +export interface ResponseOutputItemDoneEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The index of the output item in the Response. + */ + output_index: number; + /** + * The ID of the Response to which the item belongs. + */ + response_id: string; + /** + * The event type, must be `response.output_item.done`. + */ + type: 'response.output_item.done'; +} +/** + * Returned when the text value of a "text" content part is updated. + */ +export interface ResponseTextDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The text delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.text.delta`. + */ + type: 'response.text.delta'; +} +/** + * Returned when the text value of a "text" content part is done streaming. Also + * emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseTextDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The final text content. + */ + text: string; + /** + * The event type, must be `response.text.done`. + */ + type: 'response.text.done'; +} +/** + * Returned when a Session is created. Emitted automatically when a new connection + * is established as the first server event. This event will contain the default + * Session configuration. + */ +export interface SessionCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * Realtime session object configuration. + */ + session: SessionsAPI.Session; + /** + * The event type, must be `session.created`. + */ + type: 'session.created'; +} +/** + * Send this event to update the session’s default configuration. The client may + * send this event at any time to update any field, except for `voice`. However, + * note that once a session has been initialized with a particular `model`, it + * can’t be changed to another model using `session.update`. + * + * When the server receives a `session.update`, it will respond with a + * `session.updated` event showing the full, effective configuration. Only the + * fields that are present are updated. To clear a field like `instructions`, pass + * an empty string. + */ +export interface SessionUpdateEvent { + /** + * Realtime session object configuration. + */ + session: SessionUpdateEvent.Session; + /** + * The event type, must be `session.update`. + */ + type: 'session.update'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +export declare namespace SessionUpdateEvent { + /** + * Realtime session object configuration. + */ + interface Session { + /** + * Configuration options for the generated client secret. + */ + client_secret?: Session.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | Session.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + } + namespace Session { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_after?: ClientSecret.ExpiresAfter; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAfter { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } + } +} +/** + * Returned when a session is updated with a `session.update` event, unless there + * is an error. + */ +export interface SessionUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * Realtime session object configuration. + */ + session: SessionsAPI.Session; + /** + * The event type, must be `session.updated`. + */ + type: 'session.updated'; +} +/** + * Send this event to update a transcription session. + */ +export interface TranscriptionSessionUpdate { + /** + * Realtime transcription session object configuration. + */ + session: TranscriptionSessionUpdate.Session; + /** + * The event type, must be `transcription_session.update`. + */ + type: 'transcription_session.update'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +export declare namespace TranscriptionSessionUpdate { + /** + * Realtime transcription session object configuration. + */ + interface Session { + /** + * Configuration options for the generated client secret. + */ + client_secret?: Session.ClientSecret; + /** + * The set of items to include in the transcription. Current available items are: + * + * - `item.input_audio_transcription.logprobs` + */ + include?: Array; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + } + namespace Session { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_at?: ClientSecret.ExpiresAt; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAt { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor?: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. Not available for transcription sessions. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. Not available for transcription sessions. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } + } +} +/** + * Returned when a transcription session is updated with a + * `transcription_session.update` event, unless there is an error. + */ +export interface TranscriptionSessionUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * A new Realtime transcription session configuration. + * + * When a session is created on the server via REST API, the session object also + * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is + * not present when a session is updated via the WebSocket API. + */ + session: TranscriptionSessionsAPI.TranscriptionSession; + /** + * The event type, must be `transcription_session.updated`. + */ + type: 'transcription_session.updated'; +} +export declare namespace Realtime { + export { type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, }; + export { Sessions as Sessions, type SessionsAPISession as Session, type SessionCreateResponse as SessionCreateResponse, type SessionCreateParams as SessionCreateParams, }; + export { TranscriptionSessions as TranscriptionSessions, type TranscriptionSession as TranscriptionSession, type TranscriptionSessionCreateParams as TranscriptionSessionCreateParams, }; +} +//# sourceMappingURL=realtime.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..0d3844027157afef1a195ff50cc5732d2b03314e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/realtime.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,OAAO,IAAI,kBAAkB,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,KAAK,wBAAwB;OAC7B,EACL,oBAAoB,EACpB,gCAAgC,EAChC,qBAAqB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B,IAAI,mBAAmB,EAC/C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,kBAAkB,IAAI,OAAO,EAClC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ea566a561e320a37c81afbe6285d3ffd411af6b0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts @@ -0,0 +1,2329 @@ +import { APIResource } from "../../../core/resource.js"; +import * as RealtimeAPI from "./realtime.js"; +import * as Shared from "../../shared.js"; +import * as SessionsAPI from "./sessions.js"; +import { Session as SessionsAPISession, SessionCreateParams, SessionCreateResponse, Sessions } from "./sessions.js"; +import * as TranscriptionSessionsAPI from "./transcription-sessions.js"; +import { TranscriptionSession, TranscriptionSessionCreateParams, TranscriptionSessions } from "./transcription-sessions.js"; +export declare class Realtime extends APIResource { + sessions: SessionsAPI.Sessions; + transcriptionSessions: TranscriptionSessionsAPI.TranscriptionSessions; +} +/** + * Returned when a conversation is created. Emitted right after session creation. + */ +export interface ConversationCreatedEvent { + /** + * The conversation resource. + */ + conversation: ConversationCreatedEvent.Conversation; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `conversation.created`. + */ + type: 'conversation.created'; +} +export declare namespace ConversationCreatedEvent { + /** + * The conversation resource. + */ + interface Conversation { + /** + * The unique ID of the conversation. + */ + id?: string; + /** + * The object type, must be `realtime.conversation`. + */ + object?: 'realtime.conversation'; + } +} +/** + * The item to add to the conversation. + */ +export interface ConversationItem { + /** + * The unique ID of the item, this can be generated by the client to help manage + * server-side context, but is not required because the server will generate one if + * not provided. + */ + id?: string; + /** + * The arguments of the function call (for `function_call` items). + */ + arguments?: string; + /** + * The ID of the function call (for `function_call` and `function_call_output` + * items). If passed on a `function_call_output` item, the server will check that a + * `function_call` item with the same ID exists in the conversation history. + */ + call_id?: string; + /** + * The content of the message, applicable for `message` items. + * + * - Message items of role `system` support only `input_text` content + * - Message items of role `user` support `input_text` and `input_audio` content + * - Message items of role `assistant` support `text` content. + */ + content?: Array; + /** + * The name of the function being called (for `function_call` items). + */ + name?: string; + /** + * Identifier for the API object being returned - always `realtime.item`. + */ + object?: 'realtime.item'; + /** + * The output of the function call (for `function_call_output` items). + */ + output?: string; + /** + * The role of the message sender (`user`, `assistant`, `system`), only applicable + * for `message` items. + */ + role?: 'user' | 'assistant' | 'system'; + /** + * The status of the item (`completed`, `incomplete`, `in_progress`). These have no + * effect on the conversation, but are accepted for consistency with the + * `conversation.item.created` event. + */ + status?: 'completed' | 'incomplete' | 'in_progress'; + /** + * The type of the item (`message`, `function_call`, `function_call_output`). + */ + type?: 'message' | 'function_call' | 'function_call_output'; +} +export interface ConversationItemContent { + /** + * ID of a previous conversation item to reference (for `item_reference` content + * types in `response.create` events). These can reference both client and server + * created items. + */ + id?: string; + /** + * Base64-encoded audio bytes, used for `input_audio` content type. + */ + audio?: string; + /** + * The text content, used for `input_text` and `text` content types. + */ + text?: string; + /** + * The transcript of the audio, used for `input_audio` and `audio` content types. + */ + transcript?: string; + /** + * The content type (`input_text`, `input_audio`, `item_reference`, `text`, + * `audio`). + */ + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text' | 'audio'; +} +/** + * Add a new Item to the Conversation's context, including messages, function + * calls, and function call responses. This event can be used both to populate a + * "history" of the conversation and to add new items mid-stream, but has the + * current limitation that it cannot populate assistant audio messages. + * + * If successful, the server will respond with a `conversation.item.created` event, + * otherwise an `error` event will be sent. + */ +export interface ConversationItemCreateEvent { + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The event type, must be `conversation.item.create`. + */ + type: 'conversation.item.create'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * The ID of the preceding item after which the new item will be inserted. If not + * set, the new item will be appended to the end of the conversation. If set to + * `root`, the new item will be added to the beginning of the conversation. If set + * to an existing ID, it allows an item to be inserted mid-conversation. If the ID + * cannot be found, an error will be returned and the item will not be added. + */ + previous_item_id?: string; +} +/** + * Returned when a conversation item is created. There are several scenarios that + * produce this event: + * + * - The server is generating a Response, which if successful will produce either + * one or two Items, which will be of type `message` (role `assistant`) or type + * `function_call`. + * - The input audio buffer has been committed, either by the client or the server + * (in `server_vad` mode). The server will take the content of the input audio + * buffer and add it to a new user message Item. + * - The client has sent a `conversation.item.create` event to add a new Item to + * the Conversation. + */ +export interface ConversationItemCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The event type, must be `conversation.item.created`. + */ + type: 'conversation.item.created'; + /** + * The ID of the preceding item in the Conversation context, allows the client to + * understand the order of the conversation. Can be `null` if the item has no + * predecessor. + */ + previous_item_id?: string | null; +} +/** + * Send this event when you want to remove any item from the conversation history. + * The server will respond with a `conversation.item.deleted` event, unless the + * item does not exist in the conversation history, in which case the server will + * respond with an error. + */ +export interface ConversationItemDeleteEvent { + /** + * The ID of the item to delete. + */ + item_id: string; + /** + * The event type, must be `conversation.item.delete`. + */ + type: 'conversation.item.delete'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an item in the conversation is deleted by the client with a + * `conversation.item.delete` event. This event is used to synchronize the server's + * understanding of the conversation history with the client's view. + */ +export interface ConversationItemDeletedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item that was deleted. + */ + item_id: string; + /** + * The event type, must be `conversation.item.deleted`. + */ + type: 'conversation.item.deleted'; +} +/** + * This event is the output of audio transcription for user audio written to the + * user audio buffer. Transcription begins when the input audio buffer is committed + * by the client or server (in `server_vad` mode). Transcription runs + * asynchronously with Response creation, so this event may come before or after + * the Response events. + * + * Realtime API models accept audio natively, and thus input transcription is a + * separate process run on a separate ASR (Automatic Speech Recognition) model. The + * transcript may diverge somewhat from the model's interpretation, and should be + * treated as a rough guide. + */ +export interface ConversationItemInputAudioTranscriptionCompletedEvent { + /** + * The index of the content part containing the audio. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item containing the audio. + */ + item_id: string; + /** + * The transcribed text. + */ + transcript: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.completed`. + */ + type: 'conversation.item.input_audio_transcription.completed'; + /** + * Usage statistics for the transcription. + */ + usage: ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageTokens | ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageDuration; + /** + * The log probabilities of the transcription. + */ + logprobs?: Array | null; +} +export declare namespace ConversationItemInputAudioTranscriptionCompletedEvent { + /** + * Usage statistics for models billed by token usage. + */ + interface TranscriptTextUsageTokens { + /** + * Number of input tokens billed for this request. + */ + input_tokens: number; + /** + * Number of output tokens generated. + */ + output_tokens: number; + /** + * Total number of tokens used (input + output). + */ + total_tokens: number; + /** + * The type of the usage object. Always `tokens` for this variant. + */ + type: 'tokens'; + /** + * Details about the input tokens billed for this request. + */ + input_token_details?: TranscriptTextUsageTokens.InputTokenDetails; + } + namespace TranscriptTextUsageTokens { + /** + * Details about the input tokens billed for this request. + */ + interface InputTokenDetails { + /** + * Number of audio tokens billed for this request. + */ + audio_tokens?: number; + /** + * Number of text tokens billed for this request. + */ + text_tokens?: number; + } + } + /** + * Usage statistics for models billed by audio input duration. + */ + interface TranscriptTextUsageDuration { + /** + * Duration of the input audio in seconds. + */ + seconds: number; + /** + * The type of the usage object. Always `duration` for this variant. + */ + type: 'duration'; + } + /** + * A log probability object. + */ + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes: Array; + /** + * The log probability of the token. + */ + logprob: number; + } +} +/** + * Returned when the text value of an input audio transcription content part is + * updated. + */ +export interface ConversationItemInputAudioTranscriptionDeltaEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.delta`. + */ + type: 'conversation.item.input_audio_transcription.delta'; + /** + * The index of the content part in the item's content array. + */ + content_index?: number; + /** + * The text delta. + */ + delta?: string; + /** + * The log probabilities of the transcription. + */ + logprobs?: Array | null; +} +export declare namespace ConversationItemInputAudioTranscriptionDeltaEvent { + /** + * A log probability object. + */ + interface Logprob { + /** + * The token that was used to generate the log probability. + */ + token: string; + /** + * The bytes that were used to generate the log probability. + */ + bytes: Array; + /** + * The log probability of the token. + */ + logprob: number; + } +} +/** + * Returned when input audio transcription is configured, and a transcription + * request for a user message failed. These events are separate from other `error` + * events so that the client can identify the related Item. + */ +export interface ConversationItemInputAudioTranscriptionFailedEvent { + /** + * The index of the content part containing the audio. + */ + content_index: number; + /** + * Details of the transcription error. + */ + error: ConversationItemInputAudioTranscriptionFailedEvent.Error; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item. + */ + item_id: string; + /** + * The event type, must be `conversation.item.input_audio_transcription.failed`. + */ + type: 'conversation.item.input_audio_transcription.failed'; +} +export declare namespace ConversationItemInputAudioTranscriptionFailedEvent { + /** + * Details of the transcription error. + */ + interface Error { + /** + * Error code, if any. + */ + code?: string; + /** + * A human-readable error message. + */ + message?: string; + /** + * Parameter related to the error, if any. + */ + param?: string; + /** + * The type of error. + */ + type?: string; + } +} +/** + * Send this event when you want to retrieve the server's representation of a + * specific item in the conversation history. This is useful, for example, to + * inspect user audio after noise cancellation and VAD. The server will respond + * with a `conversation.item.retrieved` event, unless the item does not exist in + * the conversation history, in which case the server will respond with an error. + */ +export interface ConversationItemRetrieveEvent { + /** + * The ID of the item to retrieve. + */ + item_id: string; + /** + * The event type, must be `conversation.item.retrieve`. + */ + type: 'conversation.item.retrieve'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Send this event to truncate a previous assistant message’s audio. The server + * will produce audio faster than realtime, so this event is useful when the user + * interrupts to truncate audio that has already been sent to the client but not + * yet played. This will synchronize the server's understanding of the audio with + * the client's playback. + * + * Truncating audio will delete the server-side text transcript to ensure there is + * not text in the context that hasn't been heard by the user. + * + * If successful, the server will respond with a `conversation.item.truncated` + * event. + */ +export interface ConversationItemTruncateEvent { + /** + * Inclusive duration up to which audio is truncated, in milliseconds. If the + * audio_end_ms is greater than the actual audio duration, the server will respond + * with an error. + */ + audio_end_ms: number; + /** + * The index of the content part to truncate. Set this to 0. + */ + content_index: number; + /** + * The ID of the assistant message item to truncate. Only assistant message items + * can be truncated. + */ + item_id: string; + /** + * The event type, must be `conversation.item.truncate`. + */ + type: 'conversation.item.truncate'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an earlier assistant audio message item is truncated by the client + * with a `conversation.item.truncate` event. This event is used to synchronize the + * server's understanding of the audio with the client's playback. + * + * This action will truncate the audio and remove the server-side text transcript + * to ensure there is no text in the context that hasn't been heard by the user. + */ +export interface ConversationItemTruncatedEvent { + /** + * The duration up to which the audio was truncated, in milliseconds. + */ + audio_end_ms: number; + /** + * The index of the content part that was truncated. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the assistant message item that was truncated. + */ + item_id: string; + /** + * The event type, must be `conversation.item.truncated`. + */ + type: 'conversation.item.truncated'; +} +/** + * The item to add to the conversation. + */ +export interface ConversationItemWithReference { + /** + * For an item of type (`message` | `function_call` | `function_call_output`) this + * field allows the client to assign the unique ID of the item. It is not required + * because the server will generate one if not provided. + * + * For an item of type `item_reference`, this field is required and is a reference + * to any item that has previously existed in the conversation. + */ + id?: string; + /** + * The arguments of the function call (for `function_call` items). + */ + arguments?: string; + /** + * The ID of the function call (for `function_call` and `function_call_output` + * items). If passed on a `function_call_output` item, the server will check that a + * `function_call` item with the same ID exists in the conversation history. + */ + call_id?: string; + /** + * The content of the message, applicable for `message` items. + * + * - Message items of role `system` support only `input_text` content + * - Message items of role `user` support `input_text` and `input_audio` content + * - Message items of role `assistant` support `text` content. + */ + content?: Array; + /** + * The name of the function being called (for `function_call` items). + */ + name?: string; + /** + * Identifier for the API object being returned - always `realtime.item`. + */ + object?: 'realtime.item'; + /** + * The output of the function call (for `function_call_output` items). + */ + output?: string; + /** + * The role of the message sender (`user`, `assistant`, `system`), only applicable + * for `message` items. + */ + role?: 'user' | 'assistant' | 'system'; + /** + * The status of the item (`completed`, `incomplete`, `in_progress`). These have no + * effect on the conversation, but are accepted for consistency with the + * `conversation.item.created` event. + */ + status?: 'completed' | 'incomplete' | 'in_progress'; + /** + * The type of the item (`message`, `function_call`, `function_call_output`, + * `item_reference`). + */ + type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference'; +} +export declare namespace ConversationItemWithReference { + interface Content { + /** + * ID of a previous conversation item to reference (for `item_reference` content + * types in `response.create` events). These can reference both client and server + * created items. + */ + id?: string; + /** + * Base64-encoded audio bytes, used for `input_audio` content type. + */ + audio?: string; + /** + * The text content, used for `input_text` and `text` content types. + */ + text?: string; + /** + * The transcript of the audio, used for `input_audio` content type. + */ + transcript?: string; + /** + * The content type (`input_text`, `input_audio`, `item_reference`, `text`). + */ + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text'; + } +} +/** + * Returned when an error occurs, which could be a client problem or a server + * problem. Most errors are recoverable and the session will stay open, we + * recommend to implementors to monitor and log error messages by default. + */ +export interface ErrorEvent { + /** + * Details of the error. + */ + error: ErrorEvent.Error; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `error`. + */ + type: 'error'; +} +export declare namespace ErrorEvent { + /** + * Details of the error. + */ + interface Error { + /** + * A human-readable error message. + */ + message: string; + /** + * The type of error (e.g., "invalid_request_error", "server_error"). + */ + type: string; + /** + * Error code, if any. + */ + code?: string | null; + /** + * The event_id of the client event that caused the error, if applicable. + */ + event_id?: string | null; + /** + * Parameter related to the error, if any. + */ + param?: string | null; + } +} +/** + * Send this event to append audio bytes to the input audio buffer. The audio + * buffer is temporary storage you can write to and later commit. In Server VAD + * mode, the audio buffer is used to detect speech and the server will decide when + * to commit. When Server VAD is disabled, you must commit the audio buffer + * manually. + * + * The client may choose how much audio to place in each event up to a maximum of + * 15 MiB, for example streaming smaller chunks from the client may allow the VAD + * to be more responsive. Unlike made other client events, the server will not send + * a confirmation response to this event. + */ +export interface InputAudioBufferAppendEvent { + /** + * Base64-encoded audio bytes. This must be in the format specified by the + * `input_audio_format` field in the session configuration. + */ + audio: string; + /** + * The event type, must be `input_audio_buffer.append`. + */ + type: 'input_audio_buffer.append'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Send this event to clear the audio bytes in the buffer. The server will respond + * with an `input_audio_buffer.cleared` event. + */ +export interface InputAudioBufferClearEvent { + /** + * The event type, must be `input_audio_buffer.clear`. + */ + type: 'input_audio_buffer.clear'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when the input audio buffer is cleared by the client with a + * `input_audio_buffer.clear` event. + */ +export interface InputAudioBufferClearedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The event type, must be `input_audio_buffer.cleared`. + */ + type: 'input_audio_buffer.cleared'; +} +/** + * Send this event to commit the user input audio buffer, which will create a new + * user message item in the conversation. This event will produce an error if the + * input audio buffer is empty. When in Server VAD mode, the client does not need + * to send this event, the server will commit the audio buffer automatically. + * + * Committing the input audio buffer will trigger input audio transcription (if + * enabled in session configuration), but it will not create a response from the + * model. The server will respond with an `input_audio_buffer.committed` event. + */ +export interface InputAudioBufferCommitEvent { + /** + * The event type, must be `input_audio_buffer.commit`. + */ + type: 'input_audio_buffer.commit'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +/** + * Returned when an input audio buffer is committed, either by the client or + * automatically in server VAD mode. The `item_id` property is the ID of the user + * message item that will be created, thus a `conversation.item.created` event will + * also be sent to the client. + */ +export interface InputAudioBufferCommittedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.committed`. + */ + type: 'input_audio_buffer.committed'; + /** + * The ID of the preceding item after which the new item will be inserted. Can be + * `null` if the item has no predecessor. + */ + previous_item_id?: string | null; +} +/** + * Sent by the server when in `server_vad` mode to indicate that speech has been + * detected in the audio buffer. This can happen any time audio is added to the + * buffer (unless speech is already detected). The client may want to use this + * event to interrupt audio playback or provide visual feedback to the user. + * + * The client should expect to receive a `input_audio_buffer.speech_stopped` event + * when speech stops. The `item_id` property is the ID of the user message item + * that will be created when speech stops and will also be included in the + * `input_audio_buffer.speech_stopped` event (unless the client manually commits + * the audio buffer during VAD activation). + */ +export interface InputAudioBufferSpeechStartedEvent { + /** + * Milliseconds from the start of all audio written to the buffer during the + * session when speech was first detected. This will correspond to the beginning of + * audio sent to the model, and thus includes the `prefix_padding_ms` configured in + * the Session. + */ + audio_start_ms: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created when speech stops. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.speech_started`. + */ + type: 'input_audio_buffer.speech_started'; +} +/** + * Returned in `server_vad` mode when the server detects the end of speech in the + * audio buffer. The server will also send an `conversation.item.created` event + * with the user message item that is created from the audio buffer. + */ +export interface InputAudioBufferSpeechStoppedEvent { + /** + * Milliseconds since the session started when speech stopped. This will correspond + * to the end of audio sent to the model, and thus includes the + * `min_silence_duration_ms` configured in the Session. + */ + audio_end_ms: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the user message item that will be created. + */ + item_id: string; + /** + * The event type, must be `input_audio_buffer.speech_stopped`. + */ + type: 'input_audio_buffer.speech_stopped'; +} +/** + * Emitted at the beginning of a Response to indicate the updated rate limits. When + * a Response is created some tokens will be "reserved" for the output tokens, the + * rate limits shown here reflect that reservation, which is then adjusted + * accordingly once the Response is completed. + */ +export interface RateLimitsUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * List of rate limit information. + */ + rate_limits: Array; + /** + * The event type, must be `rate_limits.updated`. + */ + type: 'rate_limits.updated'; +} +export declare namespace RateLimitsUpdatedEvent { + interface RateLimit { + /** + * The maximum allowed value for the rate limit. + */ + limit?: number; + /** + * The name of the rate limit (`requests`, `tokens`). + */ + name?: 'requests' | 'tokens'; + /** + * The remaining value before the limit is reached. + */ + remaining?: number; + /** + * Seconds until the rate limit resets. + */ + reset_seconds?: number; + } +} +/** + * A realtime client event. + */ +export type RealtimeClientEvent = ConversationItemCreateEvent | ConversationItemDeleteEvent | ConversationItemRetrieveEvent | ConversationItemTruncateEvent | InputAudioBufferAppendEvent | InputAudioBufferClearEvent | RealtimeClientEvent.OutputAudioBufferClear | InputAudioBufferCommitEvent | ResponseCancelEvent | ResponseCreateEvent | SessionUpdateEvent | TranscriptionSessionUpdate; +export declare namespace RealtimeClientEvent { + /** + * **WebRTC Only:** Emit to cut off the current audio response. This will trigger + * the server to stop generating audio and emit a `output_audio_buffer.cleared` + * event. This event should be preceded by a `response.cancel` client event to stop + * the generation of the current response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferClear { + /** + * The event type, must be `output_audio_buffer.clear`. + */ + type: 'output_audio_buffer.clear'; + /** + * The unique ID of the client event used for error handling. + */ + event_id?: string; + } +} +/** + * The response resource. + */ +export interface RealtimeResponse { + /** + * The unique ID of the response. + */ + id?: string; + /** + * Which conversation the response is added to, determined by the `conversation` + * field in the `response.create` event. If `auto`, the response will be added to + * the default conversation and the value of `conversation_id` will be an id like + * `conv_1234`. If `none`, the response will not be added to any conversation and + * the value of `conversation_id` will be `null`. If responses are being triggered + * by server VAD, the response will be added to the default conversation, thus the + * `conversation_id` will be an id like `conv_1234`. + */ + conversation_id?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls, that was used in this response. + */ + max_output_tokens?: number | 'inf'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The set of modalities the model used to respond. If there are multiple + * modalities, the model will pick one, for example if `modalities` is + * `["text", "audio"]`, the model could be responding in either text or audio. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The object type, must be `realtime.response`. + */ + object?: 'realtime.response'; + /** + * The list of output items generated by the response. + */ + output?: Array; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The final status of the response (`completed`, `cancelled`, `failed`, or + * `incomplete`, `in_progress`). + */ + status?: 'completed' | 'cancelled' | 'failed' | 'incomplete' | 'in_progress'; + /** + * Additional details about the status. + */ + status_details?: RealtimeResponseStatus; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * Usage statistics for the Response, this will correspond to billing. A Realtime + * API session will maintain a conversation context and append new Items to the + * Conversation, thus output from previous turns (text and audio tokens) will + * become the input for later turns. + */ + usage?: RealtimeResponseUsage; + /** + * The voice the model used to respond. Current voice options are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +/** + * Additional details about the status. + */ +export interface RealtimeResponseStatus { + /** + * A description of the error that caused the response to fail, populated when the + * `status` is `failed`. + */ + error?: RealtimeResponseStatus.Error; + /** + * The reason the Response did not complete. For a `cancelled` Response, one of + * `turn_detected` (the server VAD detected a new start of speech) or + * `client_cancelled` (the client sent a cancel event). For an `incomplete` + * Response, one of `max_output_tokens` or `content_filter` (the server-side safety + * filter activated and cut off the response). + */ + reason?: 'turn_detected' | 'client_cancelled' | 'max_output_tokens' | 'content_filter'; + /** + * The type of error that caused the response to fail, corresponding with the + * `status` field (`completed`, `cancelled`, `incomplete`, `failed`). + */ + type?: 'completed' | 'cancelled' | 'incomplete' | 'failed'; +} +export declare namespace RealtimeResponseStatus { + /** + * A description of the error that caused the response to fail, populated when the + * `status` is `failed`. + */ + interface Error { + /** + * Error code, if any. + */ + code?: string; + /** + * The type of error. + */ + type?: string; + } +} +/** + * Usage statistics for the Response, this will correspond to billing. A Realtime + * API session will maintain a conversation context and append new Items to the + * Conversation, thus output from previous turns (text and audio tokens) will + * become the input for later turns. + */ +export interface RealtimeResponseUsage { + /** + * Details about the input tokens used in the Response. + */ + input_token_details?: RealtimeResponseUsage.InputTokenDetails; + /** + * The number of input tokens used in the Response, including text and audio + * tokens. + */ + input_tokens?: number; + /** + * Details about the output tokens used in the Response. + */ + output_token_details?: RealtimeResponseUsage.OutputTokenDetails; + /** + * The number of output tokens sent in the Response, including text and audio + * tokens. + */ + output_tokens?: number; + /** + * The total number of tokens in the Response including input and output text and + * audio tokens. + */ + total_tokens?: number; +} +export declare namespace RealtimeResponseUsage { + /** + * Details about the input tokens used in the Response. + */ + interface InputTokenDetails { + /** + * The number of audio tokens used in the Response. + */ + audio_tokens?: number; + /** + * The number of cached tokens used in the Response. + */ + cached_tokens?: number; + /** + * The number of text tokens used in the Response. + */ + text_tokens?: number; + } + /** + * Details about the output tokens used in the Response. + */ + interface OutputTokenDetails { + /** + * The number of audio tokens used in the Response. + */ + audio_tokens?: number; + /** + * The number of text tokens used in the Response. + */ + text_tokens?: number; + } +} +/** + * A realtime server event. + */ +export type RealtimeServerEvent = ConversationCreatedEvent | ConversationItemCreatedEvent | ConversationItemDeletedEvent | ConversationItemInputAudioTranscriptionCompletedEvent | ConversationItemInputAudioTranscriptionDeltaEvent | ConversationItemInputAudioTranscriptionFailedEvent | RealtimeServerEvent.ConversationItemRetrieved | ConversationItemTruncatedEvent | ErrorEvent | InputAudioBufferClearedEvent | InputAudioBufferCommittedEvent | InputAudioBufferSpeechStartedEvent | InputAudioBufferSpeechStoppedEvent | RateLimitsUpdatedEvent | ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseDoneEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | SessionCreatedEvent | SessionUpdatedEvent | TranscriptionSessionUpdatedEvent | RealtimeServerEvent.OutputAudioBufferStarted | RealtimeServerEvent.OutputAudioBufferStopped | RealtimeServerEvent.OutputAudioBufferCleared; +export declare namespace RealtimeServerEvent { + /** + * Returned when a conversation item is retrieved with + * `conversation.item.retrieve`. + */ + interface ConversationItemRetrieved { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: RealtimeAPI.ConversationItem; + /** + * The event type, must be `conversation.item.retrieved`. + */ + type: 'conversation.item.retrieved'; + } + /** + * **WebRTC Only:** Emitted when the server begins streaming audio to the client. + * This event is emitted after an audio content part has been added + * (`response.content_part.added`) to the response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferStarted { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.started`. + */ + type: 'output_audio_buffer.started'; + } + /** + * **WebRTC Only:** Emitted when the output audio buffer has been completely + * drained on the server, and no more audio is forthcoming. This event is emitted + * after the full response data has been sent to the client (`response.done`). + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferStopped { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.stopped`. + */ + type: 'output_audio_buffer.stopped'; + } + /** + * **WebRTC Only:** Emitted when the output audio buffer is cleared. This happens + * either in VAD mode when the user has interrupted + * (`input_audio_buffer.speech_started`), or when the client has emitted the + * `output_audio_buffer.clear` event to manually cut off the current audio + * response. + * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + */ + interface OutputAudioBufferCleared { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The unique ID of the response that produced the audio. + */ + response_id: string; + /** + * The event type, must be `output_audio_buffer.cleared`. + */ + type: 'output_audio_buffer.cleared'; + } +} +/** + * Returned when the model-generated audio is updated. + */ +export interface ResponseAudioDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * Base64-encoded audio data delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio.delta`. + */ + type: 'response.audio.delta'; +} +/** + * Returned when the model-generated audio is done. Also emitted when a Response is + * interrupted, incomplete, or cancelled. + */ +export interface ResponseAudioDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio.done`. + */ + type: 'response.audio.done'; +} +/** + * Returned when the model-generated transcription of audio output is updated. + */ +export interface ResponseAudioTranscriptDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The transcript delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.audio_transcript.delta`. + */ + type: 'response.audio_transcript.delta'; +} +/** + * Returned when the model-generated transcription of audio output is done + * streaming. Also emitted when a Response is interrupted, incomplete, or + * cancelled. + */ +export interface ResponseAudioTranscriptDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The final transcript of the audio. + */ + transcript: string; + /** + * The event type, must be `response.audio_transcript.done`. + */ + type: 'response.audio_transcript.done'; +} +/** + * Send this event to cancel an in-progress response. The server will respond with + * a `response.done` event with a status of `response.status=cancelled`. If there + * is no response to cancel, the server will respond with an error. + */ +export interface ResponseCancelEvent { + /** + * The event type, must be `response.cancel`. + */ + type: 'response.cancel'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * A specific response ID to cancel - if not provided, will cancel an in-progress + * response in the default conversation. + */ + response_id?: string; +} +/** + * Returned when a new content part is added to an assistant message item during + * response generation. + */ +export interface ResponseContentPartAddedEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item to which the content part was added. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The content part that was added. + */ + part: ResponseContentPartAddedEvent.Part; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.content_part.added`. + */ + type: 'response.content_part.added'; +} +export declare namespace ResponseContentPartAddedEvent { + /** + * The content part that was added. + */ + interface Part { + /** + * Base64-encoded audio data (if type is "audio"). + */ + audio?: string; + /** + * The text content (if type is "text"). + */ + text?: string; + /** + * The transcript of the audio (if type is "audio"). + */ + transcript?: string; + /** + * The content type ("text", "audio"). + */ + type?: 'text' | 'audio'; + } +} +/** + * Returned when a content part is done streaming in an assistant message item. + * Also emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseContentPartDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The content part that is done. + */ + part: ResponseContentPartDoneEvent.Part; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.content_part.done`. + */ + type: 'response.content_part.done'; +} +export declare namespace ResponseContentPartDoneEvent { + /** + * The content part that is done. + */ + interface Part { + /** + * Base64-encoded audio data (if type is "audio"). + */ + audio?: string; + /** + * The text content (if type is "text"). + */ + text?: string; + /** + * The transcript of the audio (if type is "audio"). + */ + transcript?: string; + /** + * The content type ("text", "audio"). + */ + type?: 'text' | 'audio'; + } +} +/** + * This event instructs the server to create a Response, which means triggering + * model inference. When in Server VAD mode, the server will create Responses + * automatically. + * + * A Response will include at least one Item, and may have two, in which case the + * second will be a function call. These Items will be appended to the conversation + * history. + * + * The server will respond with a `response.created` event, events for Items and + * content created, and finally a `response.done` event to indicate the Response is + * complete. + * + * The `response.create` event includes inference configuration like + * `instructions`, and `temperature`. These fields will override the Session's + * configuration for this Response only. + */ +export interface ResponseCreateEvent { + /** + * The event type, must be `response.create`. + */ + type: 'response.create'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; + /** + * Create a new Realtime response with these parameters + */ + response?: ResponseCreateEvent.Response; +} +export declare namespace ResponseCreateEvent { + /** + * Create a new Realtime response with these parameters + */ + interface Response { + /** + * Controls which conversation the response is added to. Currently supports `auto` + * and `none`, with `auto` as the default value. The `auto` value means that the + * contents of the response will be added to the default conversation. Set this to + * `none` to create an out-of-band response which will not add items to default + * conversation. + */ + conversation?: (string & {}) | 'auto' | 'none'; + /** + * Input items to include in the prompt for the model. Using this field creates a + * new context for this Response instead of using the default conversation. An + * empty array `[]` will clear the context for this Response. Note that this can + * include references to items from the default conversation. + */ + input?: Array; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function, like `{"type": "function", "function": {"name": "my_function"}}`. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + } + namespace Response { + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + } +} +/** + * Returned when a new Response is created. The first event of response creation, + * where the response is in an initial state of `in_progress`. + */ +export interface ResponseCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The response resource. + */ + response: RealtimeResponse; + /** + * The event type, must be `response.created`. + */ + type: 'response.created'; +} +/** + * Returned when a Response is done streaming. Always emitted, no matter the final + * state. The Response object included in the `response.done` event will include + * all output Items in the Response but will omit the raw audio data. + */ +export interface ResponseDoneEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The response resource. + */ + response: RealtimeResponse; + /** + * The event type, must be `response.done`. + */ + type: 'response.done'; +} +/** + * Returned when the model-generated function call arguments are updated. + */ +export interface ResponseFunctionCallArgumentsDeltaEvent { + /** + * The ID of the function call. + */ + call_id: string; + /** + * The arguments delta as a JSON string. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the function call item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.function_call_arguments.delta`. + */ + type: 'response.function_call_arguments.delta'; +} +/** + * Returned when the model-generated function call arguments are done streaming. + * Also emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseFunctionCallArgumentsDoneEvent { + /** + * The final arguments as a JSON string. + */ + arguments: string; + /** + * The ID of the function call. + */ + call_id: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the function call item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.function_call_arguments.done`. + */ + type: 'response.function_call_arguments.done'; +} +/** + * Returned when a new Item is created during Response generation. + */ +export interface ResponseOutputItemAddedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The index of the output item in the Response. + */ + output_index: number; + /** + * The ID of the Response to which the item belongs. + */ + response_id: string; + /** + * The event type, must be `response.output_item.added`. + */ + type: 'response.output_item.added'; +} +/** + * Returned when an Item is done streaming. Also emitted when a Response is + * interrupted, incomplete, or cancelled. + */ +export interface ResponseOutputItemDoneEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The item to add to the conversation. + */ + item: ConversationItem; + /** + * The index of the output item in the Response. + */ + output_index: number; + /** + * The ID of the Response to which the item belongs. + */ + response_id: string; + /** + * The event type, must be `response.output_item.done`. + */ + type: 'response.output_item.done'; +} +/** + * Returned when the text value of a "text" content part is updated. + */ +export interface ResponseTextDeltaEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The text delta. + */ + delta: string; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The event type, must be `response.text.delta`. + */ + type: 'response.text.delta'; +} +/** + * Returned when the text value of a "text" content part is done streaming. Also + * emitted when a Response is interrupted, incomplete, or cancelled. + */ +export interface ResponseTextDoneEvent { + /** + * The index of the content part in the item's content array. + */ + content_index: number; + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item in the response. + */ + output_index: number; + /** + * The ID of the response. + */ + response_id: string; + /** + * The final text content. + */ + text: string; + /** + * The event type, must be `response.text.done`. + */ + type: 'response.text.done'; +} +/** + * Returned when a Session is created. Emitted automatically when a new connection + * is established as the first server event. This event will contain the default + * Session configuration. + */ +export interface SessionCreatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * Realtime session object configuration. + */ + session: SessionsAPI.Session; + /** + * The event type, must be `session.created`. + */ + type: 'session.created'; +} +/** + * Send this event to update the session’s default configuration. The client may + * send this event at any time to update any field, except for `voice`. However, + * note that once a session has been initialized with a particular `model`, it + * can’t be changed to another model using `session.update`. + * + * When the server receives a `session.update`, it will respond with a + * `session.updated` event showing the full, effective configuration. Only the + * fields that are present are updated. To clear a field like `instructions`, pass + * an empty string. + */ +export interface SessionUpdateEvent { + /** + * Realtime session object configuration. + */ + session: SessionUpdateEvent.Session; + /** + * The event type, must be `session.update`. + */ + type: 'session.update'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +export declare namespace SessionUpdateEvent { + /** + * Realtime session object configuration. + */ + interface Session { + /** + * Configuration options for the generated client secret. + */ + client_secret?: Session.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | Session.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; + } + namespace Session { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_after?: ClientSecret.ExpiresAfter; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAfter { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } + } +} +/** + * Returned when a session is updated with a `session.update` event, unless there + * is an error. + */ +export interface SessionUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * Realtime session object configuration. + */ + session: SessionsAPI.Session; + /** + * The event type, must be `session.updated`. + */ + type: 'session.updated'; +} +/** + * Send this event to update a transcription session. + */ +export interface TranscriptionSessionUpdate { + /** + * Realtime transcription session object configuration. + */ + session: TranscriptionSessionUpdate.Session; + /** + * The event type, must be `transcription_session.update`. + */ + type: 'transcription_session.update'; + /** + * Optional client-generated ID used to identify this event. + */ + event_id?: string; +} +export declare namespace TranscriptionSessionUpdate { + /** + * Realtime transcription session object configuration. + */ + interface Session { + /** + * Configuration options for the generated client secret. + */ + client_secret?: Session.ClientSecret; + /** + * The set of items to include in the transcription. Current available items are: + * + * - `item.input_audio_transcription.logprobs` + */ + include?: Array; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + } + namespace Session { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_at?: ClientSecret.ExpiresAt; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAt { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor?: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. Not available for transcription sessions. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. Not available for transcription sessions. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } + } +} +/** + * Returned when a transcription session is updated with a + * `transcription_session.update` event, unless there is an error. + */ +export interface TranscriptionSessionUpdatedEvent { + /** + * The unique ID of the server event. + */ + event_id: string; + /** + * A new Realtime transcription session configuration. + * + * When a session is created on the server via REST API, the session object also + * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is + * not present when a session is updated via the WebSocket API. + */ + session: TranscriptionSessionsAPI.TranscriptionSession; + /** + * The event type, must be `transcription_session.updated`. + */ + type: 'transcription_session.updated'; +} +export declare namespace Realtime { + export { type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, }; + export { Sessions as Sessions, type SessionsAPISession as Session, type SessionCreateResponse as SessionCreateResponse, type SessionCreateParams as SessionCreateParams, }; + export { TranscriptionSessions as TranscriptionSessions, type TranscriptionSession as TranscriptionSession, type TranscriptionSessionCreateParams as TranscriptionSessionCreateParams, }; +} +//# sourceMappingURL=realtime.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..1a9119e572f03b8d686a9b71f0fef091a0b2b754 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/realtime.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EACL,OAAO,IAAI,kBAAkB,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,KAAK,wBAAwB;OAC7B,EACL,oBAAoB,EACpB,gCAAgC,EAChC,qBAAqB,EACtB;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,qBAAqB,EAAE,wBAAwB,CAAC,qBAAqB,CACF;CACpE;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,EAAE,wBAAwB,CAAC,YAAY,CAAC;IAE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KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,kBAAkB,IAAI,OAAO,EAClC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js new file mode 100644 index 0000000000000000000000000000000000000000..34db26707d40e73c2e941a4b23c5d0a5d4327569 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js @@ -0,0 +1,21 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Realtime = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const SessionsAPI = tslib_1.__importStar(require("./sessions.js")); +const sessions_1 = require("./sessions.js"); +const TranscriptionSessionsAPI = tslib_1.__importStar(require("./transcription-sessions.js")); +const transcription_sessions_1 = require("./transcription-sessions.js"); +class Realtime extends resource_1.APIResource { + constructor() { + super(...arguments); + this.sessions = new SessionsAPI.Sessions(this._client); + this.transcriptionSessions = new TranscriptionSessionsAPI.TranscriptionSessions(this._client); + } +} +exports.Realtime = Realtime; +Realtime.Sessions = sessions_1.Sessions; +Realtime.TranscriptionSessions = transcription_sessions_1.TranscriptionSessions; +//# sourceMappingURL=realtime.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js.map new file mode 100644 index 0000000000000000000000000000000000000000..bd4e7dff485c1d95066abc41f94625c2313db071 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.js","sourceRoot":"","sources":["../../../src/resources/beta/realtime/realtime.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,mEAA0C;AAC1C,4CAKoB;AACpB,8FAAqE;AACrE,wEAIkC;AAElC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAJD,4BAIC;AA8qFD,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,qBAAqB,GAAG,8CAAqB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs new file mode 100644 index 0000000000000000000000000000000000000000..7c01cf54f23ec5068c217eb3cd2271dd83da3af5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as SessionsAPI from "./sessions.mjs"; +import { Sessions, } from "./sessions.mjs"; +import * as TranscriptionSessionsAPI from "./transcription-sessions.mjs"; +import { TranscriptionSessions, } from "./transcription-sessions.mjs"; +export class Realtime extends APIResource { + constructor() { + super(...arguments); + this.sessions = new SessionsAPI.Sessions(this._client); + this.transcriptionSessions = new TranscriptionSessionsAPI.TranscriptionSessions(this._client); + } +} +Realtime.Sessions = Sessions; +Realtime.TranscriptionSessions = TranscriptionSessions; +//# sourceMappingURL=realtime.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..e53d30b27b7afdd7d88a52817401d630d04d958d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/realtime.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"realtime.mjs","sourceRoot":"","sources":["../../../src/resources/beta/realtime/realtime.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAIL,QAAQ,GACT;OACM,KAAK,wBAAwB;OAC7B,EAGL,qBAAqB,GACtB;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AA8qFD,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..d5d9e5bf5084f375cd6284e5c974857e15efde12 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts @@ -0,0 +1,744 @@ +import { APIResource } from "../../../core/resource.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Sessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API. Can be configured with the same session parameters as the + * `session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const session = + * await client.beta.realtime.sessions.create(); + * ``` + */ + create(body: SessionCreateParams, options?: RequestOptions): APIPromise; +} +/** + * Realtime session object configuration. + */ +export interface Session { + /** + * Unique identifier for the session that looks like `sess_1234567890abcdef`. + */ + id?: string; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | Session.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace Session { + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +/** + * A new Realtime session configuration, with an ephemeral key. Default TTL for + * keys is one minute. + */ +export interface SessionCreateResponse { + /** + * Ephemeral key returned by the API. + */ + client_secret: SessionCreateResponse.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + input_audio_format?: string; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously and should be treated as rough guidance rather than the + * representation understood by the model. + */ + input_audio_transcription?: SessionCreateResponse.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: string; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | SessionCreateResponse.TracingConfiguration; + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + turn_detection?: SessionCreateResponse.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace SessionCreateResponse { + /** + * Ephemeral key returned by the API. + */ + interface ClientSecret { + /** + * Timestamp for when the token expires. Currently, all tokens expire after one + * minute. + */ + expires_at: number; + /** + * Ephemeral key usable in client environments to authenticate connections to the + * Realtime API. Use this in client-side environments rather than a standard API + * token, which should only be used server-side. + */ + value: string; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously and should be treated as rough guidance rather than the + * representation understood by the model. + */ + interface InputAudioTranscription { + /** + * The model to use for transcription. + */ + model?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + interface TurnDetection { + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + * Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + * With shorter values the model will respond more quickly, but may jump in on + * short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection, only `server_vad` is currently supported. + */ + type?: string; + } +} +export interface SessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + client_secret?: SessionCreateParams.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: SessionCreateParams.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: SessionCreateParams.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | SessionCreateParams.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: SessionCreateParams.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace SessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_after?: ClientSecret.ExpiresAfter; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAfter { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +export declare namespace Sessions { + export { type Session as Session, type SessionCreateResponse as SessionCreateResponse, type SessionCreateParams as SessionCreateParams, }; +} +//# sourceMappingURL=sessions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..0c378ae5ff784d1ca4fca4a01c724fb7ba50fd7f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.d.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AM,CAAC;QAEnB;;WAEG;QACH,IAAI,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..51b1bae95308343f42ab89fbb482b352495cfa35 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts @@ -0,0 +1,744 @@ +import { APIResource } from "../../../core/resource.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Sessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API. Can be configured with the same session parameters as the + * `session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const session = + * await client.beta.realtime.sessions.create(); + * ``` + */ + create(body: SessionCreateParams, options?: RequestOptions): APIPromise; +} +/** + * Realtime session object configuration. + */ +export interface Session { + /** + * Unique identifier for the session that looks like `sess_1234567890abcdef`. + */ + id?: string; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: Session.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: Session.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | Session.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: Session.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace Session { + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +/** + * A new Realtime session configuration, with an ephemeral key. Default TTL for + * keys is one minute. + */ +export interface SessionCreateResponse { + /** + * Ephemeral key returned by the API. + */ + client_secret: SessionCreateResponse.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + input_audio_format?: string; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously and should be treated as rough guidance rather than the + * representation understood by the model. + */ + input_audio_transcription?: SessionCreateResponse.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + output_audio_format?: string; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | SessionCreateResponse.TracingConfiguration; + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + turn_detection?: SessionCreateResponse.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace SessionCreateResponse { + /** + * Ephemeral key returned by the API. + */ + interface ClientSecret { + /** + * Timestamp for when the token expires. Currently, all tokens expire after one + * minute. + */ + expires_at: number; + /** + * Ephemeral key usable in client environments to authenticate connections to the + * Realtime API. Use this in client-side environments rather than a standard API + * token, which should only be used server-side. + */ + value: string; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously and should be treated as rough guidance rather than the + * representation understood by the model. + */ + interface InputAudioTranscription { + /** + * The model to use for transcription. + */ + model?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + interface TurnDetection { + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + * Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + * With shorter values the model will respond more quickly, but may jump in on + * short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection, only `server_vad` is currently supported. + */ + type?: string; + } +} +export interface SessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + client_secret?: SessionCreateParams.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: SessionCreateParams.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + input_audio_transcription?: SessionCreateParams.InputAudioTranscription; + /** + * The default system instructions (i.e. system message) prepended to model calls. + * This field allows the client to guide the model on desired responses. The model + * can be instructed on response content and format, (e.g. "be extremely succinct", + * "act friendly", "here are examples of good responses") and on audio behavior + * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The + * instructions are not guaranteed to be followed by the model, but they provide + * guidance to the model on the desired behavior. + * + * Note that the server sets default instructions which will be used if this field + * is not set and are visible in the `session.created` event at the start of the + * session. + */ + instructions?: string; + /** + * Maximum number of output tokens for a single assistant response, inclusive of + * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + * `inf` for the maximum available tokens for a given model. Defaults to `inf`. + */ + max_response_output_tokens?: number | 'inf'; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * The Realtime model used for this session. + */ + model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17'; + /** + * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + * For `pcm16`, output audio is sampled at a rate of 24kHz. + */ + output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the + * minimum speed. 1.5 is the maximum speed. This value can only be changed in + * between model turns, not while a response is in progress. + */ + speed?: number; + /** + * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a + * temperature of 0.8 is highly recommended for best performance. + */ + temperature?: number; + /** + * How the model chooses tools. Options are `auto`, `none`, `required`, or specify + * a function. + */ + tool_choice?: string; + /** + * Tools (functions) available to the model. + */ + tools?: Array; + /** + * Configuration options for tracing. Set to null to disable tracing. Once tracing + * is enabled for a session, the configuration cannot be modified. + * + * `auto` will create a trace for the session with default values for the workflow + * name, group id, and metadata. + */ + tracing?: 'auto' | SessionCreateParams.TracingConfiguration; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: SessionCreateParams.TurnDetection; + /** + * The voice the model uses to respond. Voice cannot be changed during the session + * once the model has responded with audio at least once. Current voice options are + * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + */ + voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +export declare namespace SessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_after?: ClientSecret.ExpiresAfter; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAfter { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription, defaults to off and can be set to + * `null` to turn off once on. Input audio transcription is not native to the + * model, since the model consumes audio directly. Transcription runs + * asynchronously through + * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + * and should be treated as guidance of input audio content rather than precisely + * what the model heard. The client can optionally set the language and prompt for + * transcription, these offer additional guidance to the transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: string; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + interface Tool { + /** + * The description of the function, including guidance on when and how to call it, + * and guidance about what to tell the user when calling (if anything). + */ + description?: string; + /** + * The name of the function. + */ + name?: string; + /** + * Parameters of the function in JSON Schema. + */ + parameters?: unknown; + /** + * The type of the tool, i.e. `function`. + */ + type?: 'function'; + } + /** + * Granular configuration for tracing. + */ + interface TracingConfiguration { + /** + * The group id to attach to this trace to enable filtering and grouping in the + * traces dashboard. + */ + group_id?: string; + /** + * The arbitrary metadata to attach to this trace to enable filtering in the traces + * dashboard. + */ + metadata?: unknown; + /** + * The name of the workflow to attach to this trace. This is used to name the trace + * in the traces dashboard. + */ + workflow_name?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +export declare namespace Sessions { + export { type Session as Session, type SessionCreateResponse as SessionCreateResponse, type SessionCreateParams as SessionCreateParams, }; +} +//# sourceMappingURL=sessions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ddd0c9c7a453998f6f832ac563cfa727d498e776 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAO/F;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;IAEzD;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC;IAE/D;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC;IAE5D;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAE5C;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC;IAErC;;OAEG;IACH,KAAK,CAAC,EACF,yBAAyB,GACzB,oCAAoC,GACpC,oCAAoC,GACpC,oCAAoC,GACpC,8BAA8B,GAC9B,yCAAyC,CAAC;IAE9C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG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AAG,MAAM,GAAG,MAAM,CAAC;QAE/C;;;;WAIG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAE7B;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;;;WAIG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAE7B;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,IAAI,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js new file mode 100644 index 0000000000000000000000000000000000000000..192e166480d04151c5a31ae027924ee800a883ac --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js @@ -0,0 +1,32 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Sessions = void 0; +const resource_1 = require("../../../core/resource.js"); +const headers_1 = require("../../../internal/headers.js"); +class Sessions extends resource_1.APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API. Can be configured with the same session parameters as the + * `session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const session = + * await client.beta.realtime.sessions.create(); + * ``` + */ + create(body, options) { + return this._client.post('/realtime/sessions', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.Sessions = Sessions; +//# sourceMappingURL=sessions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9d1cc8757da50f4487321471eec33e79ac073776 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/beta/realtime/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,4BAuBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..beae469e81f3ddaf6103629a895206beef504c7a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +export class Sessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API. Can be configured with the same session parameters as the + * `session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const session = + * await client.beta.realtime.sessions.create(); + * ``` + */ + create(body, options) { + return this._client.post('/realtime/sessions', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +//# sourceMappingURL=sessions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9cf552e6e8c67ba52e1998d107f6b57c38ca0dec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/sessions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/beta/realtime/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..c7c4fa46e22787c489f4c3e84476620f273dcb0b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts @@ -0,0 +1,299 @@ +import { APIResource } from "../../../core/resource.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class TranscriptionSessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API specifically for realtime transcriptions. Can be configured with + * the same session parameters as the `transcription_session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const transcriptionSession = + * await client.beta.realtime.transcriptionSessions.create(); + * ``` + */ + create(body: TranscriptionSessionCreateParams, options?: RequestOptions): APIPromise; +} +/** + * A new Realtime transcription session configuration. + * + * When a session is created on the server via REST API, the session object also + * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is + * not present when a session is updated via the WebSocket API. + */ +export interface TranscriptionSession { + /** + * Ephemeral key returned by the API. Only present when the session is created on + * the server via REST API. + */ + client_secret: TranscriptionSession.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + input_audio_format?: string; + /** + * Configuration of the transcription model. + */ + input_audio_transcription?: TranscriptionSession.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + turn_detection?: TranscriptionSession.TurnDetection; +} +export declare namespace TranscriptionSession { + /** + * Ephemeral key returned by the API. Only present when the session is created on + * the server via REST API. + */ + interface ClientSecret { + /** + * Timestamp for when the token expires. Currently, all tokens expire after one + * minute. + */ + expires_at: number; + /** + * Ephemeral key usable in client environments to authenticate connections to the + * Realtime API. Use this in client-side environments rather than a standard API + * token, which should only be used server-side. + */ + value: string; + } + /** + * Configuration of the transcription model. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription. Can be `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, or `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should match the audio language. + */ + prompt?: string; + } + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + interface TurnDetection { + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + * Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + * With shorter values the model will respond more quickly, but may jump in on + * short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection, only `server_vad` is currently supported. + */ + type?: string; + } +} +export interface TranscriptionSessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + client_secret?: TranscriptionSessionCreateParams.ClientSecret; + /** + * The set of items to include in the transcription. Current available items are: + * + * - `item.input_audio_transcription.logprobs` + */ + include?: Array; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: TranscriptionSessionCreateParams.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + input_audio_transcription?: TranscriptionSessionCreateParams.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: TranscriptionSessionCreateParams.TurnDetection; +} +export declare namespace TranscriptionSessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_at?: ClientSecret.ExpiresAt; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAt { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor?: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. Not available for transcription sessions. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. Not available for transcription sessions. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +export declare namespace TranscriptionSessions { + export { type TranscriptionSession as TranscriptionSession, type TranscriptionSessionCreateParams as TranscriptionSessionCreateParams, }; +} +//# sourceMappingURL=transcription-sessions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..ae19a705788b58b319fcad8500d5f5ec6c5f617a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"transcription-sessions.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/transcription-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAO3G;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,aAAa,EAAE,oBAAoB,CAAC,YAAY,CAAC;IAEjD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,yBAAyB,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC;IAEzE;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC;IAErC;;;;OAIG;IAC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git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..636dbee60f3943a03a7b6a2d2058c52157de30ad --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts @@ -0,0 +1,299 @@ +import { APIResource } from "../../../core/resource.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class TranscriptionSessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API specifically for realtime transcriptions. Can be configured with + * the same session parameters as the `transcription_session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const transcriptionSession = + * await client.beta.realtime.transcriptionSessions.create(); + * ``` + */ + create(body: TranscriptionSessionCreateParams, options?: RequestOptions): APIPromise; +} +/** + * A new Realtime transcription session configuration. + * + * When a session is created on the server via REST API, the session object also + * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is + * not present when a session is updated via the WebSocket API. + */ +export interface TranscriptionSession { + /** + * Ephemeral key returned by the API. Only present when the session is created on + * the server via REST API. + */ + client_secret: TranscriptionSession.ClientSecret; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + */ + input_audio_format?: string; + /** + * Configuration of the transcription model. + */ + input_audio_transcription?: TranscriptionSession.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + turn_detection?: TranscriptionSession.TurnDetection; +} +export declare namespace TranscriptionSession { + /** + * Ephemeral key returned by the API. Only present when the session is created on + * the server via REST API. + */ + interface ClientSecret { + /** + * Timestamp for when the token expires. Currently, all tokens expire after one + * minute. + */ + expires_at: number; + /** + * Ephemeral key usable in client environments to authenticate connections to the + * Realtime API. Use this in client-side environments rather than a standard API + * token, which should only be used server-side. + */ + value: string; + } + /** + * Configuration of the transcription model. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription. Can be `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, or `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. The + * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + * should match the audio language. + */ + prompt?: string; + } + /** + * Configuration for turn detection. Can be set to `null` to turn off. Server VAD + * means that the model will detect the start and end of speech based on audio + * volume and respond at the end of user speech. + */ + interface TurnDetection { + /** + * Amount of audio to include before the VAD detected speech (in milliseconds). + * Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + * With shorter values the model will respond more quickly, but may jump in on + * short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + * threshold will require louder audio to activate the model, and thus might + * perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection, only `server_vad` is currently supported. + */ + type?: string; + } +} +export interface TranscriptionSessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + client_secret?: TranscriptionSessionCreateParams.ClientSecret; + /** + * The set of items to include in the transcription. Current available items are: + * + * - `item.input_audio_transcription.logprobs` + */ + include?: Array; + /** + * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For + * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel + * (mono), and little-endian byte order. + */ + input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw'; + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + input_audio_noise_reduction?: TranscriptionSessionCreateParams.InputAudioNoiseReduction; + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + input_audio_transcription?: TranscriptionSessionCreateParams.InputAudioTranscription; + /** + * The set of modalities the model can respond with. To disable audio, set this to + * ["text"]. + */ + modalities?: Array<'text' | 'audio'>; + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + turn_detection?: TranscriptionSessionCreateParams.TurnDetection; +} +export declare namespace TranscriptionSessionCreateParams { + /** + * Configuration options for the generated client secret. + */ + interface ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + expires_at?: ClientSecret.ExpiresAt; + } + namespace ClientSecret { + /** + * Configuration for the ephemeral token expiration. + */ + interface ExpiresAt { + /** + * The anchor point for the ephemeral token expiration. Only `created_at` is + * currently supported. + */ + anchor?: 'created_at'; + /** + * The number of seconds from the anchor point to the expiration. Select a value + * between `10` and `7200`. + */ + seconds?: number; + } + } + /** + * Configuration for input audio noise reduction. This can be set to `null` to turn + * off. Noise reduction filters audio added to the input audio buffer before it is + * sent to VAD and the model. Filtering the audio can improve VAD and turn + * detection accuracy (reducing false positives) and model performance by improving + * perception of the input audio. + */ + interface InputAudioNoiseReduction { + /** + * Type of noise reduction. `near_field` is for close-talking microphones such as + * headphones, `far_field` is for far-field microphones such as laptop or + * conference room microphones. + */ + type?: 'near_field' | 'far_field'; + } + /** + * Configuration for input audio transcription. The client can optionally set the + * language and prompt for transcription, these offer additional guidance to the + * transcription service. + */ + interface InputAudioTranscription { + /** + * The language of the input audio. Supplying the input language in + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + * format will improve accuracy and latency. + */ + language?: string; + /** + * The model to use for transcription, current options are `gpt-4o-transcribe`, + * `gpt-4o-mini-transcribe`, and `whisper-1`. + */ + model?: 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe' | 'whisper-1'; + /** + * An optional text to guide the model's style or continue a previous audio + * segment. For `whisper-1`, the + * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + * For `gpt-4o-transcribe` models, the prompt is a free text string, for example + * "expect words related to technology". + */ + prompt?: string; + } + /** + * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be + * set to `null` to turn off, in which case the client must manually trigger model + * response. Server VAD means that the model will detect the start and end of + * speech based on audio volume and respond at the end of user speech. Semantic VAD + * is more advanced and uses a turn detection model (in conjunction with VAD) to + * semantically estimate whether the user has finished speaking, then dynamically + * sets a timeout based on this probability. For example, if user audio trails off + * with "uhhm", the model will score a low probability of turn end and wait longer + * for the user to continue speaking. This can be useful for more natural + * conversations, but may have a higher latency. + */ + interface TurnDetection { + /** + * Whether or not to automatically generate a response when a VAD stop event + * occurs. Not available for transcription sessions. + */ + create_response?: boolean; + /** + * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` + * will wait longer for the user to continue speaking, `high` will respond more + * quickly. `auto` is the default and is equivalent to `medium`. + */ + eagerness?: 'low' | 'medium' | 'high' | 'auto'; + /** + * Whether or not to automatically interrupt any ongoing response with output to + * the default conversation (i.e. `conversation` of `auto`) when a VAD start event + * occurs. Not available for transcription sessions. + */ + interrupt_response?: boolean; + /** + * Used only for `server_vad` mode. Amount of audio to include before the VAD + * detected speech (in milliseconds). Defaults to 300ms. + */ + prefix_padding_ms?: number; + /** + * Used only for `server_vad` mode. Duration of silence to detect speech stop (in + * milliseconds). Defaults to 500ms. With shorter values the model will respond + * more quickly, but may jump in on short pauses from the user. + */ + silence_duration_ms?: number; + /** + * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this + * defaults to 0.5. A higher threshold will require louder audio to activate the + * model, and thus might perform better in noisy environments. + */ + threshold?: number; + /** + * Type of turn detection. + */ + type?: 'server_vad' | 'semantic_vad'; + } +} +export declare namespace TranscriptionSessions { + export { type TranscriptionSession as TranscriptionSession, type TranscriptionSessionCreateParams as TranscriptionSessionCreateParams, }; +} +//# sourceMappingURL=transcription-sessions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f564b345e15a17c18bf5fa2c48578e8494ff378c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transcription-sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/realtime/transcription-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAO3G;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,aAAa,EAAE,oBAAoB,CAAC,YAAY,CAAC;IAEjD;;OAEG;IACH,kBAAkB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AAY,GAAG,cAAc,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js new file mode 100644 index 0000000000000000000000000000000000000000..ee81a3d9d0a569625aa2e1f03a1d83400d5e4caf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js @@ -0,0 +1,32 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TranscriptionSessions = void 0; +const resource_1 = require("../../../core/resource.js"); +const headers_1 = require("../../../internal/headers.js"); +class TranscriptionSessions extends resource_1.APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API specifically for realtime transcriptions. Can be configured with + * the same session parameters as the `transcription_session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const transcriptionSession = + * await client.beta.realtime.transcriptionSessions.create(); + * ``` + */ + create(body, options) { + return this._client.post('/realtime/transcription_sessions', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.TranscriptionSessions = TranscriptionSessions; +//# sourceMappingURL=transcription-sessions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..6a416dd558c0cba6c84ca1e18bc9e3e0b54a9d61 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transcription-sessions.js","sourceRoot":"","sources":["../../../src/resources/beta/realtime/transcription-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAsC,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,sDAuBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4073313cedb1c06719dff3a65b339461394ee18a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +export class TranscriptionSessions extends APIResource { + /** + * Create an ephemeral API token for use in client-side applications with the + * Realtime API specifically for realtime transcriptions. Can be configured with + * the same session parameters as the `transcription_session.update` client event. + * + * It responds with a session object, plus a `client_secret` key which contains a + * usable ephemeral API token that can be used to authenticate browser clients for + * the Realtime API. + * + * @example + * ```ts + * const transcriptionSession = + * await client.beta.realtime.transcriptionSessions.create(); + * ``` + */ + create(body, options) { + return this._client.post('/realtime/transcription_sessions', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +//# sourceMappingURL=transcription-sessions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..86f02c0948c177d11d5ddc30e7f1bec8a549bf91 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"transcription-sessions.mjs","sourceRoot":"","sources":["../../../src/resources/beta/realtime/transcription-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAsC,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..93b3795894c5070bbf5e9ab2050e6a448bc17c90 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts @@ -0,0 +1,2 @@ +export * from "./threads/index.mjs"; +//# sourceMappingURL=threads.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..a68ab716d6f486b0c10e9904d4de62e50bd8b962 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../src/resources/beta/threads.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..887d7b3339992ca725824eaa099a107d7976d02e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts @@ -0,0 +1,2 @@ +export * from "./threads/index.js"; +//# sourceMappingURL=threads.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..19669fd5117d670d90856cc924e425555d4ff5de --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/resources/beta/threads.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js new file mode 100644 index 0000000000000000000000000000000000000000..dbb2cbb293ee376d10d9dd076b63fc2799a88cae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./threads/index.js"), exports); +//# sourceMappingURL=threads.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js.map new file mode 100644 index 0000000000000000000000000000000000000000..43b83735cf555e00caf74db54f829643b22a733d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.js.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.js","sourceRoot":"","sources":["../../src/resources/beta/threads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5f8dab43b4a43ff5749ffa559d38ad2127de35ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./threads/index.mjs"; +//# sourceMappingURL=threads.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..29a54601dc8044088e2976487d2e0ed65e1e0d14 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.mjs","sourceRoot":"","sources":["../../src/resources/beta/threads.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..0b759ae90643e43f0007b942bbbe8d50dd990243 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts @@ -0,0 +1,4 @@ +export { Messages, type Annotation, type AnnotationDelta, type FileCitationAnnotation, type FileCitationDeltaAnnotation, type FilePathAnnotation, type FilePathDeltaAnnotation, type ImageFile, type ImageFileContentBlock, type ImageFileDelta, type ImageFileDeltaBlock, type ImageURL, type ImageURLContentBlock, type ImageURLDelta, type ImageURLDeltaBlock, type Message, type MessageContent, type MessageContentDelta, type MessageContentPartParam, type MessageDeleted, type MessageDelta, type MessageDeltaEvent, type RefusalContentBlock, type RefusalDeltaBlock, type Text, type TextContentBlock, type TextContentBlockParam, type TextDelta, type TextDeltaBlock, type MessageCreateParams, type MessageRetrieveParams, type MessageUpdateParams, type MessageListParams, type MessageDeleteParams, type MessagesPage, } from "./messages.mjs"; +export { Runs, type RequiredActionFunctionToolCall, type Run, type RunStatus, type RunCreateParams, type RunCreateParamsNonStreaming, type RunCreateParamsStreaming, type RunRetrieveParams, type RunUpdateParams, type RunListParams, type RunCancelParams, type RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming, type RunsPage, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, } from "./runs/index.mjs"; +export { Threads, type AssistantResponseFormatOption, type AssistantToolChoice, type AssistantToolChoiceFunction, type AssistantToolChoiceOption, type Thread, type ThreadDeleted, type ThreadCreateParams, type ThreadUpdateParams, type ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, } from "./threads.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c7ff7a5d86b2a5e26c12ddd527b876da23e56e00 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/threads/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,GAClB;OACM,EACL,IAAI,EACJ,KAAK,8BAA8B,EACnC,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC;OACM,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bf262194c28d4b35ad9466c5820b472051e0ee1a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts @@ -0,0 +1,4 @@ +export { Messages, type Annotation, type AnnotationDelta, type FileCitationAnnotation, type FileCitationDeltaAnnotation, type FilePathAnnotation, type FilePathDeltaAnnotation, type ImageFile, type ImageFileContentBlock, type ImageFileDelta, type ImageFileDeltaBlock, type ImageURL, type ImageURLContentBlock, type ImageURLDelta, type ImageURLDeltaBlock, type Message, type MessageContent, type MessageContentDelta, type MessageContentPartParam, type MessageDeleted, type MessageDelta, type MessageDeltaEvent, type RefusalContentBlock, type RefusalDeltaBlock, type Text, type TextContentBlock, type TextContentBlockParam, type TextDelta, type TextDeltaBlock, type MessageCreateParams, type MessageRetrieveParams, type MessageUpdateParams, type MessageListParams, type MessageDeleteParams, type MessagesPage, } from "./messages.js"; +export { Runs, type RequiredActionFunctionToolCall, type Run, type RunStatus, type RunCreateParams, type RunCreateParamsNonStreaming, type RunCreateParamsStreaming, type RunRetrieveParams, type RunUpdateParams, type RunListParams, type RunCancelParams, type RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming, type RunsPage, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, } from "./runs/index.js"; +export { Threads, type AssistantResponseFormatOption, type AssistantToolChoice, type AssistantToolChoiceFunction, type AssistantToolChoiceOption, type Thread, type ThreadDeleted, type ThreadCreateParams, type ThreadUpdateParams, type ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, } from "./threads.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..63f1d0023a540d8a3a8082e95e9a35673eaefb81 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/threads/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,GAClB;OACM,EACL,IAAI,EACJ,KAAK,8BAA8B,EACnC,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC;OACM,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js new file mode 100644 index 0000000000000000000000000000000000000000..577ff582772648fd27f0ca2ea2ff38e89b38a67f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js @@ -0,0 +1,11 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Threads = exports.Runs = exports.Messages = void 0; +var messages_1 = require("./messages.js"); +Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } }); +var index_1 = require("./runs/index.js"); +Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return index_1.Runs; } }); +var threads_1 = require("./threads.js"); +Object.defineProperty(exports, "Threads", { enumerable: true, get: function () { return threads_1.Threads; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..ce315c9a632d4251ed90e60f6823684f04196abf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/threads/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAoCoB;AAnClB,oGAAA,QAAQ,OAAA;AAoCV,yCAqBsB;AApBpB,6FAAA,IAAI,OAAA;AAqBN,wCAemB;AAdjB,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f7b734002d9a6b09b38591c8655b030175f07646 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Messages, } from "./messages.mjs"; +export { Runs, } from "./runs/index.mjs"; +export { Threads, } from "./threads.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..20a8ceffb4610a354672d85c92f811fc9412d5b5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/threads/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAmCT;OACM,EACL,IAAI,GAoBL;OACM,EACL,OAAO,GAcR"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..86c423e065f5bea618e74d92d55090ed5f4ae595 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts @@ -0,0 +1,594 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as Shared from "../../shared.mjs"; +import * as AssistantsAPI from "../assistants.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Messages extends APIResource { + /** + * Create a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID: string, body: MessageCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Modifies a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(messageID: string, params: MessageUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of messages for a given thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Deletes a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(messageID: string, params: MessageDeleteParams, options?: RequestOptions): APIPromise; +} +export type MessagesPage = CursorPage; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export type Annotation = FileCitationAnnotation | FilePathAnnotation; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export type AnnotationDelta = FileCitationDeltaAnnotation | FilePathDeltaAnnotation; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export interface FileCitationAnnotation { + end_index: number; + file_citation: FileCitationAnnotation.FileCitation; + start_index: number; + /** + * The text in the message content that needs to be replaced. + */ + text: string; + /** + * Always `file_citation`. + */ + type: 'file_citation'; +} +export declare namespace FileCitationAnnotation { + interface FileCitation { + /** + * The ID of the specific File the citation is from. + */ + file_id: string; + } +} +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export interface FileCitationDeltaAnnotation { + /** + * The index of the annotation in the text content part. + */ + index: number; + /** + * Always `file_citation`. + */ + type: 'file_citation'; + end_index?: number; + file_citation?: FileCitationDeltaAnnotation.FileCitation; + start_index?: number; + /** + * The text in the message content that needs to be replaced. + */ + text?: string; +} +export declare namespace FileCitationDeltaAnnotation { + interface FileCitation { + /** + * The ID of the specific File the citation is from. + */ + file_id?: string; + /** + * The specific quote in the file. + */ + quote?: string; + } +} +/** + * A URL for the file that's generated when the assistant used the + * `code_interpreter` tool to generate a file. + */ +export interface FilePathAnnotation { + end_index: number; + file_path: FilePathAnnotation.FilePath; + start_index: number; + /** + * The text in the message content that needs to be replaced. + */ + text: string; + /** + * Always `file_path`. + */ + type: 'file_path'; +} +export declare namespace FilePathAnnotation { + interface FilePath { + /** + * The ID of the file that was generated. + */ + file_id: string; + } +} +/** + * A URL for the file that's generated when the assistant used the + * `code_interpreter` tool to generate a file. + */ +export interface FilePathDeltaAnnotation { + /** + * The index of the annotation in the text content part. + */ + index: number; + /** + * Always `file_path`. + */ + type: 'file_path'; + end_index?: number; + file_path?: FilePathDeltaAnnotation.FilePath; + start_index?: number; + /** + * The text in the message content that needs to be replaced. + */ + text?: string; +} +export declare namespace FilePathDeltaAnnotation { + interface FilePath { + /** + * The ID of the file that was generated. + */ + file_id?: string; + } +} +export interface ImageFile { + /** + * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + * in the message content. Set `purpose="vision"` when uploading the File if you + * need to later display the file content. + */ + file_id: string; + /** + * Specifies the detail level of the image if specified by the user. `low` uses + * fewer tokens, you can opt in to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export interface ImageFileContentBlock { + image_file: ImageFile; + /** + * Always `image_file`. + */ + type: 'image_file'; +} +export interface ImageFileDelta { + /** + * Specifies the detail level of the image if specified by the user. `low` uses + * fewer tokens, you can opt in to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; + /** + * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + * in the message content. Set `purpose="vision"` when uploading the File if you + * need to later display the file content. + */ + file_id?: string; +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export interface ImageFileDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `image_file`. + */ + type: 'image_file'; + image_file?: ImageFileDelta; +} +export interface ImageURL { + /** + * The external URL of the image, must be a supported image types: jpeg, jpg, png, + * gif, webp. + */ + url: string; + /** + * Specifies the detail level of the image. `low` uses fewer tokens, you can opt in + * to high resolution using `high`. Default value is `auto` + */ + detail?: 'auto' | 'low' | 'high'; +} +/** + * References an image URL in the content of a message. + */ +export interface ImageURLContentBlock { + image_url: ImageURL; + /** + * The type of the content part. + */ + type: 'image_url'; +} +export interface ImageURLDelta { + /** + * Specifies the detail level of the image. `low` uses fewer tokens, you can opt in + * to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; + /** + * The URL of the image, must be a supported image types: jpeg, jpg, png, gif, + * webp. + */ + url?: string; +} +/** + * References an image URL in the content of a message. + */ +export interface ImageURLDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `image_url`. + */ + type: 'image_url'; + image_url?: ImageURLDelta; +} +/** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ +export interface Message { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * If applicable, the ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) that + * authored this message. + */ + assistant_id: string | null; + /** + * A list of files attached to the message, and the tools they were added to. + */ + attachments: Array | null; + /** + * The Unix timestamp (in seconds) for when the message was completed. + */ + completed_at: number | null; + /** + * The content of the message in array of text and/or images. + */ + content: Array; + /** + * The Unix timestamp (in seconds) for when the message was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the message was marked as incomplete. + */ + incomplete_at: number | null; + /** + * On an incomplete message, details about why the message is incomplete. + */ + incomplete_details: Message.IncompleteDetails | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread.message`. + */ + object: 'thread.message'; + /** + * The entity that produced the message. One of `user` or `assistant`. + */ + role: 'user' | 'assistant'; + /** + * The ID of the [run](https://platform.openai.com/docs/api-reference/runs) + * associated with the creation of this message. Value is `null` when messages are + * created manually using the create message or create thread endpoints. + */ + run_id: string | null; + /** + * The status of the message, which can be either `in_progress`, `incomplete`, or + * `completed`. + */ + status: 'in_progress' | 'incomplete' | 'completed'; + /** + * The [thread](https://platform.openai.com/docs/api-reference/threads) ID that + * this message belongs to. + */ + thread_id: string; +} +export declare namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface AssistantToolsFileSearchTypeOnly { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + /** + * On an incomplete message, details about why the message is incomplete. + */ + interface IncompleteDetails { + /** + * The reason the message is incomplete. + */ + reason: 'content_filter' | 'max_tokens' | 'run_cancelled' | 'run_expired' | 'run_failed'; + } +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContent = ImageFileContentBlock | ImageURLContentBlock | TextContentBlock | RefusalContentBlock; +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContentDelta = ImageFileDeltaBlock | TextDeltaBlock | RefusalDeltaBlock | ImageURLDeltaBlock; +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContentPartParam = ImageFileContentBlock | ImageURLContentBlock | TextContentBlockParam; +export interface MessageDeleted { + id: string; + deleted: boolean; + object: 'thread.message.deleted'; +} +/** + * The delta containing the fields that have changed on the Message. + */ +export interface MessageDelta { + /** + * The content of the message in array of text and/or images. + */ + content?: Array; + /** + * The entity that produced the message. One of `user` or `assistant`. + */ + role?: 'user' | 'assistant'; +} +/** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ +export interface MessageDeltaEvent { + /** + * The identifier of the message, which can be referenced in API endpoints. + */ + id: string; + /** + * The delta containing the fields that have changed on the Message. + */ + delta: MessageDelta; + /** + * The object type, which is always `thread.message.delta`. + */ + object: 'thread.message.delta'; +} +/** + * The refusal content generated by the assistant. + */ +export interface RefusalContentBlock { + refusal: string; + /** + * Always `refusal`. + */ + type: 'refusal'; +} +/** + * The refusal content that is part of a message. + */ +export interface RefusalDeltaBlock { + /** + * The index of the refusal part in the message. + */ + index: number; + /** + * Always `refusal`. + */ + type: 'refusal'; + refusal?: string; +} +export interface Text { + annotations: Array; + /** + * The data that makes up the text. + */ + value: string; +} +/** + * The text content that is part of a message. + */ +export interface TextContentBlock { + text: Text; + /** + * Always `text`. + */ + type: 'text'; +} +/** + * The text content that is part of a message. + */ +export interface TextContentBlockParam { + /** + * Text content to be sent to the model + */ + text: string; + /** + * Always `text`. + */ + type: 'text'; +} +export interface TextDelta { + annotations?: Array; + /** + * The data that makes up the text. + */ + value?: string; +} +/** + * The text content that is part of a message. + */ +export interface TextDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `text`. + */ + type: 'text'; + text?: TextDelta; +} +export interface MessageCreateParams { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export declare namespace MessageCreateParams { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } +} +export interface MessageRetrieveParams { + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * to which this message belongs. + */ + thread_id: string; +} +export interface MessageUpdateParams { + /** + * Path param: The ID of the thread to which this message belongs. + */ + thread_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export interface MessageListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; + /** + * Filter messages by the run ID that generated them. + */ + run_id?: string; +} +export interface MessageDeleteParams { + /** + * The ID of the thread to which this message belongs. + */ + thread_id: string; +} +export declare namespace Messages { + export { type Annotation as Annotation, type AnnotationDelta as AnnotationDelta, type FileCitationAnnotation as FileCitationAnnotation, type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation, type FilePathAnnotation as FilePathAnnotation, type FilePathDeltaAnnotation as FilePathDeltaAnnotation, type ImageFile as ImageFile, type ImageFileContentBlock as ImageFileContentBlock, type ImageFileDelta as ImageFileDelta, type ImageFileDeltaBlock as ImageFileDeltaBlock, type ImageURL as ImageURL, type ImageURLContentBlock as ImageURLContentBlock, type ImageURLDelta as ImageURLDelta, type ImageURLDeltaBlock as ImageURLDeltaBlock, type Message as Message, type MessageContent as MessageContent, type MessageContentDelta as MessageContentDelta, type MessageContentPartParam as MessageContentPartParam, type MessageDeleted as MessageDeleted, type MessageDelta as MessageDelta, type MessageDeltaEvent as MessageDeltaEvent, type RefusalContentBlock as RefusalContentBlock, type RefusalDeltaBlock as RefusalDeltaBlock, type Text as Text, type TextContentBlock as TextContentBlock, type TextContentBlockParam as TextContentBlockParam, type TextDelta as TextDelta, type TextDeltaBlock as TextDeltaBlock, type MessagesPage as MessagesPage, type MessageCreateParams as MessageCreateParams, type MessageRetrieveParams as MessageRetrieveParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageDeleteParams as MessageDeleteParams, }; +} +//# sourceMappingURL=messages.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..42170462569ddc5ffb244b3a5971db62f09d44b2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/threads/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAQlG;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAQzG;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IASrG;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAA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,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ec516933e39ab561ec2ef5b70d2c95bb5f05d03 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts @@ -0,0 +1,594 @@ +import { APIResource } from "../../../core/resource.js"; +import * as Shared from "../../shared.js"; +import * as AssistantsAPI from "../assistants.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Messages extends APIResource { + /** + * Create a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID: string, body: MessageCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Modifies a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(messageID: string, params: MessageUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of messages for a given thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Deletes a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(messageID: string, params: MessageDeleteParams, options?: RequestOptions): APIPromise; +} +export type MessagesPage = CursorPage; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export type Annotation = FileCitationAnnotation | FilePathAnnotation; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export type AnnotationDelta = FileCitationDeltaAnnotation | FilePathDeltaAnnotation; +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export interface FileCitationAnnotation { + end_index: number; + file_citation: FileCitationAnnotation.FileCitation; + start_index: number; + /** + * The text in the message content that needs to be replaced. + */ + text: string; + /** + * Always `file_citation`. + */ + type: 'file_citation'; +} +export declare namespace FileCitationAnnotation { + interface FileCitation { + /** + * The ID of the specific File the citation is from. + */ + file_id: string; + } +} +/** + * A citation within the message that points to a specific quote from a specific + * File associated with the assistant or the message. Generated when the assistant + * uses the "file_search" tool to search files. + */ +export interface FileCitationDeltaAnnotation { + /** + * The index of the annotation in the text content part. + */ + index: number; + /** + * Always `file_citation`. + */ + type: 'file_citation'; + end_index?: number; + file_citation?: FileCitationDeltaAnnotation.FileCitation; + start_index?: number; + /** + * The text in the message content that needs to be replaced. + */ + text?: string; +} +export declare namespace FileCitationDeltaAnnotation { + interface FileCitation { + /** + * The ID of the specific File the citation is from. + */ + file_id?: string; + /** + * The specific quote in the file. + */ + quote?: string; + } +} +/** + * A URL for the file that's generated when the assistant used the + * `code_interpreter` tool to generate a file. + */ +export interface FilePathAnnotation { + end_index: number; + file_path: FilePathAnnotation.FilePath; + start_index: number; + /** + * The text in the message content that needs to be replaced. + */ + text: string; + /** + * Always `file_path`. + */ + type: 'file_path'; +} +export declare namespace FilePathAnnotation { + interface FilePath { + /** + * The ID of the file that was generated. + */ + file_id: string; + } +} +/** + * A URL for the file that's generated when the assistant used the + * `code_interpreter` tool to generate a file. + */ +export interface FilePathDeltaAnnotation { + /** + * The index of the annotation in the text content part. + */ + index: number; + /** + * Always `file_path`. + */ + type: 'file_path'; + end_index?: number; + file_path?: FilePathDeltaAnnotation.FilePath; + start_index?: number; + /** + * The text in the message content that needs to be replaced. + */ + text?: string; +} +export declare namespace FilePathDeltaAnnotation { + interface FilePath { + /** + * The ID of the file that was generated. + */ + file_id?: string; + } +} +export interface ImageFile { + /** + * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + * in the message content. Set `purpose="vision"` when uploading the File if you + * need to later display the file content. + */ + file_id: string; + /** + * Specifies the detail level of the image if specified by the user. `low` uses + * fewer tokens, you can opt in to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export interface ImageFileContentBlock { + image_file: ImageFile; + /** + * Always `image_file`. + */ + type: 'image_file'; +} +export interface ImageFileDelta { + /** + * Specifies the detail level of the image if specified by the user. `low` uses + * fewer tokens, you can opt in to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; + /** + * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + * in the message content. Set `purpose="vision"` when uploading the File if you + * need to later display the file content. + */ + file_id?: string; +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export interface ImageFileDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `image_file`. + */ + type: 'image_file'; + image_file?: ImageFileDelta; +} +export interface ImageURL { + /** + * The external URL of the image, must be a supported image types: jpeg, jpg, png, + * gif, webp. + */ + url: string; + /** + * Specifies the detail level of the image. `low` uses fewer tokens, you can opt in + * to high resolution using `high`. Default value is `auto` + */ + detail?: 'auto' | 'low' | 'high'; +} +/** + * References an image URL in the content of a message. + */ +export interface ImageURLContentBlock { + image_url: ImageURL; + /** + * The type of the content part. + */ + type: 'image_url'; +} +export interface ImageURLDelta { + /** + * Specifies the detail level of the image. `low` uses fewer tokens, you can opt in + * to high resolution using `high`. + */ + detail?: 'auto' | 'low' | 'high'; + /** + * The URL of the image, must be a supported image types: jpeg, jpg, png, gif, + * webp. + */ + url?: string; +} +/** + * References an image URL in the content of a message. + */ +export interface ImageURLDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `image_url`. + */ + type: 'image_url'; + image_url?: ImageURLDelta; +} +/** + * Represents a message within a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ +export interface Message { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * If applicable, the ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) that + * authored this message. + */ + assistant_id: string | null; + /** + * A list of files attached to the message, and the tools they were added to. + */ + attachments: Array | null; + /** + * The Unix timestamp (in seconds) for when the message was completed. + */ + completed_at: number | null; + /** + * The content of the message in array of text and/or images. + */ + content: Array; + /** + * The Unix timestamp (in seconds) for when the message was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the message was marked as incomplete. + */ + incomplete_at: number | null; + /** + * On an incomplete message, details about why the message is incomplete. + */ + incomplete_details: Message.IncompleteDetails | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread.message`. + */ + object: 'thread.message'; + /** + * The entity that produced the message. One of `user` or `assistant`. + */ + role: 'user' | 'assistant'; + /** + * The ID of the [run](https://platform.openai.com/docs/api-reference/runs) + * associated with the creation of this message. Value is `null` when messages are + * created manually using the create message or create thread endpoints. + */ + run_id: string | null; + /** + * The status of the message, which can be either `in_progress`, `incomplete`, or + * `completed`. + */ + status: 'in_progress' | 'incomplete' | 'completed'; + /** + * The [thread](https://platform.openai.com/docs/api-reference/threads) ID that + * this message belongs to. + */ + thread_id: string; +} +export declare namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface AssistantToolsFileSearchTypeOnly { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + /** + * On an incomplete message, details about why the message is incomplete. + */ + interface IncompleteDetails { + /** + * The reason the message is incomplete. + */ + reason: 'content_filter' | 'max_tokens' | 'run_cancelled' | 'run_expired' | 'run_failed'; + } +} +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContent = ImageFileContentBlock | ImageURLContentBlock | TextContentBlock | RefusalContentBlock; +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContentDelta = ImageFileDeltaBlock | TextDeltaBlock | RefusalDeltaBlock | ImageURLDeltaBlock; +/** + * References an image [File](https://platform.openai.com/docs/api-reference/files) + * in the content of a message. + */ +export type MessageContentPartParam = ImageFileContentBlock | ImageURLContentBlock | TextContentBlockParam; +export interface MessageDeleted { + id: string; + deleted: boolean; + object: 'thread.message.deleted'; +} +/** + * The delta containing the fields that have changed on the Message. + */ +export interface MessageDelta { + /** + * The content of the message in array of text and/or images. + */ + content?: Array; + /** + * The entity that produced the message. One of `user` or `assistant`. + */ + role?: 'user' | 'assistant'; +} +/** + * Represents a message delta i.e. any changed fields on a message during + * streaming. + */ +export interface MessageDeltaEvent { + /** + * The identifier of the message, which can be referenced in API endpoints. + */ + id: string; + /** + * The delta containing the fields that have changed on the Message. + */ + delta: MessageDelta; + /** + * The object type, which is always `thread.message.delta`. + */ + object: 'thread.message.delta'; +} +/** + * The refusal content generated by the assistant. + */ +export interface RefusalContentBlock { + refusal: string; + /** + * Always `refusal`. + */ + type: 'refusal'; +} +/** + * The refusal content that is part of a message. + */ +export interface RefusalDeltaBlock { + /** + * The index of the refusal part in the message. + */ + index: number; + /** + * Always `refusal`. + */ + type: 'refusal'; + refusal?: string; +} +export interface Text { + annotations: Array; + /** + * The data that makes up the text. + */ + value: string; +} +/** + * The text content that is part of a message. + */ +export interface TextContentBlock { + text: Text; + /** + * Always `text`. + */ + type: 'text'; +} +/** + * The text content that is part of a message. + */ +export interface TextContentBlockParam { + /** + * Text content to be sent to the model + */ + text: string; + /** + * Always `text`. + */ + type: 'text'; +} +export interface TextDelta { + annotations?: Array; + /** + * The data that makes up the text. + */ + value?: string; +} +/** + * The text content that is part of a message. + */ +export interface TextDeltaBlock { + /** + * The index of the content part in the message. + */ + index: number; + /** + * Always `text`. + */ + type: 'text'; + text?: TextDelta; +} +export interface MessageCreateParams { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export declare namespace MessageCreateParams { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } +} +export interface MessageRetrieveParams { + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * to which this message belongs. + */ + thread_id: string; +} +export interface MessageUpdateParams { + /** + * Path param: The ID of the thread to which this message belongs. + */ + thread_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export interface MessageListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; + /** + * Filter messages by the run ID that generated them. + */ + run_id?: string; +} +export interface MessageDeleteParams { + /** + * The ID of the thread to which this message belongs. + */ + thread_id: string; +} +export declare namespace Messages { + export { type Annotation as Annotation, type AnnotationDelta as AnnotationDelta, type FileCitationAnnotation as FileCitationAnnotation, type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation, type FilePathAnnotation as FilePathAnnotation, type FilePathDeltaAnnotation as FilePathDeltaAnnotation, type ImageFile as ImageFile, type ImageFileContentBlock as ImageFileContentBlock, type ImageFileDelta as ImageFileDelta, type ImageFileDeltaBlock as ImageFileDeltaBlock, type ImageURL as ImageURL, type ImageURLContentBlock as ImageURLContentBlock, type ImageURLDelta as ImageURLDelta, type ImageURLDeltaBlock as ImageURLDeltaBlock, type Message as Message, type MessageContent as MessageContent, type MessageContentDelta as MessageContentDelta, type MessageContentPartParam as MessageContentPartParam, type MessageDeleted as MessageDeleted, type MessageDelta as MessageDelta, type MessageDeltaEvent as MessageDeltaEvent, type RefusalContentBlock as RefusalContentBlock, type RefusalDeltaBlock as RefusalDeltaBlock, type Text as Text, type TextContentBlock as TextContentBlock, type TextContentBlockParam as TextContentBlockParam, type TextDelta as TextDelta, type TextDeltaBlock as TextDeltaBlock, type MessagesPage as MessagesPage, type MessageCreateParams as MessageCreateParams, type MessageRetrieveParams as MessageRetrieveParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageDeleteParams as MessageDeleteParams, }; +} +//# sourceMappingURL=messages.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e408753ce5c32f9c5b23ff8e215a1b7265ea89e3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/threads/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAA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AI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js new file mode 100644 index 0000000000000000000000000000000000000000..b30ff792b15695ee283da9466fb5f45401de50a1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js @@ -0,0 +1,76 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Messages = void 0; +const resource_1 = require("../../../core/resource.js"); +const pagination_1 = require("../../../core/pagination.js"); +const headers_1 = require("../../../internal/headers.js"); +const path_1 = require("../../../internal/utils/path.js"); +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +class Messages extends resource_1.APIResource { + /** + * Create a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID, body, options) { + return this._client.post((0, path_1.path) `/threads/${threadID}/messages`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieve a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(messageID, params, options) { + const { thread_id } = params; + return this._client.get((0, path_1.path) `/threads/${thread_id}/messages/${messageID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(messageID, params, options) { + const { thread_id, ...body } = params; + return this._client.post((0, path_1.path) `/threads/${thread_id}/messages/${messageID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of messages for a given thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/threads/${threadID}/messages`, (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Deletes a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(messageID, params, options) { + const { thread_id } = params; + return this._client.delete((0, path_1.path) `/threads/${thread_id}/messages/${messageID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.Messages = Messages; +//# sourceMappingURL=messages.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d0d03412a04e63e491e29803098ec1e51729aa71 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/resources/beta/threads/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4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B,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,WAAW,EAAE,CAAA,uBAAmB,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,aAAa,SAAS,EAAE,EAAE;YAC5E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA1ED,4BA0EC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs new file mode 100644 index 0000000000000000000000000000000000000000..702459f649d760bd364638fabae81691632227a9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs @@ -0,0 +1,72 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export class Messages extends APIResource { + /** + * Create a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID, body, options) { + return this._client.post(path `/threads/${threadID}/messages`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieve a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(messageID, params, options) { + const { thread_id } = params; + return this._client.get(path `/threads/${thread_id}/messages/${messageID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(messageID, params, options) { + const { thread_id, ...body } = params; + return this._client.post(path `/threads/${thread_id}/messages/${messageID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of messages for a given thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID, query = {}, options) { + return this._client.getAPIList(path `/threads/${threadID}/messages`, (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Deletes a message. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(messageID, params, options) { + const { thread_id } = params; + return this._client.delete(path `/threads/${thread_id}/messages/${messageID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +//# sourceMappingURL=messages.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..717b3b2f20c39ef1045f56c72fd5d198110a7788 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/messages.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../../src/resources/beta/threads/messages.ts"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C;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAgB,EAChB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE,CAAA,UAAmB,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,aAAa,SAAS,EAAE,EAAE;YAC5E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..57b66725a392c4f0e4adf8202808d5e737b33e7c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts @@ -0,0 +1,2 @@ +export * from "./runs/index.mjs"; +//# sourceMappingURL=runs.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..adf04464d42cf035cf8a41eb0c9bd36da2764119 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/threads/runs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0d50499c2deb266906ba85f0a239350d9a6827a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts @@ -0,0 +1,2 @@ +export * from "./runs/index.js"; +//# sourceMappingURL=runs.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..18e8ed934ebf7b1aeb6342326410f5a3ff241ba7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/threads/runs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js new file mode 100644 index 0000000000000000000000000000000000000000..adc63049c0df8648450fc4aa92abf44c8d34dbfd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../../internal/tslib.js"); +tslib_1.__exportStar(require("./runs/index.js"), exports); +//# sourceMappingURL=runs.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js.map new file mode 100644 index 0000000000000000000000000000000000000000..677a7a73d7c7393b2ff5f35544a728041e008ce4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/resources/beta/threads/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs new file mode 100644 index 0000000000000000000000000000000000000000..02d03b3d35c7c6d2bd273c88bb7f0a5c82274e9f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./runs/index.mjs"; +//# sourceMappingURL=runs.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..eed6e51f1cab27c634485569a9f1615acb68b7a2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../../src/resources/beta/threads/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..419f0654c99896c6e8ebc90b4715d4dd9260364b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts @@ -0,0 +1,3 @@ +export { Runs, type RequiredActionFunctionToolCall, type Run, type RunStatus, type RunCreateParams, type RunCreateParamsNonStreaming, type RunCreateParamsStreaming, type RunRetrieveParams, type RunUpdateParams, type RunListParams, type RunCancelParams, type RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming, type RunsPage, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, } from "./runs.mjs"; +export { Steps, type CodeInterpreterLogs, type CodeInterpreterOutputImage, type CodeInterpreterToolCall, type CodeInterpreterToolCallDelta, type FileSearchToolCall, type FileSearchToolCallDelta, type FunctionToolCall, type FunctionToolCallDelta, type MessageCreationStepDetails, type RunStep, type RunStepInclude, type RunStepDelta, type RunStepDeltaEvent, type RunStepDeltaMessageDelta, type ToolCall, type ToolCallDelta, type ToolCallDeltaObject, type ToolCallsStepDetails, type StepRetrieveParams, type StepListParams, type RunStepsPage, } from "./steps.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..fd3173327f9f701d8c7f61ef33d97969bbeb2837 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,8BAA8B,EACnC,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC;OACM,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..89fd05cd979a48251da404e6295abaf29da593ca --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts @@ -0,0 +1,3 @@ +export { Runs, type RequiredActionFunctionToolCall, type Run, type RunStatus, type RunCreateParams, type RunCreateParamsNonStreaming, type RunCreateParamsStreaming, type RunRetrieveParams, type RunUpdateParams, type RunListParams, type RunCancelParams, type RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming, type RunsPage, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, } from "./runs.js"; +export { Steps, type CodeInterpreterLogs, type CodeInterpreterOutputImage, type CodeInterpreterToolCall, type CodeInterpreterToolCallDelta, type FileSearchToolCall, type FileSearchToolCallDelta, type FunctionToolCall, type FunctionToolCallDelta, type MessageCreationStepDetails, type RunStep, type RunStepInclude, type RunStepDelta, type RunStepDeltaEvent, type RunStepDeltaMessageDelta, type ToolCall, type ToolCallDelta, type ToolCallDeltaObject, type ToolCallsStepDetails, type StepRetrieveParams, type StepListParams, type RunStepsPage, } from "./steps.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..eeb39aa3a4838909303145f953647df2219d45e6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,8BAA8B,EACnC,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC;OACM,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js new file mode 100644 index 0000000000000000000000000000000000000000..0f5cbedc03b74ab2c287650c6d4c787e5e1da6d3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Steps = exports.Runs = void 0; +var runs_1 = require("./runs.js"); +Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_1.Runs; } }); +var steps_1 = require("./steps.js"); +Object.defineProperty(exports, "Steps", { enumerable: true, get: function () { return steps_1.Steps; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..861c55b7bac4546cef5c0dc317ce073505669d89 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAqBgB;AApBd,4FAAA,IAAI,OAAA;AAqBN,oCAuBiB;AAtBf,8FAAA,KAAK,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..546fd7d3c82629daf3c214e78adadef4bf4e2cfb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Runs, } from "./runs.mjs"; +export { Steps, } from "./steps.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9a50d1a86daf5a97889df3374975a03806b8bfb8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAoBL;OACM,EACL,KAAK,GAsBN"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..7c25e9a10ff417c2f425dc92378238a1cd930247 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts @@ -0,0 +1,733 @@ +import { APIResource } from "../../../../core/resource.mjs"; +import * as RunsAPI from "./runs.mjs"; +import * as Shared from "../../../shared.mjs"; +import * as AssistantsAPI from "../../assistants.mjs"; +import * as MessagesAPI from "../messages.mjs"; +import * as ThreadsAPI from "../threads.mjs"; +import * as StepsAPI from "./steps.mjs"; +import { CodeInterpreterLogs, CodeInterpreterOutputImage, CodeInterpreterToolCall, CodeInterpreterToolCallDelta, FileSearchToolCall, FileSearchToolCallDelta, FunctionToolCall, FunctionToolCallDelta, MessageCreationStepDetails, RunStep, RunStepDelta, RunStepDeltaEvent, RunStepDeltaMessageDelta, RunStepInclude, RunStepsPage, StepListParams, StepRetrieveParams, Steps, ToolCall, ToolCallDelta, ToolCallDeltaObject, ToolCallsStepDetails } from "./steps.mjs"; +import { APIPromise } from "../../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.mjs"; +import { Stream } from "../../../../core/streaming.mjs"; +import { RequestOptions } from "../../../../internal/request-options.mjs"; +import { AssistantStream, RunCreateParamsBaseStream } from "../../../../lib/AssistantStream.mjs"; +import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Runs extends APIResource { + steps: StepsAPI.Steps; + /** + * Create a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID: string, params: RunCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(threadID: string, params: RunCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(threadID: string, params: RunCreateParamsBase, options?: RequestOptions): APIPromise | Run>; + /** + * Retrieves a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Modifies a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(runID: string, params: RunUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of runs belonging to a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID: string, query?: RunListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Cancels a run that is `in_progress`. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise; + /** + * A helper to create a run an poll for a terminal state. More information on Run + * lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + createAndPoll(threadId: string, body: RunCreateParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a Run stream + * + * @deprecated use `stream` instead + */ + createAndStream(threadId: string, body: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + /** + * A helper to poll a run status until it reaches a terminal state. More + * information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + poll(runId: string, params: RunRetrieveParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a Run stream + */ + stream(threadId: string, body: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + /** + * When a run has the `status: "requires_action"` and `required_action.type` is + * `submit_tool_outputs`, this endpoint can be used to submit the outputs from the + * tool calls once they're all completed. All outputs must be submitted in a single + * request. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsNonStreaming, options?: RequestOptions): APIPromise; + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsStreaming, options?: RequestOptions): APIPromise>; + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsBase, options?: RequestOptions): APIPromise | Run>; + /** + * A helper to submit a tool output to a run and poll for a terminal run state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsAndPoll(runId: string, params: RunSubmitToolOutputsParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Submit the tool outputs from a previous run and stream the run to a terminal + * state. More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsStream(runId: string, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): AssistantStream; +} +export type RunsPage = CursorPage; +/** + * Tool call objects + */ +export interface RequiredActionFunctionToolCall { + /** + * The ID of the tool call. This ID must be referenced when you submit the tool + * outputs in using the + * [Submit tool outputs to run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * endpoint. + */ + id: string; + /** + * The function definition. + */ + function: RequiredActionFunctionToolCall.Function; + /** + * The type of tool call the output is required for. For now, this is always + * `function`. + */ + type: 'function'; +} +export declare namespace RequiredActionFunctionToolCall { + /** + * The function definition. + */ + interface Function { + /** + * The arguments that the model expects you to pass to the function. + */ + arguments: string; + /** + * The name of the function. + */ + name: string; + } +} +/** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ +export interface Run { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * execution of this run. + */ + assistant_id: string; + /** + * The Unix timestamp (in seconds) for when the run was cancelled. + */ + cancelled_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run was completed. + */ + completed_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the run will expire. + */ + expires_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run failed. + */ + failed_at: number | null; + /** + * Details on why the run is incomplete. Will be `null` if the run is not + * incomplete. + */ + incomplete_details: Run.IncompleteDetails | null; + /** + * The instructions that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + instructions: string; + /** + * The last error associated with this run. Will be `null` if there are no errors. + */ + last_error: Run.LastError | null; + /** + * The maximum number of completion tokens specified to have been used over the + * course of the run. + */ + max_completion_tokens: number | null; + /** + * The maximum number of prompt tokens specified to have been used over the course + * of the run. + */ + max_prompt_tokens: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + model: string; + /** + * The object type, which is always `thread.run`. + */ + object: 'thread.run'; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls: boolean; + /** + * Details on the action required to continue the run. Will be `null` if no action + * is required. + */ + required_action: Run.RequiredAction | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * The Unix timestamp (in seconds) for when the run was started. + */ + started_at: number | null; + /** + * The status of the run, which can be either `queued`, `in_progress`, + * `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + * `incomplete`, or `expired`. + */ + status: RunStatus; + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was executed on as a part of this run. + */ + thread_id: string; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice: ThreadsAPI.AssistantToolChoiceOption | null; + /** + * The list of tools that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + tools: Array; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + truncation_strategy: Run.TruncationStrategy | null; + /** + * Usage statistics related to the run. This value will be `null` if the run is not + * in a terminal state (i.e. `in_progress`, `queued`, etc.). + */ + usage: Run.Usage | null; + /** + * The sampling temperature used for this run. If not set, defaults to 1. + */ + temperature?: number | null; + /** + * The nucleus sampling value used for this run. If not set, defaults to 1. + */ + top_p?: number | null; +} +export declare namespace Run { + /** + * Details on why the run is incomplete. Will be `null` if the run is not + * incomplete. + */ + interface IncompleteDetails { + /** + * The reason why the run is incomplete. This will point to which specific token + * limit was reached over the course of the run. + */ + reason?: 'max_completion_tokens' | 'max_prompt_tokens'; + } + /** + * The last error associated with this run. Will be `null` if there are no errors. + */ + interface LastError { + /** + * One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`. + */ + code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt'; + /** + * A human-readable description of the error. + */ + message: string; + } + /** + * Details on the action required to continue the run. Will be `null` if no action + * is required. + */ + interface RequiredAction { + /** + * Details on the tool outputs needed for this run to continue. + */ + submit_tool_outputs: RequiredAction.SubmitToolOutputs; + /** + * For now, this is always `submit_tool_outputs`. + */ + type: 'submit_tool_outputs'; + } + namespace RequiredAction { + /** + * Details on the tool outputs needed for this run to continue. + */ + interface SubmitToolOutputs { + /** + * A list of the relevant tool calls. + */ + tool_calls: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + /** + * Usage statistics related to the run. This value will be `null` if the run is not + * in a terminal state (i.e. `in_progress`, `queued`, etc.). + */ + interface Usage { + /** + * Number of completion tokens used over the course of the run. + */ + completion_tokens: number; + /** + * Number of prompt tokens used over the course of the run. + */ + prompt_tokens: number; + /** + * Total number of tokens used (prompt + completion). + */ + total_tokens: number; + } +} +/** + * The status of the run, which can be either `queued`, `in_progress`, + * `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + * `incomplete`, or `expired`. + */ +export type RunStatus = 'queued' | 'in_progress' | 'requires_action' | 'cancelling' | 'cancelled' | 'failed' | 'completed' | 'incomplete' | 'expired'; +export type RunCreateParams = RunCreateParamsNonStreaming | RunCreateParamsStreaming; +export interface RunCreateParamsBase { + /** + * Body param: The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; + /** + * Body param: Appends additional instructions at the end of the instructions for + * the run. This is useful for modifying the behavior on a per-run basis without + * overriding other instructions. + */ + additional_instructions?: string | null; + /** + * Body param: Adds additional messages to the thread before creating the run. + */ + additional_messages?: Array | null; + /** + * Body param: Overrides the + * [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) + * of the assistant. This is useful for modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * Body param: The maximum number of completion tokens that may be used over the + * course of the run. The run will make a best effort to use only the number of + * completion tokens specified, across multiple turns of the run. If the run + * exceeds the number of completion tokens specified, the run will end with status + * `incomplete`. See `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * Body param: The maximum number of prompt tokens that may be used over the course + * of the run. The run will make a best effort to use only the number of prompt + * tokens specified, across multiple turns of the run. If the run exceeds the + * number of prompt tokens specified, the run will end with status `incomplete`. + * See `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Body param: The ID of the + * [Model](https://platform.openai.com/docs/api-reference/models) to be used to + * execute this run. If a value is provided here, it will override the model + * associated with the assistant. If not, the model associated with the assistant + * will be used. + */ + model?: (string & {}) | Shared.ChatModel | null; + /** + * Body param: Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Body param: Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Body param: Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: boolean | null; + /** + * Body param: What sampling temperature to use, between 0 and 2. Higher values + * like 0.8 will make the output more random, while lower values like 0.2 will make + * it more focused and deterministic. + */ + temperature?: number | null; + /** + * Body param: Controls which (if any) tool is called by the model. `none` means + * the model will not call any tools and instead generates a message. `auto` is the + * default value and means the model can pick between generating a message or + * calling one or more tools. `required` means the model must call one or more + * tools before responding to the user. Specifying a particular tool like + * `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: ThreadsAPI.AssistantToolChoiceOption | null; + /** + * Body param: Override the tools the assistant can use for this run. This is + * useful for modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * Body param: An alternative to sampling with temperature, called nucleus + * sampling, where the model considers the results of the tokens with top_p + * probability mass. So 0.1 means only the tokens comprising the top 10% + * probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Body param: Controls for how a thread will be truncated prior to the run. Use + * this to control the initial context window of the run. + */ + truncation_strategy?: RunCreateParams.TruncationStrategy | null; +} +export declare namespace RunCreateParams { + interface AdditionalMessage { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace AdditionalMessage { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + type RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming; + type RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming; +} +export interface RunCreateParamsNonStreaming extends RunCreateParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: false | null; +} +export interface RunCreateParamsStreaming extends RunCreateParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream: true; +} +export interface RunRetrieveParams { + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was run. + */ + thread_id: string; +} +export interface RunUpdateParams { + /** + * Path param: The ID of the + * [thread](https://platform.openai.com/docs/api-reference/threads) that was run. + */ + thread_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export interface RunListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface RunCancelParams { + /** + * The ID of the thread to which this run belongs. + */ + thread_id: string; +} +export type RunCreateAndPollParams = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming; +export type RunCreateAndStreamParams = RunCreateParamsBaseStream; +export type RunStreamParams = RunCreateParamsBaseStream; +export type RunSubmitToolOutputsParams = RunSubmitToolOutputsParamsNonStreaming | RunSubmitToolOutputsParamsStreaming; +export interface RunSubmitToolOutputsParamsBase { + /** + * Path param: The ID of the + * [thread](https://platform.openai.com/docs/api-reference/threads) to which this + * run belongs. + */ + thread_id: string; + /** + * Body param: A list of tools for which the outputs are being submitted. + */ + tool_outputs: Array; + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: boolean | null; +} +export declare namespace RunSubmitToolOutputsParams { + interface ToolOutput { + /** + * The output of the tool call to be submitted to continue the run. + */ + output?: string; + /** + * The ID of the tool call in the `required_action` object within the run object + * the output is being submitted for. + */ + tool_call_id?: string; + } + type RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutputsParamsNonStreaming; + type RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsParamsStreaming; +} +export interface RunSubmitToolOutputsParamsNonStreaming extends RunSubmitToolOutputsParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: false | null; +} +export interface RunSubmitToolOutputsParamsStreaming extends RunSubmitToolOutputsParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream: true; +} +export type RunSubmitToolOutputsAndPollParams = RunSubmitToolOutputsParamsNonStreaming; +export type RunSubmitToolOutputsStreamParams = RunSubmitToolOutputsParamsStream; +export declare namespace Runs { + export { type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall, type Run as Run, type RunStatus as RunStatus, type RunsPage as RunsPage, type RunCreateParams as RunCreateParams, type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming, type RunCreateParamsStreaming as RunCreateParamsStreaming, type RunRetrieveParams as RunRetrieveParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, }; + export { Steps as Steps, type CodeInterpreterLogs as CodeInterpreterLogs, type CodeInterpreterOutputImage as CodeInterpreterOutputImage, type CodeInterpreterToolCall as CodeInterpreterToolCall, type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta, type FileSearchToolCall as FileSearchToolCall, type FileSearchToolCallDelta as FileSearchToolCallDelta, type FunctionToolCall as FunctionToolCall, type FunctionToolCallDelta as FunctionToolCallDelta, type MessageCreationStepDetails as MessageCreationStepDetails, type RunStep as RunStep, type RunStepDelta as RunStepDelta, type RunStepDeltaEvent as RunStepDeltaEvent, type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta, type RunStepInclude as RunStepInclude, type ToolCall as ToolCall, type ToolCallDelta as ToolCallDelta, type ToolCallDeltaObject as ToolCallDeltaObject, type ToolCallsStepDetails as ToolCallsStepDetails, type RunStepsPage as RunStepsPage, type StepRetrieveParams as StepRetrieveParams, type StepListParams as StepListParams, }; +} +//# sourceMappingURL=runs.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..68a1c5c7da62330d9f00a4de616d636449147208 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,0BAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACrB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;OAClB,EAAE,eAAe,EAAE,yBAAyB,EAAE;OAE9C,EAAE,gCAAgC,EAAE;AAG3C;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,E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iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..976353779e76f2209bb8fb70c15ffa9cebf7455a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts @@ -0,0 +1,733 @@ +import { APIResource } from "../../../../core/resource.js"; +import * as RunsAPI from "./runs.js"; +import * as Shared from "../../../shared.js"; +import * as AssistantsAPI from "../../assistants.js"; +import * as MessagesAPI from "../messages.js"; +import * as ThreadsAPI from "../threads.js"; +import * as StepsAPI from "./steps.js"; +import { CodeInterpreterLogs, CodeInterpreterOutputImage, CodeInterpreterToolCall, CodeInterpreterToolCallDelta, FileSearchToolCall, FileSearchToolCallDelta, FunctionToolCall, FunctionToolCallDelta, MessageCreationStepDetails, RunStep, RunStepDelta, RunStepDeltaEvent, RunStepDeltaMessageDelta, RunStepInclude, RunStepsPage, StepListParams, StepRetrieveParams, Steps, ToolCall, ToolCallDelta, ToolCallDeltaObject, ToolCallsStepDetails } from "./steps.js"; +import { APIPromise } from "../../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.js"; +import { Stream } from "../../../../core/streaming.js"; +import { RequestOptions } from "../../../../internal/request-options.js"; +import { AssistantStream, RunCreateParamsBaseStream } from "../../../../lib/AssistantStream.js"; +import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream.js"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Runs extends APIResource { + steps: StepsAPI.Steps; + /** + * Create a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(threadID: string, params: RunCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(threadID: string, params: RunCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(threadID: string, params: RunCreateParamsBase, options?: RequestOptions): APIPromise | Run>; + /** + * Retrieves a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Modifies a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(runID: string, params: RunUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of runs belonging to a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID: string, query?: RunListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Cancels a run that is `in_progress`. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise; + /** + * A helper to create a run an poll for a terminal state. More information on Run + * lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + createAndPoll(threadId: string, body: RunCreateParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a Run stream + * + * @deprecated use `stream` instead + */ + createAndStream(threadId: string, body: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + /** + * A helper to poll a run status until it reaches a terminal state. More + * information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + poll(runId: string, params: RunRetrieveParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a Run stream + */ + stream(threadId: string, body: RunCreateParamsBaseStream, options?: RequestOptions): AssistantStream; + /** + * When a run has the `status: "requires_action"` and `required_action.type` is + * `submit_tool_outputs`, this endpoint can be used to submit the outputs from the + * tool calls once they're all completed. All outputs must be submitted in a single + * request. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsNonStreaming, options?: RequestOptions): APIPromise; + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsStreaming, options?: RequestOptions): APIPromise>; + submitToolOutputs(runID: string, params: RunSubmitToolOutputsParamsBase, options?: RequestOptions): APIPromise | Run>; + /** + * A helper to submit a tool output to a run and poll for a terminal run state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsAndPoll(runId: string, params: RunSubmitToolOutputsParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Submit the tool outputs from a previous run and stream the run to a terminal + * state. More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsStream(runId: string, params: RunSubmitToolOutputsParamsStream, options?: RequestOptions): AssistantStream; +} +export type RunsPage = CursorPage; +/** + * Tool call objects + */ +export interface RequiredActionFunctionToolCall { + /** + * The ID of the tool call. This ID must be referenced when you submit the tool + * outputs in using the + * [Submit tool outputs to run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * endpoint. + */ + id: string; + /** + * The function definition. + */ + function: RequiredActionFunctionToolCall.Function; + /** + * The type of tool call the output is required for. For now, this is always + * `function`. + */ + type: 'function'; +} +export declare namespace RequiredActionFunctionToolCall { + /** + * The function definition. + */ + interface Function { + /** + * The arguments that the model expects you to pass to the function. + */ + arguments: string; + /** + * The name of the function. + */ + name: string; + } +} +/** + * Represents an execution run on a + * [thread](https://platform.openai.com/docs/api-reference/threads). + */ +export interface Run { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * execution of this run. + */ + assistant_id: string; + /** + * The Unix timestamp (in seconds) for when the run was cancelled. + */ + cancelled_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run was completed. + */ + completed_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the run will expire. + */ + expires_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run failed. + */ + failed_at: number | null; + /** + * Details on why the run is incomplete. Will be `null` if the run is not + * incomplete. + */ + incomplete_details: Run.IncompleteDetails | null; + /** + * The instructions that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + instructions: string; + /** + * The last error associated with this run. Will be `null` if there are no errors. + */ + last_error: Run.LastError | null; + /** + * The maximum number of completion tokens specified to have been used over the + * course of the run. + */ + max_completion_tokens: number | null; + /** + * The maximum number of prompt tokens specified to have been used over the course + * of the run. + */ + max_prompt_tokens: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + model: string; + /** + * The object type, which is always `thread.run`. + */ + object: 'thread.run'; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls: boolean; + /** + * Details on the action required to continue the run. Will be `null` if no action + * is required. + */ + required_action: Run.RequiredAction | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * The Unix timestamp (in seconds) for when the run was started. + */ + started_at: number | null; + /** + * The status of the run, which can be either `queued`, `in_progress`, + * `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + * `incomplete`, or `expired`. + */ + status: RunStatus; + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was executed on as a part of this run. + */ + thread_id: string; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice: ThreadsAPI.AssistantToolChoiceOption | null; + /** + * The list of tools that the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + * this run. + */ + tools: Array; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + truncation_strategy: Run.TruncationStrategy | null; + /** + * Usage statistics related to the run. This value will be `null` if the run is not + * in a terminal state (i.e. `in_progress`, `queued`, etc.). + */ + usage: Run.Usage | null; + /** + * The sampling temperature used for this run. If not set, defaults to 1. + */ + temperature?: number | null; + /** + * The nucleus sampling value used for this run. If not set, defaults to 1. + */ + top_p?: number | null; +} +export declare namespace Run { + /** + * Details on why the run is incomplete. Will be `null` if the run is not + * incomplete. + */ + interface IncompleteDetails { + /** + * The reason why the run is incomplete. This will point to which specific token + * limit was reached over the course of the run. + */ + reason?: 'max_completion_tokens' | 'max_prompt_tokens'; + } + /** + * The last error associated with this run. Will be `null` if there are no errors. + */ + interface LastError { + /** + * One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`. + */ + code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt'; + /** + * A human-readable description of the error. + */ + message: string; + } + /** + * Details on the action required to continue the run. Will be `null` if no action + * is required. + */ + interface RequiredAction { + /** + * Details on the tool outputs needed for this run to continue. + */ + submit_tool_outputs: RequiredAction.SubmitToolOutputs; + /** + * For now, this is always `submit_tool_outputs`. + */ + type: 'submit_tool_outputs'; + } + namespace RequiredAction { + /** + * Details on the tool outputs needed for this run to continue. + */ + interface SubmitToolOutputs { + /** + * A list of the relevant tool calls. + */ + tool_calls: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + /** + * Usage statistics related to the run. This value will be `null` if the run is not + * in a terminal state (i.e. `in_progress`, `queued`, etc.). + */ + interface Usage { + /** + * Number of completion tokens used over the course of the run. + */ + completion_tokens: number; + /** + * Number of prompt tokens used over the course of the run. + */ + prompt_tokens: number; + /** + * Total number of tokens used (prompt + completion). + */ + total_tokens: number; + } +} +/** + * The status of the run, which can be either `queued`, `in_progress`, + * `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + * `incomplete`, or `expired`. + */ +export type RunStatus = 'queued' | 'in_progress' | 'requires_action' | 'cancelling' | 'cancelled' | 'failed' | 'completed' | 'incomplete' | 'expired'; +export type RunCreateParams = RunCreateParamsNonStreaming | RunCreateParamsStreaming; +export interface RunCreateParamsBase { + /** + * Body param: The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; + /** + * Body param: Appends additional instructions at the end of the instructions for + * the run. This is useful for modifying the behavior on a per-run basis without + * overriding other instructions. + */ + additional_instructions?: string | null; + /** + * Body param: Adds additional messages to the thread before creating the run. + */ + additional_messages?: Array | null; + /** + * Body param: Overrides the + * [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) + * of the assistant. This is useful for modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * Body param: The maximum number of completion tokens that may be used over the + * course of the run. The run will make a best effort to use only the number of + * completion tokens specified, across multiple turns of the run. If the run + * exceeds the number of completion tokens specified, the run will end with status + * `incomplete`. See `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * Body param: The maximum number of prompt tokens that may be used over the course + * of the run. The run will make a best effort to use only the number of prompt + * tokens specified, across multiple turns of the run. If the run exceeds the + * number of prompt tokens specified, the run will end with status `incomplete`. + * See `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Body param: The ID of the + * [Model](https://platform.openai.com/docs/api-reference/models) to be used to + * execute this run. If a value is provided here, it will override the model + * associated with the assistant. If not, the model associated with the assistant + * will be used. + */ + model?: (string & {}) | Shared.ChatModel | null; + /** + * Body param: Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Body param: Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Body param: Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: ThreadsAPI.AssistantResponseFormatOption | null; + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: boolean | null; + /** + * Body param: What sampling temperature to use, between 0 and 2. Higher values + * like 0.8 will make the output more random, while lower values like 0.2 will make + * it more focused and deterministic. + */ + temperature?: number | null; + /** + * Body param: Controls which (if any) tool is called by the model. `none` means + * the model will not call any tools and instead generates a message. `auto` is the + * default value and means the model can pick between generating a message or + * calling one or more tools. `required` means the model must call one or more + * tools before responding to the user. Specifying a particular tool like + * `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: ThreadsAPI.AssistantToolChoiceOption | null; + /** + * Body param: Override the tools the assistant can use for this run. This is + * useful for modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * Body param: An alternative to sampling with temperature, called nucleus + * sampling, where the model considers the results of the tokens with top_p + * probability mass. So 0.1 means only the tokens comprising the top 10% + * probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Body param: Controls for how a thread will be truncated prior to the run. Use + * this to control the initial context window of the run. + */ + truncation_strategy?: RunCreateParams.TruncationStrategy | null; +} +export declare namespace RunCreateParams { + interface AdditionalMessage { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace AdditionalMessage { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + type RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming; + type RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming; +} +export interface RunCreateParamsNonStreaming extends RunCreateParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: false | null; +} +export interface RunCreateParamsStreaming extends RunCreateParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream: true; +} +export interface RunRetrieveParams { + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was run. + */ + thread_id: string; +} +export interface RunUpdateParams { + /** + * Path param: The ID of the + * [thread](https://platform.openai.com/docs/api-reference/threads) that was run. + */ + thread_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +export interface RunListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface RunCancelParams { + /** + * The ID of the thread to which this run belongs. + */ + thread_id: string; +} +export type RunCreateAndPollParams = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming; +export type RunCreateAndStreamParams = RunCreateParamsBaseStream; +export type RunStreamParams = RunCreateParamsBaseStream; +export type RunSubmitToolOutputsParams = RunSubmitToolOutputsParamsNonStreaming | RunSubmitToolOutputsParamsStreaming; +export interface RunSubmitToolOutputsParamsBase { + /** + * Path param: The ID of the + * [thread](https://platform.openai.com/docs/api-reference/threads) to which this + * run belongs. + */ + thread_id: string; + /** + * Body param: A list of tools for which the outputs are being submitted. + */ + tool_outputs: Array; + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: boolean | null; +} +export declare namespace RunSubmitToolOutputsParams { + interface ToolOutput { + /** + * The output of the tool call to be submitted to continue the run. + */ + output?: string; + /** + * The ID of the tool call in the `required_action` object within the run object + * the output is being submitted for. + */ + tool_call_id?: string; + } + type RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutputsParamsNonStreaming; + type RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsParamsStreaming; +} +export interface RunSubmitToolOutputsParamsNonStreaming extends RunSubmitToolOutputsParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream?: false | null; +} +export interface RunSubmitToolOutputsParamsStreaming extends RunSubmitToolOutputsParamsBase { + /** + * Body param: If `true`, returns a stream of events that happen during the Run as + * server-sent events, terminating when the Run enters a terminal state with a + * `data: [DONE]` message. + */ + stream: true; +} +export type RunSubmitToolOutputsAndPollParams = RunSubmitToolOutputsParamsNonStreaming; +export type RunSubmitToolOutputsStreamParams = RunSubmitToolOutputsParamsStream; +export declare namespace Runs { + export { type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall, type Run as Run, type RunStatus as RunStatus, type RunsPage as RunsPage, type RunCreateParams as RunCreateParams, type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming, type RunCreateParamsStreaming as RunCreateParamsStreaming, type RunRetrieveParams as RunRetrieveParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, }; + export { Steps as Steps, type CodeInterpreterLogs as CodeInterpreterLogs, type CodeInterpreterOutputImage as CodeInterpreterOutputImage, type CodeInterpreterToolCall as CodeInterpreterToolCall, type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta, type FileSearchToolCall as FileSearchToolCall, type FileSearchToolCallDelta as FileSearchToolCallDelta, type FunctionToolCall as FunctionToolCall, type FunctionToolCallDelta as FunctionToolCallDelta, type MessageCreationStepDetails as MessageCreationStepDetails, type RunStep as RunStep, type RunStepDelta as RunStepDelta, type RunStepDeltaEvent as RunStepDeltaEvent, type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta, type RunStepInclude as RunStepInclude, type ToolCall as ToolCall, type ToolCallDelta as ToolCallDelta, type ToolCallDeltaObject as ToolCallDeltaObject, type ToolCallsStepDetails as ToolCallsStepDetails, type RunStepsPage as RunStepsPage, type StepRetrieveParams as StepRetrieveParams, type StepListParams as StepListParams, }; +} +//# sourceMappingURL=runs.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..51ecbab3fb5e71f59d71d78a0b4b182f7cf37f2f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,0BAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACrB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;OAClB,EAAE,eAAe,EAAE,yBAAyB,EAAE;OAE9C,EAAE,gCAAgC,EAAE;AAG3C;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,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,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js new file mode 100644 index 0000000000000000000000000000000000000000..041dbe736b707a78656be3eac9c08ba119ee639e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js @@ -0,0 +1,182 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Runs = void 0; +const tslib_1 = require("../../../../internal/tslib.js"); +const resource_1 = require("../../../../core/resource.js"); +const StepsAPI = tslib_1.__importStar(require("./steps.js")); +const steps_1 = require("./steps.js"); +const pagination_1 = require("../../../../core/pagination.js"); +const headers_1 = require("../../../../internal/headers.js"); +const AssistantStream_1 = require("../../../../lib/AssistantStream.js"); +const sleep_1 = require("../../../../internal/utils/sleep.js"); +const path_1 = require("../../../../internal/utils/path.js"); +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +class Runs extends resource_1.APIResource { + constructor() { + super(...arguments); + this.steps = new StepsAPI.Steps(this._client); + } + create(threadID, params, options) { + const { include, ...body } = params; + return this._client.post((0, path_1.path) `/threads/${threadID}/runs`, { + query: { include }, + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: params.stream ?? false, + }); + } + /** + * Retrieves a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(runID, params, options) { + const { thread_id } = params; + return this._client.get((0, path_1.path) `/threads/${thread_id}/runs/${runID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(runID, params, options) { + const { thread_id, ...body } = params; + return this._client.post((0, path_1.path) `/threads/${thread_id}/runs/${runID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of runs belonging to a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/threads/${threadID}/runs`, (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Cancels a run that is `in_progress`. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + cancel(runID, params, options) { + const { thread_id } = params; + return this._client.post((0, path_1.path) `/threads/${thread_id}/runs/${runID}/cancel`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * A helper to create a run an poll for a terminal state. More information on Run + * lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async createAndPoll(threadId, body, options) { + const run = await this.create(threadId, body, options); + return await this.poll(run.id, { thread_id: threadId }, options); + } + /** + * Create a Run stream + * + * @deprecated use `stream` instead + */ + createAndStream(threadId, body, options) { + return AssistantStream_1.AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); + } + /** + * A helper to poll a run status until it reaches a terminal state. More + * information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async poll(runId, params, options) { + const headers = (0, headers_1.buildHeaders)([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const { data: run, response } = await this.retrieve(runId, params, { + ...options, + headers: { ...options?.headers, ...headers }, + }).withResponse(); + switch (run.status) { + //If we are in any sort of intermediate state we poll + case 'queued': + case 'in_progress': + case 'cancelling': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await (0, sleep_1.sleep)(sleepInterval); + break; + //We return the run in any terminal state. + case 'requires_action': + case 'incomplete': + case 'cancelled': + case 'completed': + case 'failed': + case 'expired': + return run; + } + } + } + /** + * Create a Run stream + */ + stream(threadId, body, options) { + return AssistantStream_1.AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); + } + submitToolOutputs(runID, params, options) { + const { thread_id, ...body } = params; + return this._client.post((0, path_1.path) `/threads/${thread_id}/runs/${runID}/submit_tool_outputs`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: params.stream ?? false, + }); + } + /** + * A helper to submit a tool output to a run and poll for a terminal run state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async submitToolOutputsAndPoll(runId, params, options) { + const run = await this.submitToolOutputs(runId, params, options); + return await this.poll(run.id, params, options); + } + /** + * Submit the tool outputs from a previous run and stream the run to a terminal + * state. More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsStream(runId, params, options) { + return AssistantStream_1.AssistantStream.createToolAssistantStream(runId, this._client.beta.threads.runs, params, options); + } +} +exports.Runs = Runs; +Runs.Steps = steps_1.Steps; +//# sourceMappingURL=runs.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js.map new file mode 100644 index 0000000000000000000000000000000000000000..fb2053d35586711c5bb7a6965574f719344e2c4c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AAMxD,6DAAoC;AACpC,sCAuBiB;AAEj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AAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACH,uBAAuB,CACrB,KAAa,EACb,MAAwC,EACxC,OAAwB;QAExB,OAAO,iCAAe,CAAC,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;CACF;AApPD,oBAoPC;AA6tBD,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs new file mode 100644 index 0000000000000000000000000000000000000000..48d19c7a9c1f9900fbddd04a73583e044ffde1f8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs @@ -0,0 +1,177 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../../core/resource.mjs"; +import * as StepsAPI from "./steps.mjs"; +import { Steps, } from "./steps.mjs"; +import { CursorPage } from "../../../../core/pagination.mjs"; +import { buildHeaders } from "../../../../internal/headers.mjs"; +import { AssistantStream } from "../../../../lib/AssistantStream.mjs"; +import { sleep } from "../../../../internal/utils/sleep.mjs"; +import { path } from "../../../../internal/utils/path.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export class Runs extends APIResource { + constructor() { + super(...arguments); + this.steps = new StepsAPI.Steps(this._client); + } + create(threadID, params, options) { + const { include, ...body } = params; + return this._client.post(path `/threads/${threadID}/runs`, { + query: { include }, + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: params.stream ?? false, + }); + } + /** + * Retrieves a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(runID, params, options) { + const { thread_id } = params; + return this._client.get(path `/threads/${thread_id}/runs/${runID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(runID, params, options) { + const { thread_id, ...body } = params; + return this._client.post(path `/threads/${thread_id}/runs/${runID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of runs belonging to a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(threadID, query = {}, options) { + return this._client.getAPIList(path `/threads/${threadID}/runs`, (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Cancels a run that is `in_progress`. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + cancel(runID, params, options) { + const { thread_id } = params; + return this._client.post(path `/threads/${thread_id}/runs/${runID}/cancel`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * A helper to create a run an poll for a terminal state. More information on Run + * lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async createAndPoll(threadId, body, options) { + const run = await this.create(threadId, body, options); + return await this.poll(run.id, { thread_id: threadId }, options); + } + /** + * Create a Run stream + * + * @deprecated use `stream` instead + */ + createAndStream(threadId, body, options) { + return AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); + } + /** + * A helper to poll a run status until it reaches a terminal state. More + * information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async poll(runId, params, options) { + const headers = buildHeaders([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const { data: run, response } = await this.retrieve(runId, params, { + ...options, + headers: { ...options?.headers, ...headers }, + }).withResponse(); + switch (run.status) { + //If we are in any sort of intermediate state we poll + case 'queued': + case 'in_progress': + case 'cancelling': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await sleep(sleepInterval); + break; + //We return the run in any terminal state. + case 'requires_action': + case 'incomplete': + case 'cancelled': + case 'completed': + case 'failed': + case 'expired': + return run; + } + } + } + /** + * Create a Run stream + */ + stream(threadId, body, options) { + return AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); + } + submitToolOutputs(runID, params, options) { + const { thread_id, ...body } = params; + return this._client.post(path `/threads/${thread_id}/runs/${runID}/submit_tool_outputs`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: params.stream ?? false, + }); + } + /** + * A helper to submit a tool output to a run and poll for a terminal run state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async submitToolOutputsAndPoll(runId, params, options) { + const run = await this.submitToolOutputs(runId, params, options); + return await this.poll(run.id, params, options); + } + /** + * Submit the tool outputs from a previous run and stream the run to a terminal + * state. More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + submitToolOutputsStream(runId, params, options) { + return AssistantStream.createToolAssistantStream(runId, this._client.beta.threads.runs, params, options); + } +} +Runs.Steps = Steps; +//# sourceMappingURL=runs.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..fb8863e8b7bb7ef247aaf2337e921d3f29e8eb7a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/runs.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,KAAK,QAAQ;OACb,EAkBL,KAAK,GAKN;OAEM,EAAE,UAAU,EAAsC;OAElD,EAAE,YAAY,EAAE;OAEhB,EAAE,eAAe,EAA6B;OAC9C,EAAE,KAAK,EAAE;OAET,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmP3D,CAAC;IAjOC,MAAM,CACJ,QAAgB,EAChB,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,OAAO,EAAE;YACxD,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7E,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;SAC/B,CAA6E,CAAC;IACjF,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,KAAa,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,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,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7E,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;SAC/B,CAA6E,CAAC;IACjF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,wBAAwB,CAC5B,KAAa,EACb,MAA8C,EAC9C,OAAsD;QAEtD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACH,uBAAuB,CACrB,KAAa,EACb,MAAwC,EACxC,OAAwB;QAExB,OAAO,eAAe,CAAC,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;CACF;AA6tBD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4f93d9e3ef6bb936542bbf1fd562e9955e96a92a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts @@ -0,0 +1,615 @@ +import { APIResource } from "../../../../core/resource.mjs"; +import * as StepsAPI from "./steps.mjs"; +import * as Shared from "../../../shared.mjs"; +import { APIPromise } from "../../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.mjs"; +import { RequestOptions } from "../../../../internal/request-options.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Steps extends APIResource { + /** + * Retrieves a run step. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(stepID: string, params: StepRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of run steps belonging to a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(runID: string, params: StepListParams, options?: RequestOptions): PagePromise; +} +export type RunStepsPage = CursorPage; +/** + * Text output from the Code Interpreter tool call as part of a run step. + */ +export interface CodeInterpreterLogs { + /** + * The index of the output in the outputs array. + */ + index: number; + /** + * Always `logs`. + */ + type: 'logs'; + /** + * The text output from the Code Interpreter tool call. + */ + logs?: string; +} +export interface CodeInterpreterOutputImage { + /** + * The index of the output in the outputs array. + */ + index: number; + /** + * Always `image`. + */ + type: 'image'; + image?: CodeInterpreterOutputImage.Image; +} +export declare namespace CodeInterpreterOutputImage { + interface Image { + /** + * The [file](https://platform.openai.com/docs/api-reference/files) ID of the + * image. + */ + file_id?: string; + } +} +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export interface CodeInterpreterToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The Code Interpreter tool call definition. + */ + code_interpreter: CodeInterpreterToolCall.CodeInterpreter; + /** + * The type of tool call. This is always going to be `code_interpreter` for this + * type of tool call. + */ + type: 'code_interpreter'; +} +export declare namespace CodeInterpreterToolCall { + /** + * The Code Interpreter tool call definition. + */ + interface CodeInterpreter { + /** + * The input to the Code Interpreter tool call. + */ + input: string; + /** + * The outputs from the Code Interpreter tool call. Code Interpreter can output one + * or more items, including text (`logs`) or images (`image`). Each of these are + * represented by a different object type. + */ + outputs: Array; + } + namespace CodeInterpreter { + /** + * Text output from the Code Interpreter tool call as part of a run step. + */ + interface Logs { + /** + * The text output from the Code Interpreter tool call. + */ + logs: string; + /** + * Always `logs`. + */ + type: 'logs'; + } + interface Image { + image: Image.Image; + /** + * Always `image`. + */ + type: 'image'; + } + namespace Image { + interface Image { + /** + * The [file](https://platform.openai.com/docs/api-reference/files) ID of the + * image. + */ + file_id: string; + } + } + } +} +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export interface CodeInterpreterToolCallDelta { + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `code_interpreter` for this + * type of tool call. + */ + type: 'code_interpreter'; + /** + * The ID of the tool call. + */ + id?: string; + /** + * The Code Interpreter tool call definition. + */ + code_interpreter?: CodeInterpreterToolCallDelta.CodeInterpreter; +} +export declare namespace CodeInterpreterToolCallDelta { + /** + * The Code Interpreter tool call definition. + */ + interface CodeInterpreter { + /** + * The input to the Code Interpreter tool call. + */ + input?: string; + /** + * The outputs from the Code Interpreter tool call. Code Interpreter can output one + * or more items, including text (`logs`) or images (`image`). Each of these are + * represented by a different object type. + */ + outputs?: Array; + } +} +export interface FileSearchToolCall { + /** + * The ID of the tool call object. + */ + id: string; + /** + * For now, this is always going to be an empty object. + */ + file_search: FileSearchToolCall.FileSearch; + /** + * The type of tool call. This is always going to be `file_search` for this type of + * tool call. + */ + type: 'file_search'; +} +export declare namespace FileSearchToolCall { + /** + * For now, this is always going to be an empty object. + */ + interface FileSearch { + /** + * The ranking options for the file search. + */ + ranking_options?: FileSearch.RankingOptions; + /** + * The results of the file search. + */ + results?: Array; + } + namespace FileSearch { + /** + * The ranking options for the file search. + */ + interface RankingOptions { + /** + * The ranker to use for the file search. If not specified will use the `auto` + * ranker. + */ + ranker: 'auto' | 'default_2024_08_21'; + /** + * The score threshold for the file search. All values must be a floating point + * number between 0 and 1. + */ + score_threshold: number; + } + /** + * A result instance of the file search. + */ + interface Result { + /** + * The ID of the file that result was found in. + */ + file_id: string; + /** + * The name of the file that result was found in. + */ + file_name: string; + /** + * The score of the result. All values must be a floating point number between 0 + * and 1. + */ + score: number; + /** + * The content of the result that was found. The content is only included if + * requested via the include query parameter. + */ + content?: Array; + } + namespace Result { + interface Content { + /** + * The text content of the file. + */ + text?: string; + /** + * The type of the content. + */ + type?: 'text'; + } + } + } +} +export interface FileSearchToolCallDelta { + /** + * For now, this is always going to be an empty object. + */ + file_search: unknown; + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `file_search` for this type of + * tool call. + */ + type: 'file_search'; + /** + * The ID of the tool call object. + */ + id?: string; +} +export interface FunctionToolCall { + /** + * The ID of the tool call object. + */ + id: string; + /** + * The definition of the function that was called. + */ + function: FunctionToolCall.Function; + /** + * The type of tool call. This is always going to be `function` for this type of + * tool call. + */ + type: 'function'; +} +export declare namespace FunctionToolCall { + /** + * The definition of the function that was called. + */ + interface Function { + /** + * The arguments passed to the function. + */ + arguments: string; + /** + * The name of the function. + */ + name: string; + /** + * The output of the function. This will be `null` if the outputs have not been + * [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * yet. + */ + output: string | null; + } +} +export interface FunctionToolCallDelta { + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `function` for this type of + * tool call. + */ + type: 'function'; + /** + * The ID of the tool call object. + */ + id?: string; + /** + * The definition of the function that was called. + */ + function?: FunctionToolCallDelta.Function; +} +export declare namespace FunctionToolCallDelta { + /** + * The definition of the function that was called. + */ + interface Function { + /** + * The arguments passed to the function. + */ + arguments?: string; + /** + * The name of the function. + */ + name?: string; + /** + * The output of the function. This will be `null` if the outputs have not been + * [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * yet. + */ + output?: string | null; + } +} +/** + * Details of the message creation by the run step. + */ +export interface MessageCreationStepDetails { + message_creation: MessageCreationStepDetails.MessageCreation; + /** + * Always `message_creation`. + */ + type: 'message_creation'; +} +export declare namespace MessageCreationStepDetails { + interface MessageCreation { + /** + * The ID of the message that was created by this run step. + */ + message_id: string; + } +} +/** + * Represents a step in execution of a run. + */ +export interface RunStep { + /** + * The identifier of the run step, which can be referenced in API endpoints. + */ + id: string; + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) + * associated with the run step. + */ + assistant_id: string; + /** + * The Unix timestamp (in seconds) for when the run step was cancelled. + */ + cancelled_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step completed. + */ + completed_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the run step expired. A step is + * considered expired if the parent run is expired. + */ + expired_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step failed. + */ + failed_at: number | null; + /** + * The last error associated with this run step. Will be `null` if there are no + * errors. + */ + last_error: RunStep.LastError | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread.run.step`. + */ + object: 'thread.run.step'; + /** + * The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that + * this run step is a part of. + */ + run_id: string; + /** + * The status of the run step, which can be either `in_progress`, `cancelled`, + * `failed`, `completed`, or `expired`. + */ + status: 'in_progress' | 'cancelled' | 'failed' | 'completed' | 'expired'; + /** + * The details of the run step. + */ + step_details: MessageCreationStepDetails | ToolCallsStepDetails; + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was run. + */ + thread_id: string; + /** + * The type of run step, which can be either `message_creation` or `tool_calls`. + */ + type: 'message_creation' | 'tool_calls'; + /** + * Usage statistics related to the run step. This value will be `null` while the + * run step's status is `in_progress`. + */ + usage: RunStep.Usage | null; +} +export declare namespace RunStep { + /** + * The last error associated with this run step. Will be `null` if there are no + * errors. + */ + interface LastError { + /** + * One of `server_error` or `rate_limit_exceeded`. + */ + code: 'server_error' | 'rate_limit_exceeded'; + /** + * A human-readable description of the error. + */ + message: string; + } + /** + * Usage statistics related to the run step. This value will be `null` while the + * run step's status is `in_progress`. + */ + interface Usage { + /** + * Number of completion tokens used over the course of the run step. + */ + completion_tokens: number; + /** + * Number of prompt tokens used over the course of the run step. + */ + prompt_tokens: number; + /** + * Total number of tokens used (prompt + completion). + */ + total_tokens: number; + } +} +/** + * The delta containing the fields that have changed on the run step. + */ +export interface RunStepDelta { + /** + * The details of the run step. + */ + step_details?: RunStepDeltaMessageDelta | ToolCallDeltaObject; +} +/** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ +export interface RunStepDeltaEvent { + /** + * The identifier of the run step, which can be referenced in API endpoints. + */ + id: string; + /** + * The delta containing the fields that have changed on the run step. + */ + delta: RunStepDelta; + /** + * The object type, which is always `thread.run.step.delta`. + */ + object: 'thread.run.step.delta'; +} +/** + * Details of the message creation by the run step. + */ +export interface RunStepDeltaMessageDelta { + /** + * Always `message_creation`. + */ + type: 'message_creation'; + message_creation?: RunStepDeltaMessageDelta.MessageCreation; +} +export declare namespace RunStepDeltaMessageDelta { + interface MessageCreation { + /** + * The ID of the message that was created by this run step. + */ + message_id?: string; + } +} +export type RunStepInclude = 'step_details.tool_calls[*].file_search.results[*].content'; +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export type ToolCall = CodeInterpreterToolCall | FileSearchToolCall | FunctionToolCall; +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export type ToolCallDelta = CodeInterpreterToolCallDelta | FileSearchToolCallDelta | FunctionToolCallDelta; +/** + * Details of the tool call. + */ +export interface ToolCallDeltaObject { + /** + * Always `tool_calls`. + */ + type: 'tool_calls'; + /** + * An array of tool calls the run step was involved in. These can be associated + * with one of three types of tools: `code_interpreter`, `file_search`, or + * `function`. + */ + tool_calls?: Array; +} +/** + * Details of the tool call. + */ +export interface ToolCallsStepDetails { + /** + * An array of tool calls the run step was involved in. These can be associated + * with one of three types of tools: `code_interpreter`, `file_search`, or + * `function`. + */ + tool_calls: Array; + /** + * Always `tool_calls`. + */ + type: 'tool_calls'; +} +export interface StepRetrieveParams { + /** + * Path param: The ID of the thread to which the run and run step belongs. + */ + thread_id: string; + /** + * Path param: The ID of the run to which the run step belongs. + */ + run_id: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; +} +export interface StepListParams extends CursorPageParams { + /** + * Path param: The ID of the thread the run and run steps belong to. + */ + thread_id: string; + /** + * Query param: A cursor for use in pagination. `before` is an object ID that + * defines your place in the list. For instance, if you make a list request and + * receive 100 objects, starting with obj_foo, your subsequent call can include + * before=obj_foo in order to fetch the previous page of the list. + */ + before?: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; + /** + * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for + * ascending order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Steps { + export { type CodeInterpreterLogs as CodeInterpreterLogs, type CodeInterpreterOutputImage as CodeInterpreterOutputImage, type CodeInterpreterToolCall as CodeInterpreterToolCall, type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta, type FileSearchToolCall as FileSearchToolCall, type FileSearchToolCallDelta as FileSearchToolCallDelta, type FunctionToolCall as FunctionToolCall, type FunctionToolCallDelta as FunctionToolCallDelta, type MessageCreationStepDetails as MessageCreationStepDetails, type RunStep as RunStep, type RunStepDelta as RunStepDelta, type RunStepDeltaEvent as RunStepDeltaEvent, type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta, type RunStepInclude as RunStepInclude, type ToolCall as ToolCall, type ToolCallDelta as ToolCallDelta, type ToolCallDeltaObject as ToolCallDeltaObject, type ToolCallsStepDetails as ToolCallsStepDetails, type RunStepsPage as RunStepsPage, type StepRetrieveParams as StepRetrieveParams, type StepListParams as StepListParams, }; +} +//# sourceMappingURL=steps.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..bbc2676bf0c91bd5b4775d33c3dbe0dc387f7c34 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"steps.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/steps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IASnG;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC;CAQ1G;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd,KAAK,CAAC,EAAE,0BA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CAAC;CACjC;AAED,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..04cd0092a6f12c9e6d8dbf646492793c9cefafb9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts @@ -0,0 +1,615 @@ +import { APIResource } from "../../../../core/resource.js"; +import * as StepsAPI from "./steps.js"; +import * as Shared from "../../../shared.js"; +import { APIPromise } from "../../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.js"; +import { RequestOptions } from "../../../../internal/request-options.js"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Steps extends APIResource { + /** + * Retrieves a run step. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(stepID: string, params: StepRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of run steps belonging to a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(runID: string, params: StepListParams, options?: RequestOptions): PagePromise; +} +export type RunStepsPage = CursorPage; +/** + * Text output from the Code Interpreter tool call as part of a run step. + */ +export interface CodeInterpreterLogs { + /** + * The index of the output in the outputs array. + */ + index: number; + /** + * Always `logs`. + */ + type: 'logs'; + /** + * The text output from the Code Interpreter tool call. + */ + logs?: string; +} +export interface CodeInterpreterOutputImage { + /** + * The index of the output in the outputs array. + */ + index: number; + /** + * Always `image`. + */ + type: 'image'; + image?: CodeInterpreterOutputImage.Image; +} +export declare namespace CodeInterpreterOutputImage { + interface Image { + /** + * The [file](https://platform.openai.com/docs/api-reference/files) ID of the + * image. + */ + file_id?: string; + } +} +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export interface CodeInterpreterToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The Code Interpreter tool call definition. + */ + code_interpreter: CodeInterpreterToolCall.CodeInterpreter; + /** + * The type of tool call. This is always going to be `code_interpreter` for this + * type of tool call. + */ + type: 'code_interpreter'; +} +export declare namespace CodeInterpreterToolCall { + /** + * The Code Interpreter tool call definition. + */ + interface CodeInterpreter { + /** + * The input to the Code Interpreter tool call. + */ + input: string; + /** + * The outputs from the Code Interpreter tool call. Code Interpreter can output one + * or more items, including text (`logs`) or images (`image`). Each of these are + * represented by a different object type. + */ + outputs: Array; + } + namespace CodeInterpreter { + /** + * Text output from the Code Interpreter tool call as part of a run step. + */ + interface Logs { + /** + * The text output from the Code Interpreter tool call. + */ + logs: string; + /** + * Always `logs`. + */ + type: 'logs'; + } + interface Image { + image: Image.Image; + /** + * Always `image`. + */ + type: 'image'; + } + namespace Image { + interface Image { + /** + * The [file](https://platform.openai.com/docs/api-reference/files) ID of the + * image. + */ + file_id: string; + } + } + } +} +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export interface CodeInterpreterToolCallDelta { + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `code_interpreter` for this + * type of tool call. + */ + type: 'code_interpreter'; + /** + * The ID of the tool call. + */ + id?: string; + /** + * The Code Interpreter tool call definition. + */ + code_interpreter?: CodeInterpreterToolCallDelta.CodeInterpreter; +} +export declare namespace CodeInterpreterToolCallDelta { + /** + * The Code Interpreter tool call definition. + */ + interface CodeInterpreter { + /** + * The input to the Code Interpreter tool call. + */ + input?: string; + /** + * The outputs from the Code Interpreter tool call. Code Interpreter can output one + * or more items, including text (`logs`) or images (`image`). Each of these are + * represented by a different object type. + */ + outputs?: Array; + } +} +export interface FileSearchToolCall { + /** + * The ID of the tool call object. + */ + id: string; + /** + * For now, this is always going to be an empty object. + */ + file_search: FileSearchToolCall.FileSearch; + /** + * The type of tool call. This is always going to be `file_search` for this type of + * tool call. + */ + type: 'file_search'; +} +export declare namespace FileSearchToolCall { + /** + * For now, this is always going to be an empty object. + */ + interface FileSearch { + /** + * The ranking options for the file search. + */ + ranking_options?: FileSearch.RankingOptions; + /** + * The results of the file search. + */ + results?: Array; + } + namespace FileSearch { + /** + * The ranking options for the file search. + */ + interface RankingOptions { + /** + * The ranker to use for the file search. If not specified will use the `auto` + * ranker. + */ + ranker: 'auto' | 'default_2024_08_21'; + /** + * The score threshold for the file search. All values must be a floating point + * number between 0 and 1. + */ + score_threshold: number; + } + /** + * A result instance of the file search. + */ + interface Result { + /** + * The ID of the file that result was found in. + */ + file_id: string; + /** + * The name of the file that result was found in. + */ + file_name: string; + /** + * The score of the result. All values must be a floating point number between 0 + * and 1. + */ + score: number; + /** + * The content of the result that was found. The content is only included if + * requested via the include query parameter. + */ + content?: Array; + } + namespace Result { + interface Content { + /** + * The text content of the file. + */ + text?: string; + /** + * The type of the content. + */ + type?: 'text'; + } + } + } +} +export interface FileSearchToolCallDelta { + /** + * For now, this is always going to be an empty object. + */ + file_search: unknown; + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `file_search` for this type of + * tool call. + */ + type: 'file_search'; + /** + * The ID of the tool call object. + */ + id?: string; +} +export interface FunctionToolCall { + /** + * The ID of the tool call object. + */ + id: string; + /** + * The definition of the function that was called. + */ + function: FunctionToolCall.Function; + /** + * The type of tool call. This is always going to be `function` for this type of + * tool call. + */ + type: 'function'; +} +export declare namespace FunctionToolCall { + /** + * The definition of the function that was called. + */ + interface Function { + /** + * The arguments passed to the function. + */ + arguments: string; + /** + * The name of the function. + */ + name: string; + /** + * The output of the function. This will be `null` if the outputs have not been + * [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * yet. + */ + output: string | null; + } +} +export interface FunctionToolCallDelta { + /** + * The index of the tool call in the tool calls array. + */ + index: number; + /** + * The type of tool call. This is always going to be `function` for this type of + * tool call. + */ + type: 'function'; + /** + * The ID of the tool call object. + */ + id?: string; + /** + * The definition of the function that was called. + */ + function?: FunctionToolCallDelta.Function; +} +export declare namespace FunctionToolCallDelta { + /** + * The definition of the function that was called. + */ + interface Function { + /** + * The arguments passed to the function. + */ + arguments?: string; + /** + * The name of the function. + */ + name?: string; + /** + * The output of the function. This will be `null` if the outputs have not been + * [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + * yet. + */ + output?: string | null; + } +} +/** + * Details of the message creation by the run step. + */ +export interface MessageCreationStepDetails { + message_creation: MessageCreationStepDetails.MessageCreation; + /** + * Always `message_creation`. + */ + type: 'message_creation'; +} +export declare namespace MessageCreationStepDetails { + interface MessageCreation { + /** + * The ID of the message that was created by this run step. + */ + message_id: string; + } +} +/** + * Represents a step in execution of a run. + */ +export interface RunStep { + /** + * The identifier of the run step, which can be referenced in API endpoints. + */ + id: string; + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) + * associated with the run step. + */ + assistant_id: string; + /** + * The Unix timestamp (in seconds) for when the run step was cancelled. + */ + cancelled_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step completed. + */ + completed_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the run step expired. A step is + * considered expired if the parent run is expired. + */ + expired_at: number | null; + /** + * The Unix timestamp (in seconds) for when the run step failed. + */ + failed_at: number | null; + /** + * The last error associated with this run step. Will be `null` if there are no + * errors. + */ + last_error: RunStep.LastError | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread.run.step`. + */ + object: 'thread.run.step'; + /** + * The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that + * this run step is a part of. + */ + run_id: string; + /** + * The status of the run step, which can be either `in_progress`, `cancelled`, + * `failed`, `completed`, or `expired`. + */ + status: 'in_progress' | 'cancelled' | 'failed' | 'completed' | 'expired'; + /** + * The details of the run step. + */ + step_details: MessageCreationStepDetails | ToolCallsStepDetails; + /** + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + * that was run. + */ + thread_id: string; + /** + * The type of run step, which can be either `message_creation` or `tool_calls`. + */ + type: 'message_creation' | 'tool_calls'; + /** + * Usage statistics related to the run step. This value will be `null` while the + * run step's status is `in_progress`. + */ + usage: RunStep.Usage | null; +} +export declare namespace RunStep { + /** + * The last error associated with this run step. Will be `null` if there are no + * errors. + */ + interface LastError { + /** + * One of `server_error` or `rate_limit_exceeded`. + */ + code: 'server_error' | 'rate_limit_exceeded'; + /** + * A human-readable description of the error. + */ + message: string; + } + /** + * Usage statistics related to the run step. This value will be `null` while the + * run step's status is `in_progress`. + */ + interface Usage { + /** + * Number of completion tokens used over the course of the run step. + */ + completion_tokens: number; + /** + * Number of prompt tokens used over the course of the run step. + */ + prompt_tokens: number; + /** + * Total number of tokens used (prompt + completion). + */ + total_tokens: number; + } +} +/** + * The delta containing the fields that have changed on the run step. + */ +export interface RunStepDelta { + /** + * The details of the run step. + */ + step_details?: RunStepDeltaMessageDelta | ToolCallDeltaObject; +} +/** + * Represents a run step delta i.e. any changed fields on a run step during + * streaming. + */ +export interface RunStepDeltaEvent { + /** + * The identifier of the run step, which can be referenced in API endpoints. + */ + id: string; + /** + * The delta containing the fields that have changed on the run step. + */ + delta: RunStepDelta; + /** + * The object type, which is always `thread.run.step.delta`. + */ + object: 'thread.run.step.delta'; +} +/** + * Details of the message creation by the run step. + */ +export interface RunStepDeltaMessageDelta { + /** + * Always `message_creation`. + */ + type: 'message_creation'; + message_creation?: RunStepDeltaMessageDelta.MessageCreation; +} +export declare namespace RunStepDeltaMessageDelta { + interface MessageCreation { + /** + * The ID of the message that was created by this run step. + */ + message_id?: string; + } +} +export type RunStepInclude = 'step_details.tool_calls[*].file_search.results[*].content'; +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export type ToolCall = CodeInterpreterToolCall | FileSearchToolCall | FunctionToolCall; +/** + * Details of the Code Interpreter tool call the run step was involved in. + */ +export type ToolCallDelta = CodeInterpreterToolCallDelta | FileSearchToolCallDelta | FunctionToolCallDelta; +/** + * Details of the tool call. + */ +export interface ToolCallDeltaObject { + /** + * Always `tool_calls`. + */ + type: 'tool_calls'; + /** + * An array of tool calls the run step was involved in. These can be associated + * with one of three types of tools: `code_interpreter`, `file_search`, or + * `function`. + */ + tool_calls?: Array; +} +/** + * Details of the tool call. + */ +export interface ToolCallsStepDetails { + /** + * An array of tool calls the run step was involved in. These can be associated + * with one of three types of tools: `code_interpreter`, `file_search`, or + * `function`. + */ + tool_calls: Array; + /** + * Always `tool_calls`. + */ + type: 'tool_calls'; +} +export interface StepRetrieveParams { + /** + * Path param: The ID of the thread to which the run and run step belongs. + */ + thread_id: string; + /** + * Path param: The ID of the run to which the run step belongs. + */ + run_id: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; +} +export interface StepListParams extends CursorPageParams { + /** + * Path param: The ID of the thread the run and run steps belong to. + */ + thread_id: string; + /** + * Query param: A cursor for use in pagination. `before` is an object ID that + * defines your place in the list. For instance, if you make a list request and + * receive 100 objects, starting with obj_foo, your subsequent call can include + * before=obj_foo in order to fetch the previous page of the list. + */ + before?: string; + /** + * Query param: A list of additional fields to include in the response. Currently + * the only supported value is + * `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + * search result content. + * + * See the + * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + * for more information. + */ + include?: Array; + /** + * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for + * ascending order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Steps { + export { type CodeInterpreterLogs as CodeInterpreterLogs, type CodeInterpreterOutputImage as CodeInterpreterOutputImage, type CodeInterpreterToolCall as CodeInterpreterToolCall, type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta, type FileSearchToolCall as FileSearchToolCall, type FileSearchToolCallDelta as FileSearchToolCallDelta, type FunctionToolCall as FunctionToolCall, type FunctionToolCallDelta as FunctionToolCallDelta, type MessageCreationStepDetails as MessageCreationStepDetails, type RunStep as RunStep, type RunStepDelta as RunStepDelta, type RunStepDeltaEvent as RunStepDeltaEvent, type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta, type RunStepInclude as RunStepInclude, type ToolCall as ToolCall, type ToolCallDelta as ToolCallDelta, type ToolCallDeltaObject as ToolCallDeltaObject, type ToolCallsStepDetails as ToolCallsStepDetails, type RunStepsPage as RunStepsPage, type StepRetrieveParams as StepRetrieveParams, type StepListParams as StepListParams, }; +} +//# sourceMappingURL=steps.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..c46f3bfc6434288ec5dc988e553946c4203abf4c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/steps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IASnG;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC;CAQ1G;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAA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mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js new file mode 100644 index 0000000000000000000000000000000000000000..c506ed59b270f17d771c4ccc2fc8b97d1428a7f1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js @@ -0,0 +1,41 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Steps = void 0; +const resource_1 = require("../../../../core/resource.js"); +const pagination_1 = require("../../../../core/pagination.js"); +const headers_1 = require("../../../../internal/headers.js"); +const path_1 = require("../../../../internal/utils/path.js"); +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +class Steps extends resource_1.APIResource { + /** + * Retrieves a run step. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(stepID, params, options) { + const { thread_id, run_id, ...query } = params; + return this._client.get((0, path_1.path) `/threads/${thread_id}/runs/${run_id}/steps/${stepID}`, { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of run steps belonging to a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(runID, params, options) { + const { thread_id, ...query } = params; + return this._client.getAPIList((0, path_1.path) `/threads/${thread_id}/runs/${runID}/steps`, (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.Steps = Steps; +//# sourceMappingURL=steps.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0ff67d7a7267eed442c31708362881e2a5052425 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.js.map @@ -0,0 +1 @@ +{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/steps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAIxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;OAIG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,SAAS,MAAM,UAAU,MAAM,EAAE,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,KAAa,EAAE,MAAsB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,SAAS,KAAK,QAAQ,EAAE,CAAA,uBAAmB,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,sBA4BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs new file mode 100644 index 0000000000000000000000000000000000000000..9a548e8c75390969d35ed3f11db18d544684ebd6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../../core/resource.mjs"; +import { CursorPage } from "../../../../core/pagination.mjs"; +import { buildHeaders } from "../../../../internal/headers.mjs"; +import { path } from "../../../../internal/utils/path.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export class Steps extends APIResource { + /** + * Retrieves a run step. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(stepID, params, options) { + const { thread_id, run_id, ...query } = params; + return this._client.get(path `/threads/${thread_id}/runs/${run_id}/steps/${stepID}`, { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of run steps belonging to a run. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + list(runID, params, options) { + const { thread_id, ...query } = params; + return this._client.getAPIList(path `/threads/${thread_id}/runs/${runID}/steps`, (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +//# sourceMappingURL=steps.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..7ff1639f9ee1b9e2d614af10ee20d965c4efb738 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/runs/steps.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"steps.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/threads/runs/steps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,SAAS,MAAM,UAAU,MAAM,EAAE,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,KAAa,EAAE,MAAsB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,YAAY,SAAS,SAAS,KAAK,QAAQ,EAAE,CAAA,UAAmB,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..1b4e154a782386f7057431ca7a53deaae1ed0133 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts @@ -0,0 +1,1044 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as ThreadsAPI from "./threads.mjs"; +import * as Shared from "../../shared.mjs"; +import * as AssistantsAPI from "../assistants.mjs"; +import * as MessagesAPI from "./messages.mjs"; +import { Annotation, AnnotationDelta, FileCitationAnnotation, FileCitationDeltaAnnotation, FilePathAnnotation, FilePathDeltaAnnotation, ImageFile, ImageFileContentBlock, ImageFileDelta, ImageFileDeltaBlock, ImageURL, ImageURLContentBlock, ImageURLDelta, ImageURLDeltaBlock, Message as MessagesAPIMessage, MessageContent, MessageContentDelta, MessageContentPartParam, MessageCreateParams, MessageDeleteParams, MessageDeleted, MessageDelta, MessageDeltaEvent, MessageListParams, MessageRetrieveParams, MessageUpdateParams, Messages, MessagesPage, RefusalContentBlock, RefusalDeltaBlock, Text, TextContentBlock, TextContentBlockParam, TextDelta, TextDeltaBlock } from "./messages.mjs"; +import * as RunsAPI from "./runs/runs.mjs"; +import { RequiredActionFunctionToolCall, Run, RunCreateAndPollParams, RunCreateAndStreamParams, RunCancelParams, RunCreateParams, RunCreateParamsNonStreaming, RunCreateParamsStreaming, RunListParams, RunRetrieveParams, RunStatus, RunStreamParams, RunSubmitToolOutputsAndPollParams, RunSubmitToolOutputsParams, RunSubmitToolOutputsParamsNonStreaming, RunSubmitToolOutputsParamsStreaming, RunSubmitToolOutputsStreamParams, RunUpdateParams, Runs, RunsPage } from "./runs/runs.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { Stream } from "../../../core/streaming.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from "../../../lib/AssistantStream.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Threads extends APIResource { + runs: RunsAPI.Runs; + messages: MessagesAPI.Messages; + /** + * Create a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(body?: ThreadCreateParams | null | undefined, options?: RequestOptions): APIPromise; + /** + * Retrieves a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(threadID: string, options?: RequestOptions): APIPromise; + /** + * Modifies a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(threadID: string, body: ThreadUpdateParams, options?: RequestOptions): APIPromise; + /** + * Delete a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(threadID: string, options?: RequestOptions): APIPromise; + /** + * Create a thread and run it in one request. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + createAndRun(body: ThreadCreateAndRunParamsNonStreaming, options?: RequestOptions): APIPromise; + createAndRun(body: ThreadCreateAndRunParamsStreaming, options?: RequestOptions): APIPromise>; + createAndRun(body: ThreadCreateAndRunParamsBase, options?: RequestOptions): APIPromise | RunsAPI.Run>; + /** + * A helper to create a thread, start a run and then poll for a terminal state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + createAndRunPoll(body: ThreadCreateAndRunParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a thread and stream the run back + */ + createAndRunStream(body: ThreadCreateAndRunParamsBaseStream, options?: RequestOptions): AssistantStream; +} +/** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ +export type AssistantResponseFormatOption = 'auto' | Shared.ResponseFormatText | Shared.ResponseFormatJSONObject | Shared.ResponseFormatJSONSchema; +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * tool. + */ +export interface AssistantToolChoice { + /** + * The type of the tool. If type is `function`, the function name must be set + */ + type: 'function' | 'code_interpreter' | 'file_search'; + function?: AssistantToolChoiceFunction; +} +export interface AssistantToolChoiceFunction { + /** + * The name of the function to call. + */ + name: string; +} +/** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ +export type AssistantToolChoiceOption = 'none' | 'auto' | 'required' | AssistantToolChoice; +/** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ +export interface Thread { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the thread was created. + */ + created_at: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread`. + */ + object: 'thread'; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources: Thread.ToolResources | null; +} +export declare namespace Thread { + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + } + } +} +export interface ThreadDeleted { + id: string; + deleted: boolean; + object: 'thread.deleted'; +} +export interface ThreadCreateParams { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: ThreadCreateParams.ToolResources | null; +} +export declare namespace ThreadCreateParams { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } +} +export interface ThreadUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: ThreadUpdateParams.ToolResources | null; +} +export declare namespace ThreadUpdateParams { + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + } + } +} +export type ThreadCreateAndRunParams = ThreadCreateAndRunParamsNonStreaming | ThreadCreateAndRunParamsStreaming; +export interface ThreadCreateAndRunParamsBase { + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Override the default system message of the assistant. This is useful for + * modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * The maximum number of completion tokens that may be used over the course of the + * run. The run will make a best effort to use only the number of completion tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * completion tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * The maximum number of prompt tokens that may be used over the course of the run. + * The run will make a best effort to use only the number of prompt tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * prompt tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to + * be used to execute this run. If a value is provided here, it will override the + * model associated with the assistant. If not, the model associated with the + * assistant will be used. + */ + model?: (string & {}) | Shared.ChatModel | null; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: AssistantResponseFormatOption | null; + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream?: boolean | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * Options to create a new thread. If no thread is provided when running a request, + * an empty thread will be created. + */ + thread?: ThreadCreateAndRunParams.Thread; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: AssistantToolChoiceOption | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: ThreadCreateAndRunParams.ToolResources | null; + /** + * Override the tools the assistant can use for this run. This is useful for + * modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + truncation_strategy?: ThreadCreateAndRunParams.TruncationStrategy | null; +} +export declare namespace ThreadCreateAndRunParams { + /** + * Options to create a new thread. If no thread is provided when running a request, + * an empty thread will be created. + */ + interface Thread { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: Thread.ToolResources | null; + } + namespace Thread { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } + } + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + type ThreadCreateAndRunParamsNonStreaming = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming; + type ThreadCreateAndRunParamsStreaming = ThreadsAPI.ThreadCreateAndRunParamsStreaming; +} +export interface ThreadCreateAndRunParamsNonStreaming extends ThreadCreateAndRunParamsBase { + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream?: false | null; +} +export interface ThreadCreateAndRunParamsStreaming extends ThreadCreateAndRunParamsBase { + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream: true; +} +export interface ThreadCreateAndRunPollParams { + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Override the default system message of the assistant. This is useful for + * modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * The maximum number of completion tokens that may be used over the course of the + * run. The run will make a best effort to use only the number of completion tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * completion tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * The maximum number of prompt tokens that may be used over the course of the run. + * The run will make a best effort to use only the number of prompt tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * prompt tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + /** + * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to + * be used to execute this run. If a value is provided here, it will override the + * model associated with the assistant. If not, the model associated with the + * assistant will be used. + */ + model?: (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * If no thread is provided, an empty thread will be created. + */ + thread?: ThreadCreateAndRunPollParams.Thread; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: AssistantToolChoiceOption | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: ThreadCreateAndRunPollParams.ToolResources | null; + /** + * Override the tools the assistant can use for this run. This is useful for + * modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the intial context window of the run. + */ + truncation_strategy?: ThreadCreateAndRunPollParams.TruncationStrategy | null; +} +export declare namespace ThreadCreateAndRunPollParams { + /** + * If no thread is provided, an empty thread will be created. + */ + interface Thread { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: Thread.ToolResources | null; + } + namespace Thread { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to a vector store. This can be + * useful for storing additional information about the vector store in a structured + * format. Keys can be a maximum of 64 characters long and values can be a maxium + * of 512 characters long. + */ + metadata?: unknown; + } + } + } + } + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the intial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } +} +export type ThreadCreateAndRunStreamParams = ThreadCreateAndRunParamsBaseStream; +export declare namespace Threads { + export { type AssistantResponseFormatOption as AssistantResponseFormatOption, type AssistantToolChoice as AssistantToolChoice, type AssistantToolChoiceFunction as AssistantToolChoiceFunction, type AssistantToolChoiceOption as AssistantToolChoiceOption, type Thread as Thread, type ThreadDeleted as ThreadDeleted, type ThreadCreateParams as ThreadCreateParams, type ThreadUpdateParams as ThreadUpdateParams, type ThreadCreateAndRunParams as ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, }; + export { Runs as Runs, type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall, type Run as Run, type RunStatus as RunStatus, type RunsPage as RunsPage, type RunCreateParams as RunCreateParams, type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming, type RunCreateParamsStreaming as RunCreateParamsStreaming, type RunRetrieveParams as RunRetrieveParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunCancelParams as RunCancelParams, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, }; + export { Messages as Messages, type Annotation as Annotation, type AnnotationDelta as AnnotationDelta, type FileCitationAnnotation as FileCitationAnnotation, type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation, type FilePathAnnotation as FilePathAnnotation, type FilePathDeltaAnnotation as FilePathDeltaAnnotation, type ImageFile as ImageFile, type ImageFileContentBlock as ImageFileContentBlock, type ImageFileDelta as ImageFileDelta, type ImageFileDeltaBlock as ImageFileDeltaBlock, type ImageURL as ImageURL, type ImageURLContentBlock as ImageURLContentBlock, type ImageURLDelta as ImageURLDelta, type ImageURLDeltaBlock as ImageURLDeltaBlock, type MessagesAPIMessage as Message, type MessageContent as MessageContent, type MessageContentDelta as MessageContentDelta, type MessageContentPartParam as MessageContentPartParam, type MessageDeleted as MessageDeleted, type MessageDelta as MessageDelta, type MessageDeltaEvent as MessageDeltaEvent, type RefusalContentBlock as RefusalContentBlock, type RefusalDeltaBlock as RefusalDeltaBlock, type Text as Text, type TextContentBlock as TextContentBlock, type TextContentBlockParam as TextContentBlockParam, type TextDelta as TextDelta, type TextDeltaBlock as TextDeltaBlock, type MessagesPage as MessagesPage, type MessageCreateParams as MessageCreateParams, type MessageRetrieveParams as MessageRetrieveParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageDeleteParams as MessageDeleteParams, }; + export { AssistantStream }; +} +//# sourceMappingURL=threads.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..9128092563b8ddecd01d9327fc3f052daa64b5a3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,WAAW;OAChB,EACL,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,OAAO,IAAI,kBAAkB,EAC7B,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,IAAI,EACJ,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACf;OACM,KAAK,OAAO;OACZ,EACL,8BAA8B,EAC9B,GAAG,EACH,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,wBAAwB,EACxB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,iCAAiC,EACjC,0BAA0B,EAC1B,sCAAsC,EACtC,mCAAmC,EACnC,gCAAgC,EAChC,eAAe,EACf,IAAI,EACJ,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;OAClB,EAAE,eAAe,EAAE,kCAAkC,EAAE;AAG9D;;GAEG;AACH,qBAAa,OAAQ,SA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K,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ab8dfd4fe785c61267c53702de8055f793c26ce2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts @@ -0,0 +1,1044 @@ +import { APIResource } from "../../../core/resource.js"; +import * as ThreadsAPI from "./threads.js"; +import * as Shared from "../../shared.js"; +import * as AssistantsAPI from "../assistants.js"; +import * as MessagesAPI from "./messages.js"; +import { Annotation, AnnotationDelta, FileCitationAnnotation, FileCitationDeltaAnnotation, FilePathAnnotation, FilePathDeltaAnnotation, ImageFile, ImageFileContentBlock, ImageFileDelta, ImageFileDeltaBlock, ImageURL, ImageURLContentBlock, ImageURLDelta, ImageURLDeltaBlock, Message as MessagesAPIMessage, MessageContent, MessageContentDelta, MessageContentPartParam, MessageCreateParams, MessageDeleteParams, MessageDeleted, MessageDelta, MessageDeltaEvent, MessageListParams, MessageRetrieveParams, MessageUpdateParams, Messages, MessagesPage, RefusalContentBlock, RefusalDeltaBlock, Text, TextContentBlock, TextContentBlockParam, TextDelta, TextDeltaBlock } from "./messages.js"; +import * as RunsAPI from "./runs/runs.js"; +import { RequiredActionFunctionToolCall, Run, RunCreateAndPollParams, RunCreateAndStreamParams, RunCancelParams, RunCreateParams, RunCreateParamsNonStreaming, RunCreateParamsStreaming, RunListParams, RunRetrieveParams, RunStatus, RunStreamParams, RunSubmitToolOutputsAndPollParams, RunSubmitToolOutputsParams, RunSubmitToolOutputsParamsNonStreaming, RunSubmitToolOutputsParamsStreaming, RunSubmitToolOutputsStreamParams, RunUpdateParams, Runs, RunsPage } from "./runs/runs.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { Stream } from "../../../core/streaming.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from "../../../lib/AssistantStream.js"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export declare class Threads extends APIResource { + runs: RunsAPI.Runs; + messages: MessagesAPI.Messages; + /** + * Create a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(body?: ThreadCreateParams | null | undefined, options?: RequestOptions): APIPromise; + /** + * Retrieves a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(threadID: string, options?: RequestOptions): APIPromise; + /** + * Modifies a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(threadID: string, body: ThreadUpdateParams, options?: RequestOptions): APIPromise; + /** + * Delete a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(threadID: string, options?: RequestOptions): APIPromise; + /** + * Create a thread and run it in one request. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + createAndRun(body: ThreadCreateAndRunParamsNonStreaming, options?: RequestOptions): APIPromise; + createAndRun(body: ThreadCreateAndRunParamsStreaming, options?: RequestOptions): APIPromise>; + createAndRun(body: ThreadCreateAndRunParamsBase, options?: RequestOptions): APIPromise | RunsAPI.Run>; + /** + * A helper to create a thread, start a run and then poll for a terminal state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + createAndRunPoll(body: ThreadCreateAndRunParamsNonStreaming, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Create a thread and stream the run back + */ + createAndRunStream(body: ThreadCreateAndRunParamsBaseStream, options?: RequestOptions): AssistantStream; +} +/** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ +export type AssistantResponseFormatOption = 'auto' | Shared.ResponseFormatText | Shared.ResponseFormatJSONObject | Shared.ResponseFormatJSONSchema; +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * tool. + */ +export interface AssistantToolChoice { + /** + * The type of the tool. If type is `function`, the function name must be set + */ + type: 'function' | 'code_interpreter' | 'file_search'; + function?: AssistantToolChoiceFunction; +} +export interface AssistantToolChoiceFunction { + /** + * The name of the function to call. + */ + name: string; +} +/** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ +export type AssistantToolChoiceOption = 'none' | 'auto' | 'required' | AssistantToolChoice; +/** + * Represents a thread that contains + * [messages](https://platform.openai.com/docs/api-reference/messages). + */ +export interface Thread { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the thread was created. + */ + created_at: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The object type, which is always `thread`. + */ + object: 'thread'; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources: Thread.ToolResources | null; +} +export declare namespace Thread { + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + } + } +} +export interface ThreadDeleted { + id: string; + deleted: boolean; + object: 'thread.deleted'; +} +export interface ThreadCreateParams { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: ThreadCreateParams.ToolResources | null; +} +export declare namespace ThreadCreateParams { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } +} +export interface ThreadUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: ThreadUpdateParams.ToolResources | null; +} +export declare namespace ThreadUpdateParams { + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + } + } +} +export type ThreadCreateAndRunParams = ThreadCreateAndRunParamsNonStreaming | ThreadCreateAndRunParamsStreaming; +export interface ThreadCreateAndRunParamsBase { + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Override the default system message of the assistant. This is useful for + * modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * The maximum number of completion tokens that may be used over the course of the + * run. The run will make a best effort to use only the number of completion tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * completion tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * The maximum number of prompt tokens that may be used over the course of the run. + * The run will make a best effort to use only the number of prompt tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * prompt tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to + * be used to execute this run. If a value is provided here, it will override the + * model associated with the assistant. If not, the model associated with the + * assistant will be used. + */ + model?: (string & {}) | Shared.ChatModel | null; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: AssistantResponseFormatOption | null; + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream?: boolean | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * Options to create a new thread. If no thread is provided when running a request, + * an empty thread will be created. + */ + thread?: ThreadCreateAndRunParams.Thread; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: AssistantToolChoiceOption | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: ThreadCreateAndRunParams.ToolResources | null; + /** + * Override the tools the assistant can use for this run. This is useful for + * modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + truncation_strategy?: ThreadCreateAndRunParams.TruncationStrategy | null; +} +export declare namespace ThreadCreateAndRunParams { + /** + * Options to create a new thread. If no thread is provided when running a request, + * an empty thread will be created. + */ + interface Thread { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: Thread.ToolResources | null; + } + namespace Thread { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + namespace Attachment { + interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. + */ + chunking_strategy?: VectorStore.Auto | VectorStore.Static; + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + namespace VectorStore { + /** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ + interface Auto { + /** + * Always `auto`. + */ + type: 'auto'; + } + interface Static { + static: Static.Static; + /** + * Always `static`. + */ + type: 'static'; + } + namespace Static { + interface Static { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; + } + } + } + } + } + } + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the initial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } + type ThreadCreateAndRunParamsNonStreaming = ThreadsAPI.ThreadCreateAndRunParamsNonStreaming; + type ThreadCreateAndRunParamsStreaming = ThreadsAPI.ThreadCreateAndRunParamsStreaming; +} +export interface ThreadCreateAndRunParamsNonStreaming extends ThreadCreateAndRunParamsBase { + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream?: false | null; +} +export interface ThreadCreateAndRunParamsStreaming extends ThreadCreateAndRunParamsBase { + /** + * If `true`, returns a stream of events that happen during the Run as server-sent + * events, terminating when the Run enters a terminal state with a `data: [DONE]` + * message. + */ + stream: true; +} +export interface ThreadCreateAndRunPollParams { + /** + * The ID of the + * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + * execute this run. + */ + assistant_id: string; + /** + * Override the default system message of the assistant. This is useful for + * modifying the behavior on a per-run basis. + */ + instructions?: string | null; + /** + * The maximum number of completion tokens that may be used over the course of the + * run. The run will make a best effort to use only the number of completion tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * completion tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_completion_tokens?: number | null; + /** + * The maximum number of prompt tokens that may be used over the course of the run. + * The run will make a best effort to use only the number of prompt tokens + * specified, across multiple turns of the run. If the run exceeds the number of + * prompt tokens specified, the run will end with status `incomplete`. See + * `incomplete_details` for more info. + */ + max_prompt_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + /** + * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to + * be used to execute this run. If a value is provided here, it will override the + * model associated with the assistant. If not, the model associated with the + * assistant will be used. + */ + model?: (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | null; + /** + * Specifies the format that the model must output. Compatible with + * [GPT-4o](https://platform.openai.com/docs/models/gpt-4o), + * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4), + * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + * + * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the + * message the model generates is valid JSON. + * + * **Important:** when using JSON mode, you **must** also instruct the model to + * produce JSON yourself via a system or user message. Without this, the model may + * generate an unending stream of whitespace until the generation reaches the token + * limit, resulting in a long-running and seemingly "stuck" request. Also note that + * the message content may be partially cut off if `finish_reason="length"`, which + * indicates the generation exceeded `max_tokens` or the conversation exceeded the + * max context length. + */ + response_format?: AssistantResponseFormatOption | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + */ + temperature?: number | null; + /** + * If no thread is provided, an empty thread will be created. + */ + thread?: ThreadCreateAndRunPollParams.Thread; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tools and instead generates a message. `auto` is the default value + * and means the model can pick between generating a message or calling one or more + * tools. `required` means the model must call one or more tools before responding + * to the user. Specifying a particular tool like `{"type": "file_search"}` or + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + */ + tool_choice?: AssistantToolChoiceOption | null; + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + tool_resources?: ThreadCreateAndRunPollParams.ToolResources | null; + /** + * Override the tools the assistant can use for this run. This is useful for + * modifying the behavior on a per-run basis. + */ + tools?: Array | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or temperature but not both. + */ + top_p?: number | null; + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the intial context window of the run. + */ + truncation_strategy?: ThreadCreateAndRunPollParams.TruncationStrategy | null; +} +export declare namespace ThreadCreateAndRunPollParams { + /** + * If no thread is provided, an empty thread will be created. + */ + interface Thread { + /** + * A list of [messages](https://platform.openai.com/docs/api-reference/messages) to + * start the thread with. + */ + messages?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + tool_resources?: Thread.ToolResources | null; + } + namespace Thread { + interface Message { + /** + * The text contents of the message. + */ + content: string | Array; + /** + * The role of the entity that is creating the message. Allowed values include: + * + * - `user`: Indicates the message is sent by an actual user and should be used in + * most cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the assistant. Use this + * value to insert messages from the assistant into the conversation. + */ + role: 'user' | 'assistant'; + /** + * A list of files attached to the message, and the tools they should be added to. + */ + attachments?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format. Keys + * can be a maximum of 64 characters long and values can be a maxium of 512 + * characters long. + */ + metadata?: unknown | null; + } + namespace Message { + interface Attachment { + /** + * The ID of the file to attach to the message. + */ + file_id?: string; + /** + * The tools to add this file to. + */ + tools?: Array; + } + } + /** + * A set of resources that are made available to the assistant's tools in this + * thread. The resources are specific to the type of tool. For example, the + * `code_interpreter` tool requires a list of file IDs, while the `file_search` + * tool requires a list of vector store IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this thread. There can be a maximum of 1 vector store attached to + * the thread. + */ + vector_store_ids?: Array; + /** + * A helper to create a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * with file_ids and attach it to this thread. There can be a maximum of 1 vector + * store attached to the thread. + */ + vector_stores?: Array; + } + namespace FileSearch { + interface VectorStore { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to + * add to the vector store. There can be a maximum of 10000 files in a vector + * store. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to a vector store. This can be + * useful for storing additional information about the vector store in a structured + * format. Keys can be a maximum of 64 characters long and values can be a maxium + * of 512 characters long. + */ + metadata?: unknown; + } + } + } + } + /** + * A set of resources that are used by the assistant's tools. The resources are + * specific to the type of tool. For example, the `code_interpreter` tool requires + * a list of file IDs, while the `file_search` tool requires a list of vector store + * IDs. + */ + interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; + file_search?: ToolResources.FileSearch; + } + namespace ToolResources { + interface CodeInterpreter { + /** + * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made + * available to the `code_interpreter` tool. There can be a maximum of 20 files + * associated with the tool. + */ + file_ids?: Array; + } + interface FileSearch { + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * attached to this assistant. There can be a maximum of 1 vector store attached to + * the assistant. + */ + vector_store_ids?: Array; + } + } + /** + * Controls for how a thread will be truncated prior to the run. Use this to + * control the intial context window of the run. + */ + interface TruncationStrategy { + /** + * The truncation strategy to use for the thread. The default is `auto`. If set to + * `last_messages`, the thread will be truncated to the n most recent messages in + * the thread. When set to `auto`, messages in the middle of the thread will be + * dropped to fit the context length of the model, `max_prompt_tokens`. + */ + type: 'auto' | 'last_messages'; + /** + * The number of most recent messages from the thread when constructing the context + * for the run. + */ + last_messages?: number | null; + } +} +export type ThreadCreateAndRunStreamParams = ThreadCreateAndRunParamsBaseStream; +export declare namespace Threads { + export { type AssistantResponseFormatOption as AssistantResponseFormatOption, type AssistantToolChoice as AssistantToolChoice, type AssistantToolChoiceFunction as AssistantToolChoiceFunction, type AssistantToolChoiceOption as AssistantToolChoiceOption, type Thread as Thread, type ThreadDeleted as ThreadDeleted, type ThreadCreateParams as ThreadCreateParams, type ThreadUpdateParams as ThreadUpdateParams, type ThreadCreateAndRunParams as ThreadCreateAndRunParams, type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming, type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming, type ThreadCreateAndRunPollParams, type ThreadCreateAndRunStreamParams, }; + export { Runs as Runs, type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall, type Run as Run, type RunStatus as RunStatus, type RunsPage as RunsPage, type RunCreateParams as RunCreateParams, type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming, type RunCreateParamsStreaming as RunCreateParamsStreaming, type RunRetrieveParams as RunRetrieveParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunCancelParams as RunCancelParams, type RunCreateAndPollParams, type RunCreateAndStreamParams, type RunStreamParams, type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams, type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming, type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming, type RunSubmitToolOutputsAndPollParams, type RunSubmitToolOutputsStreamParams, }; + export { Messages as Messages, type Annotation as Annotation, type AnnotationDelta as AnnotationDelta, type FileCitationAnnotation as FileCitationAnnotation, type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation, type FilePathAnnotation as FilePathAnnotation, type FilePathDeltaAnnotation as FilePathDeltaAnnotation, type ImageFile as ImageFile, type ImageFileContentBlock as ImageFileContentBlock, type ImageFileDelta as ImageFileDelta, type ImageFileDeltaBlock as ImageFileDeltaBlock, type ImageURL as ImageURL, type ImageURLContentBlock as ImageURLContentBlock, type ImageURLDelta as ImageURLDelta, type ImageURLDeltaBlock as ImageURLDeltaBlock, type MessagesAPIMessage as Message, type MessageContent as MessageContent, type MessageContentDelta as MessageContentDelta, type MessageContentPartParam as MessageContentPartParam, type MessageDeleted as MessageDeleted, type MessageDelta as MessageDelta, type MessageDeltaEvent as MessageDeltaEvent, type RefusalContentBlock as RefusalContentBlock, type RefusalDeltaBlock as RefusalDeltaBlock, type Text as Text, type TextContentBlock as TextContentBlock, type TextContentBlockParam as TextContentBlockParam, type TextDelta as TextDelta, type TextDeltaBlock as TextDeltaBlock, type MessagesPage as MessagesPage, type MessageCreateParams as MessageCreateParams, type MessageRetrieveParams as MessageRetrieveParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageDeleteParams as MessageDeleteParams, }; + export { AssistantStream }; +} +//# sourceMappingURL=threads.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ed0f26ed1ae7f4e0cc6c7b47bf071389c0ac10a4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/threads/threads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,WAAW;OAChB,EACL,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,OAAO,IAAI,kBAAkB,EAC7B,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iB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_modules/openai/resources/beta/threads/threads.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.js new file mode 100644 index 0000000000000000000000000000000000000000..b8e9fa5bfe61a078d3e4e54d597705bd3c3bada9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.js @@ -0,0 +1,96 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Threads = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const MessagesAPI = tslib_1.__importStar(require("./messages.js")); +const messages_1 = require("./messages.js"); +const RunsAPI = tslib_1.__importStar(require("./runs/runs.js")); +const runs_1 = require("./runs/runs.js"); +const headers_1 = require("../../../internal/headers.js"); +const AssistantStream_1 = require("../../../lib/AssistantStream.js"); +const path_1 = require("../../../internal/utils/path.js"); +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +class Threads extends resource_1.APIResource { + constructor() { + super(...arguments); + this.runs = new RunsAPI.Runs(this._client); + this.messages = new MessagesAPI.Messages(this._client); + } + /** + * Create a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(body = {}, options) { + return this._client.post('/threads', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(threadID, options) { + return this._client.get((0, path_1.path) `/threads/${threadID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(threadID, body, options) { + return this._client.post((0, path_1.path) `/threads/${threadID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(threadID, options) { + return this._client.delete((0, path_1.path) `/threads/${threadID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + createAndRun(body, options) { + return this._client.post('/threads/runs', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: body.stream ?? false, + }); + } + /** + * A helper to create a thread, start a run and then poll for a terminal state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async createAndRunPoll(body, options) { + const run = await this.createAndRun(body, options); + return await this.runs.poll(run.id, { thread_id: run.thread_id }, options); + } + /** + * Create a thread and stream the run back + */ + createAndRunStream(body, options) { + return AssistantStream_1.AssistantStream.createThreadAssistantStream(body, this._client.beta.threads, options); + } +} +exports.Threads = Threads; +Threads.Runs = runs_1.Runs; +Threads.Messages = messages_1.Messages; +//# sourceMappingURL=threads.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9d91f079a7f810da2baf52fe351b53a803254f48 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.js.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.js","sourceRoot":"","sources":["../../../src/resources/beta/threads/threads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,mEAA0C;AAC1C,4CAoCoB;AACpB,gEAAuC;AACvC,yCAqBqB;AAGrB,0DAAyD;AAEzD,qEAAmG;AACnG,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAA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AE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAgBD,YAAY,CACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7E,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAqF,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CACpB,IAA0C,EAC1C,OAAsD;QAEtD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,kBAAkB,CAAC,IAAwC,EAAE,OAAwB;QACnF,OAAO,iCAAe,CAAC,2BAA2B,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF;AAnGD,0BAmGC;AAknCD,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs new file mode 100644 index 0000000000000000000000000000000000000000..0fb737804fd25908f9ac24804ee3d6d6301dc0b7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs @@ -0,0 +1,91 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as MessagesAPI from "./messages.mjs"; +import { Messages, } from "./messages.mjs"; +import * as RunsAPI from "./runs/runs.mjs"; +import { Runs, } from "./runs/runs.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +import { AssistantStream } from "../../../lib/AssistantStream.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +/** + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ +export class Threads extends APIResource { + constructor() { + super(...arguments); + this.runs = new RunsAPI.Runs(this._client); + this.messages = new MessagesAPI.Messages(this._client); + } + /** + * Create a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + create(body = {}, options) { + return this._client.post('/threads', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + retrieve(threadID, options) { + return this._client.get(path `/threads/${threadID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + update(threadID, body, options) { + return this._client.post(path `/threads/${threadID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a thread. + * + * @deprecated The Assistants API is deprecated in favor of the Responses API + */ + delete(threadID, options) { + return this._client.delete(path `/threads/${threadID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + createAndRun(body, options) { + return this._client.post('/threads/runs', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + stream: body.stream ?? false, + }); + } + /** + * A helper to create a thread, start a run and then poll for a terminal state. + * More information on Run lifecycles can be found here: + * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps + */ + async createAndRunPoll(body, options) { + const run = await this.createAndRun(body, options); + return await this.runs.poll(run.id, { thread_id: run.thread_id }, options); + } + /** + * Create a thread and stream the run back + */ + createAndRunStream(body, options) { + return AssistantStream.createThreadAssistantStream(body, this._client.beta.threads, options); + } +} +Threads.Runs = Runs; +Threads.Messages = Messages; +//# sourceMappingURL=threads.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..bbc37d5687c61485ad1d3f2abf981b655e4ba810 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/beta/threads/threads.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"threads.mjs","sourceRoot":"","sources":["../../../src/resources/beta/threads/threads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,WAAW;OAChB,EA2BL,QAAQ,GAST;OACM,KAAK,OAAO;OACZ,EAmBL,IAAI,GAEL;OAGM,EAAE,YAAY,EAAE;OAEhB,EAAE,eAAe,EAAsC;OACvD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiG1E,CAAC;IA/FC;;;;OAIG;IACH,MAAM,CAAC,OAA8C,EAAE,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE;YACnC,I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AE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7E,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAqF,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CACpB,IAA0C,EAC1C,OAAsD;QAEtD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,kBAAkB,CAAC,IAAwC,EAAE,OAAwB;QACnF,OAAO,eAAe,CAAC,2BAA2B,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF;AAknCD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..6dd405f1705272f1e703298b961805278a0b381c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts @@ -0,0 +1,2 @@ +export * from "./chat/index.mjs"; +//# sourceMappingURL=chat.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5a35eebc481c6ab2b6714e27c88ddd885c54b0ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../src/resources/chat.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b18584b494aaf03e5e5d4989f6f1d6965c658409 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts @@ -0,0 +1,2 @@ +export * from "./chat/index.js"; +//# sourceMappingURL=chat.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e04f537b0146db007ec383712a9f187c72e754d4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/resources/chat.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js new file mode 100644 index 0000000000000000000000000000000000000000..67f26ed8103bd395140556a2170ccf375d33f364 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./chat/index.js"), exports); +//# sourceMappingURL=chat.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js.map new file mode 100644 index 0000000000000000000000000000000000000000..12746a11525689003f7a4782e5550421fc64539b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.js","sourceRoot":"","sources":["../src/resources/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c02c20d7b4799d41913253f4067d4331705170b4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./chat/index.mjs"; +//# sourceMappingURL=chat.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b3501706468268f5f68ebcbffef87b20a2daecdd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../src/resources/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..7b290965ff708db29686e7e4b9aa28bc9b54cb09 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts @@ -0,0 +1,13 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as Shared from "../shared.mjs"; +import * as CompletionsAPI from "./completions/completions.mjs"; +import { ChatCompletion, ChatCompletionAllowedToolChoice, ChatCompletionAllowedTools, ChatCompletionAssistantMessageParam, ChatCompletionAudio, ChatCompletionAudioParam, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionContentPartImage, ChatCompletionContentPartInputAudio, ChatCompletionContentPartRefusal, ChatCompletionContentPartText, ChatCompletionCreateParams, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionCustomTool, ChatCompletionDeleted, ChatCompletionDeveloperMessageParam, ChatCompletionFunctionCallOption, ChatCompletionFunctionMessageParam, ChatCompletionFunctionTool, ChatCompletionListParams, ChatCompletionMessage, ChatCompletionMessageCustomToolCall, ChatCompletionMessageFunctionToolCall, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionModality, ChatCompletionNamedToolChoice, ChatCompletionNamedToolChoiceCustom, ChatCompletionPredictionContent, ChatCompletionReasoningEffort, ChatCompletionRole, ChatCompletionStoreMessage, ChatCompletionStreamOptions, ChatCompletionSystemMessageParam, ChatCompletionTokenLogprob, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUpdateParams, ChatCompletionUserMessageParam, ChatCompletionsPage, Completions } from "./completions/completions.mjs"; +export declare class Chat extends APIResource { + completions: CompletionsAPI.Completions; +} +export type ChatModel = Shared.ChatModel; +export declare namespace Chat { + export { type ChatModel as ChatModel }; + export { Completions as Completions, type ChatCompletion as ChatCompletion, type ChatCompletionAllowedToolChoice as ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionCustomTool as ChatCompletionCustomTool, type ChatCompletionDeleted as ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool as ChatCompletionFunctionTool, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom as ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStoreMessage as ChatCompletionStoreMessage, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type ChatCompletionAllowedTools as ChatCompletionAllowedTools, type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort, type ChatCompletionsPage as ChatCompletionsPage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams as ChatCompletionUpdateParams, type ChatCompletionListParams as ChatCompletionListParams, }; +} +//# sourceMappingURL=chat.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..97656a28c69d2faad729319c4d83126ac3993928 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EACL,cAAc,EACd,+BAA+B,EAC/B,0BAA0B,EAC1B,mCAAmC,EACnC,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,8BAA8B,EAC9B,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAC1B,sCAAsC,EACtC,mCAAmC,EACnC,wBAAwB,EACxB,qBAAqB,EACrB,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,mCAAmC,EACnC,qCAAqC,EACrC,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,mCAAmC,EACnC,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,kBAAkB,EAClB,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,mBAAmB,EACnB,WAAW,EACZ;AAED,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAIzC,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,CA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,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1a18dd323e510156d52731bcf57624d4c65828df --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts @@ -0,0 +1,13 @@ +import { APIResource } from "../../core/resource.js"; +import * as Shared from "../shared.js"; +import * as CompletionsAPI from "./completions/completions.js"; +import { ChatCompletion, ChatCompletionAllowedToolChoice, ChatCompletionAllowedTools, ChatCompletionAssistantMessageParam, ChatCompletionAudio, ChatCompletionAudioParam, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionContentPartImage, ChatCompletionContentPartInputAudio, ChatCompletionContentPartRefusal, ChatCompletionContentPartText, ChatCompletionCreateParams, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionCustomTool, ChatCompletionDeleted, ChatCompletionDeveloperMessageParam, ChatCompletionFunctionCallOption, ChatCompletionFunctionMessageParam, ChatCompletionFunctionTool, ChatCompletionListParams, ChatCompletionMessage, ChatCompletionMessageCustomToolCall, ChatCompletionMessageFunctionToolCall, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionModality, ChatCompletionNamedToolChoice, ChatCompletionNamedToolChoiceCustom, ChatCompletionPredictionContent, ChatCompletionReasoningEffort, ChatCompletionRole, ChatCompletionStoreMessage, ChatCompletionStreamOptions, ChatCompletionSystemMessageParam, ChatCompletionTokenLogprob, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUpdateParams, ChatCompletionUserMessageParam, ChatCompletionsPage, Completions } from "./completions/completions.js"; +export declare class Chat extends APIResource { + completions: CompletionsAPI.Completions; +} +export type ChatModel = Shared.ChatModel; +export declare namespace Chat { + export { type ChatModel as ChatModel }; + export { Completions as Completions, type ChatCompletion as ChatCompletion, type ChatCompletionAllowedToolChoice as ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionCustomTool as ChatCompletionCustomTool, type ChatCompletionDeleted as ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool as ChatCompletionFunctionTool, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom as ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStoreMessage as ChatCompletionStoreMessage, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type ChatCompletionAllowedTools as ChatCompletionAllowedTools, type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort, type ChatCompletionsPage as ChatCompletionsPage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams as ChatCompletionUpdateParams, type ChatCompletionListParams as ChatCompletionListParams, }; +} +//# sourceMappingURL=chat.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..82c2c1bae40a6208d62abf4eb65a116d6ead3f35 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EACL,cAAc,EACd,+BAA+B,EAC/B,0BAA0B,EAC1B,mCAAmC,EACnC,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,8BAA8B,EAC9B,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC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CAAmC,EAC/E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js new file mode 100644 index 0000000000000000000000000000000000000000..ee2f4aa11b64306bb4d1e856ae5bfb6dd7caed1e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js @@ -0,0 +1,17 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Chat = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const CompletionsAPI = tslib_1.__importStar(require("./completions/completions.js")); +const completions_1 = require("./completions/completions.js"); +class Chat extends resource_1.APIResource { + constructor() { + super(...arguments); + this.completions = new CompletionsAPI.Completions(this._client); + } +} +exports.Chat = Chat; +Chat.Completions = completions_1.Completions; +//# sourceMappingURL=chat.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js.map new file mode 100644 index 0000000000000000000000000000000000000000..aac6dd7d71a95231eac17eb9ecb1e0fcce23614f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,qFAA4D;AAC5D,8DA6CmC;AAEnC,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAFD,oBAEC;AAID,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a1a3c3d32b8c8ac0e9eef8e674ad212a9d89846c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as CompletionsAPI from "./completions/completions.mjs"; +import { Completions, } from "./completions/completions.mjs"; +export class Chat extends APIResource { + constructor() { + super(...arguments); + this.completions = new CompletionsAPI.Completions(this._client); + } +} +Chat.Completions = Completions; +//# sourceMappingURL=chat.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9addc8eee9f1c3f418f8f98094493d716e6ef82f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/chat.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EA4CL,WAAW,GACZ;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAID,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..97cab99b09c1f969c8d1359d49b199835f3fa029 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts @@ -0,0 +1,2 @@ +export * from "./completions/index.mjs"; +//# sourceMappingURL=completions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..4d279ddd4f4fd3cedd9e7f5c5855645be867b494 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.mts","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e05b6c7a5e6dc5991b1252d1e466b2a87bf45ee3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts @@ -0,0 +1,2 @@ +export * from "./completions/index.js"; +//# sourceMappingURL=completions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..36d007361f51f6b5d46215f22bc55ffc2349d288 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js new file mode 100644 index 0000000000000000000000000000000000000000..05994d06019491195d2794aa7ee0f6d49506bfa7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./completions/index.js"), exports); +//# sourceMappingURL=completions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..dc3724b3e2a3d27914bbffd8ace706ddd286555f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e0a0785c885775485148ed4439d350a5a8c22bfc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./completions/index.mjs"; +//# sourceMappingURL=completions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..dbb59f25aa76e36458d785c44fa93b04e8102c35 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.mjs","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..01f0c8eb85dca26c303ce27f2274136fa5aa05ca --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts @@ -0,0 +1,1624 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as CompletionsCompletionsAPI from "./completions.mjs"; +import * as CompletionsAPI from "../../completions.mjs"; +import * as Shared from "../../shared.mjs"; +import * as MessagesAPI from "./messages.mjs"; +import { MessageListParams, Messages } from "./messages.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { Stream } from "../../../core/streaming.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +import { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.mjs"; +import { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +import { RunnerOptions } from "../../../lib/AbstractChatCompletionRunner.mjs"; +import { ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner.mjs"; +import { ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +import { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream.mjs"; +import { ExtractParsedContentFromParams } from "../../../lib/parser.mjs"; +export declare class Completions extends APIResource { + messages: MessagesAPI.Messages; + /** + * **Starting a new project?** We recommend trying + * [Responses](https://platform.openai.com/docs/api-reference/responses) to take + * advantage of the latest OpenAI platform features. Compare + * [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses). + * + * --- + * + * Creates a model response for the given chat conversation. Learn more in the + * [text generation](https://platform.openai.com/docs/guides/text-generation), + * [vision](https://platform.openai.com/docs/guides/vision), and + * [audio](https://platform.openai.com/docs/guides/audio) guides. + * + * Parameter support can differ depending on the model used to generate the + * response, particularly for newer reasoning models. Parameters that are only + * supported for reasoning models are noted below. For the current state of + * unsupported parameters in reasoning models, + * [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.create( + * { + * messages: [{ content: 'string', role: 'developer' }], + * model: 'gpt-4o', + * }, + * ); + * ``` + */ + create(body: ChatCompletionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: ChatCompletionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: ChatCompletionCreateParamsBase, options?: RequestOptions): APIPromise | ChatCompletion>; + /** + * Get a stored chat completion. Only Chat Completions that have been created with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * const chatCompletion = + * await client.chat.completions.retrieve('completion_id'); + * ``` + */ + retrieve(completionID: string, options?: RequestOptions): APIPromise; + /** + * Modify a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be modified. Currently, the only + * supported modification is to update the `metadata` field. + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.update( + * 'completion_id', + * { metadata: { foo: 'string' } }, + * ); + * ``` + */ + update(completionID: string, body: ChatCompletionUpdateParams, options?: RequestOptions): APIPromise; + /** + * List stored Chat Completions. Only Chat Completions that have been stored with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletion of client.chat.completions.list()) { + * // ... + * } + * ``` + */ + list(query?: ChatCompletionListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be deleted. + * + * @example + * ```ts + * const chatCompletionDeleted = + * await client.chat.completions.delete('completion_id'); + * ``` + */ + delete(completionID: string, options?: RequestOptions): APIPromise; + parse>(body: Params, options?: RequestOptions): APIPromise>; + /** + * A convenience helper for using tool calls with the /chat/completions endpoint + * which automatically calls the JavaScript functions you provide and sends their + * results back to the /chat/completions endpoint, looping as long as the model + * requests function calls. + * + * For more details and examples, see + * [the docs](https://github.com/openai/openai-node#automated-function-calls) + */ + runTools, ParsedT = ExtractParsedContentFromParams>(body: Params, options?: RunnerOptions): ChatCompletionRunner; + runTools, ParsedT = ExtractParsedContentFromParams>(body: Params, options?: RunnerOptions): ChatCompletionStreamingRunner; + /** + * Creates a chat completion stream + */ + stream>(body: Params, options?: RequestOptions): ChatCompletionStream; +} +export interface ParsedFunction extends ChatCompletionMessageFunctionToolCall.Function { + parsed_arguments?: unknown; +} +export interface ParsedFunctionToolCall extends ChatCompletionMessageFunctionToolCall { + function: ParsedFunction; +} +export interface ParsedChatCompletionMessage extends ChatCompletionMessage { + parsed: ParsedT | null; + tool_calls?: Array; +} +export interface ParsedChoice extends ChatCompletion.Choice { + message: ParsedChatCompletionMessage; +} +export interface ParsedChatCompletion extends ChatCompletion { + choices: Array>; +} +export type ChatCompletionParseParams = ChatCompletionCreateParamsNonStreaming; +export { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +export { type RunnableFunctionWithParse, type RunnableFunctionWithoutParse, ParsingToolFunction, } from "../../../lib/RunnableFunction.mjs"; +export { type ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner.mjs"; +export { type ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +export { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream.mjs"; +export { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.mjs"; +export type ChatCompletionsPage = CursorPage; +export type ChatCompletionStoreMessagesPage = CursorPage; +/** + * Represents a chat completion response returned by model, based on the provided + * input. + */ +export interface ChatCompletion { + /** + * A unique identifier for the chat completion. + */ + id: string; + /** + * A list of chat completion choices. Can be more than one if `n` is greater + * than 1. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. + */ + created: number; + /** + * The model used for the chat completion. + */ + model: string; + /** + * The object type, which is always `chat.completion`. + */ + object: 'chat.completion'; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * @deprecated This fingerprint represents the backend configuration that the model + * runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * Usage statistics for the completion request. + */ + usage?: CompletionsAPI.CompletionUsage; +} +export declare namespace ChatCompletion { + interface Choice { + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, `tool_calls` if the + * model called a tool, or `function_call` (deprecated) if the model called a + * function. + */ + finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call'; + /** + * The index of the choice in the list of choices. + */ + index: number; + /** + * Log probability information for the choice. + */ + logprobs: Choice.Logprobs | null; + /** + * A chat completion message generated by the model. + */ + message: CompletionsCompletionsAPI.ChatCompletionMessage; + } + namespace Choice { + /** + * Log probability information for the choice. + */ + interface Logprobs { + /** + * A list of message content tokens with log probability information. + */ + content: Array | null; + /** + * A list of message refusal tokens with log probability information. + */ + refusal: Array | null; + } + } +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ChatCompletionAllowedToolChoice { + /** + * Constrains the tools available to the model to a pre-defined set. + */ + allowed_tools: ChatCompletionAllowedTools; + /** + * Allowed tool configuration type. Always `allowed_tools`. + */ + type: 'allowed_tools'; +} +/** + * Messages sent by the model in response to user messages. + */ +export interface ChatCompletionAssistantMessageParam { + /** + * The role of the messages author, in this case `assistant`. + */ + role: 'assistant'; + /** + * Data about a previous audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAssistantMessageParam.Audio | null; + /** + * The contents of the assistant message. Required unless `tool_calls` or + * `function_call` is specified. + */ + content?: string | Array | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: ChatCompletionAssistantMessageParam.FunctionCall | null; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; + /** + * The refusal message by the assistant. + */ + refusal?: string | null; + /** + * The tool calls generated by the model, such as function calls. + */ + tool_calls?: Array; +} +export declare namespace ChatCompletionAssistantMessageParam { + /** + * Data about a previous audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + interface Audio { + /** + * Unique identifier for a previous audio response from the model. + */ + id: string; + } + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * If the audio output modality is requested, this object contains data about the + * audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionAudio { + /** + * Unique identifier for this audio response. + */ + id: string; + /** + * Base64 encoded audio bytes generated by the model, in the format specified in + * the request. + */ + data: string; + /** + * The Unix timestamp (in seconds) for when this audio response will no longer be + * accessible on the server for use in multi-turn conversations. + */ + expires_at: number; + /** + * Transcript of the audio generated by the model. + */ + transcript: string; +} +/** + * Parameters for audio output. Required when audio output is requested with + * `modalities: ["audio"]`. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionAudioParam { + /** + * Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`, + * or `pcm16`. + */ + format: 'wav' | 'aac' | 'mp3' | 'flac' | 'opus' | 'pcm16'; + /** + * The voice the model uses to respond. Supported voices are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`. + */ + voice: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +/** + * Represents a streamed chunk of a chat completion response returned by the model, + * based on the provided input. + * [Learn more](https://platform.openai.com/docs/guides/streaming-responses). + */ +export interface ChatCompletionChunk { + /** + * A unique identifier for the chat completion. Each chunk has the same ID. + */ + id: string; + /** + * A list of chat completion choices. Can contain more than one elements if `n` is + * greater than 1. Can also be empty for the last chunk if you set + * `stream_options: {"include_usage": true}`. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. Each + * chunk has the same timestamp. + */ + created: number; + /** + * The model to generate the completion. + */ + model: string; + /** + * The object type, which is always `chat.completion.chunk`. + */ + object: 'chat.completion.chunk'; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * @deprecated This fingerprint represents the backend configuration that the model + * runs with. Can be used in conjunction with the `seed` request parameter to + * understand when backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * An optional field that will only be present when you set + * `stream_options: {"include_usage": true}` in your request. When present, it + * contains a null value **except for the last chunk** which contains the token + * usage statistics for the entire request. + * + * **NOTE:** If the stream is interrupted or cancelled, you may not receive the + * final usage chunk which contains the total token usage for the request. + */ + usage?: CompletionsAPI.CompletionUsage | null; +} +export declare namespace ChatCompletionChunk { + interface Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + delta: Choice.Delta; + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, `tool_calls` if the + * model called a tool, or `function_call` (deprecated) if the model called a + * function. + */ + finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call' | null; + /** + * The index of the choice in the list of choices. + */ + index: number; + /** + * Log probability information for the choice. + */ + logprobs?: Choice.Logprobs | null; + } + namespace Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + interface Delta { + /** + * The contents of the chunk message. + */ + content?: string | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: Delta.FunctionCall; + /** + * The refusal message generated by the model. + */ + refusal?: string | null; + /** + * The role of the author of this message. + */ + role?: 'developer' | 'system' | 'user' | 'assistant' | 'tool'; + tool_calls?: Array; + } + namespace Delta { + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + interface ToolCall { + index: number; + /** + * The ID of the tool call. + */ + id?: string; + function?: ToolCall.Function; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type?: 'function'; + } + namespace ToolCall { + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + } + } + /** + * Log probability information for the choice. + */ + interface Logprobs { + /** + * A list of message content tokens with log probability information. + */ + content: Array | null; + /** + * A list of message refusal tokens with log probability information. + */ + refusal: Array | null; + } + } +} +/** + * Learn about + * [text inputs](https://platform.openai.com/docs/guides/text-generation). + */ +export type ChatCompletionContentPart = ChatCompletionContentPartText | ChatCompletionContentPartImage | ChatCompletionContentPartInputAudio | ChatCompletionContentPart.File; +export declare namespace ChatCompletionContentPart { + /** + * Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text + * generation. + */ + interface File { + file: File.File; + /** + * The type of the content part. Always `file`. + */ + type: 'file'; + } + namespace File { + interface File { + /** + * The base64 encoded file data, used when passing the file to the model as a + * string. + */ + file_data?: string; + /** + * The ID of an uploaded file to use as input. + */ + file_id?: string; + /** + * The name of the file, used when passing the file to the model as a string. + */ + filename?: string; + } + } +} +/** + * Learn about [image inputs](https://platform.openai.com/docs/guides/vision). + */ +export interface ChatCompletionContentPartImage { + image_url: ChatCompletionContentPartImage.ImageURL; + /** + * The type of the content part. + */ + type: 'image_url'; +} +export declare namespace ChatCompletionContentPartImage { + interface ImageURL { + /** + * Either a URL of the image or the base64 encoded image data. + */ + url: string; + /** + * Specifies the detail level of the image. Learn more in the + * [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding). + */ + detail?: 'auto' | 'low' | 'high'; + } +} +/** + * Learn about [audio inputs](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionContentPartInputAudio { + input_audio: ChatCompletionContentPartInputAudio.InputAudio; + /** + * The type of the content part. Always `input_audio`. + */ + type: 'input_audio'; +} +export declare namespace ChatCompletionContentPartInputAudio { + interface InputAudio { + /** + * Base64 encoded audio data. + */ + data: string; + /** + * The format of the encoded audio data. Currently supports "wav" and "mp3". + */ + format: 'wav' | 'mp3'; + } +} +export interface ChatCompletionContentPartRefusal { + /** + * The refusal message generated by the model. + */ + refusal: string; + /** + * The type of the content part. + */ + type: 'refusal'; +} +/** + * Learn about + * [text inputs](https://platform.openai.com/docs/guides/text-generation). + */ +export interface ChatCompletionContentPartText { + /** + * The text content. + */ + text: string; + /** + * The type of the content part. + */ + type: 'text'; +} +/** + * A custom tool that processes input using a specified format. + */ +export interface ChatCompletionCustomTool { + /** + * Properties of the custom tool. + */ + custom: ChatCompletionCustomTool.Custom; + /** + * The type of the custom tool. Always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionCustomTool { + /** + * Properties of the custom tool. + */ + interface Custom { + /** + * The name of the custom tool, used to identify it in tool calls. + */ + name: string; + /** + * Optional description of the custom tool, used to provide more context. + */ + description?: string; + /** + * The input format for the custom tool. Default is unconstrained text. + */ + format?: Custom.Text | Custom.Grammar; + } + namespace Custom { + /** + * Unconstrained free-form text. + */ + interface Text { + /** + * Unconstrained text format. Always `text`. + */ + type: 'text'; + } + /** + * A grammar defined by the user. + */ + interface Grammar { + /** + * Your chosen grammar. + */ + grammar: Grammar.Grammar; + /** + * Grammar format. Always `grammar`. + */ + type: 'grammar'; + } + namespace Grammar { + /** + * Your chosen grammar. + */ + interface Grammar { + /** + * The grammar definition. + */ + definition: string; + /** + * The syntax of the grammar definition. One of `lark` or `regex`. + */ + syntax: 'lark' | 'regex'; + } + } + } +} +export interface ChatCompletionDeleted { + /** + * The ID of the chat completion that was deleted. + */ + id: string; + /** + * Whether the chat completion was deleted. + */ + deleted: boolean; + /** + * The type of object being deleted. + */ + object: 'chat.completion.deleted'; +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, `developer` messages + * replace the previous `system` messages. + */ +export interface ChatCompletionDeveloperMessageParam { + /** + * The contents of the developer message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `developer`. + */ + role: 'developer'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +/** + * Specifying a particular function via `{"name": "my_function"}` forces the model + * to call that function. + */ +export interface ChatCompletionFunctionCallOption { + /** + * The name of the function to call. + */ + name: string; +} +/** + * @deprecated + */ +export interface ChatCompletionFunctionMessageParam { + /** + * The contents of the function message. + */ + content: string | null; + /** + * The name of the function to call. + */ + name: string; + /** + * The role of the messages author, in this case `function`. + */ + role: 'function'; +} +/** + * A function tool that can be used to generate a response. + */ +export interface ChatCompletionFunctionTool { + function: Shared.FunctionDefinition; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type: 'function'; +} +/** + * A chat completion message generated by the model. + */ +export interface ChatCompletionMessage { + /** + * The contents of the message. + */ + content: string | null; + /** + * The refusal message generated by the model. + */ + refusal: string | null; + /** + * The role of the author of this message. + */ + role: 'assistant'; + /** + * Annotations for the message, when applicable, as when using the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + annotations?: Array; + /** + * If the audio output modality is requested, this object contains data about the + * audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAudio | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: ChatCompletionMessage.FunctionCall | null; + /** + * The tool calls generated by the model, such as function calls. + */ + tool_calls?: Array; +} +export declare namespace ChatCompletionMessage { + /** + * A URL citation when using web search. + */ + interface Annotation { + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * A URL citation when using web search. + */ + url_citation: Annotation.URLCitation; + } + namespace Annotation { + /** + * A URL citation when using web search. + */ + interface URLCitation { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The URL of the web resource. + */ + url: string; + } + } + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * A call to a custom tool created by the model. + */ +export interface ChatCompletionMessageCustomToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The custom tool that the model called. + */ + custom: ChatCompletionMessageCustomToolCall.Custom; + /** + * The type of the tool. Always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionMessageCustomToolCall { + /** + * The custom tool that the model called. + */ + interface Custom { + /** + * The input for the custom tool call generated by the model. + */ + input: string; + /** + * The name of the custom tool to call. + */ + name: string; + } +} +/** + * A call to a function tool created by the model. + */ +export interface ChatCompletionMessageFunctionToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The function that the model called. + */ + function: ChatCompletionMessageFunctionToolCall.Function; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type: 'function'; +} +export declare namespace ChatCompletionMessageFunctionToolCall { + /** + * The function that the model called. + */ + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, `developer` messages + * replace the previous `system` messages. + */ +export type ChatCompletionMessageParam = ChatCompletionDeveloperMessageParam | ChatCompletionSystemMessageParam | ChatCompletionUserMessageParam | ChatCompletionAssistantMessageParam | ChatCompletionToolMessageParam | ChatCompletionFunctionMessageParam; +/** + * A call to a function tool created by the model. + */ +export type ChatCompletionMessageToolCall = ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall; +export type ChatCompletionModality = 'text' | 'audio'; +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * function. + */ +export interface ChatCompletionNamedToolChoice { + function: ChatCompletionNamedToolChoice.Function; + /** + * For function calling, the type is always `function`. + */ + type: 'function'; +} +export declare namespace ChatCompletionNamedToolChoice { + interface Function { + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * custom tool. + */ +export interface ChatCompletionNamedToolChoiceCustom { + custom: ChatCompletionNamedToolChoiceCustom.Custom; + /** + * For custom tool calling, the type is always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionNamedToolChoiceCustom { + interface Custom { + /** + * The name of the custom tool to call. + */ + name: string; + } +} +/** + * Static predicted output content, such as the content of a text file that is + * being regenerated. + */ +export interface ChatCompletionPredictionContent { + /** + * The content that should be matched when generating a model response. If + * generated tokens would match this content, the entire model response can be + * returned much more quickly. + */ + content: string | Array; + /** + * The type of the predicted content you want to provide. This type is currently + * always `content`. + */ + type: 'content'; +} +/** + * The role of the author of a message + */ +export type ChatCompletionRole = 'developer' | 'system' | 'user' | 'assistant' | 'tool' | 'function'; +/** + * A chat completion message generated by the model. + */ +export interface ChatCompletionStoreMessage extends ChatCompletionMessage { + /** + * The identifier of the chat message. + */ + id: string; + /** + * If a content parts array was provided, this is an array of `text` and + * `image_url` parts. Otherwise, null. + */ + content_parts?: Array | null; +} +/** + * Options for streaming response. Only set this when you set `stream: true`. + */ +export interface ChatCompletionStreamOptions { + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + /** + * If set, an additional chunk will be streamed before the `data: [DONE]` message. + * The `usage` field on this chunk shows the token usage statistics for the entire + * request, and the `choices` field will always be an empty array. + * + * All other chunks will also include a `usage` field, but with a null value. + * **NOTE:** If the stream is interrupted, you may not receive the final usage + * chunk which contains the total token usage for the request. + */ + include_usage?: boolean; +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, use `developer` messages + * for this purpose instead. + */ +export interface ChatCompletionSystemMessageParam { + /** + * The contents of the system message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `system`. + */ + role: 'system'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +export interface ChatCompletionTokenLogprob { + /** + * The token. + */ + token: string; + /** + * A list of integers representing the UTF-8 bytes representation of the token. + * Useful in instances where characters are represented by multiple tokens and + * their byte representations must be combined to generate the correct text + * representation. Can be `null` if there is no bytes representation for the token. + */ + bytes: Array | null; + /** + * The log probability of this token, if it is within the top 20 most likely + * tokens. Otherwise, the value `-9999.0` is used to signify that the token is very + * unlikely. + */ + logprob: number; + /** + * List of the most likely tokens and their log probability, at this token + * position. In rare cases, there may be fewer than the number of requested + * `top_logprobs` returned. + */ + top_logprobs: Array; +} +export declare namespace ChatCompletionTokenLogprob { + interface TopLogprob { + /** + * The token. + */ + token: string; + /** + * A list of integers representing the UTF-8 bytes representation of the token. + * Useful in instances where characters are represented by multiple tokens and + * their byte representations must be combined to generate the correct text + * representation. Can be `null` if there is no bytes representation for the token. + */ + bytes: Array | null; + /** + * The log probability of this token, if it is within the top 20 most likely + * tokens. Otherwise, the value `-9999.0` is used to signify that the token is very + * unlikely. + */ + logprob: number; + } +} +/** + * A function tool that can be used to generate a response. + */ +export type ChatCompletionTool = ChatCompletionFunctionTool | ChatCompletionCustomTool; +/** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tool and instead generates a message. `auto` means the model can + * pick between generating a message or calling one or more tools. `required` means + * the model must call one or more tools. Specifying a particular tool via + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + * + * `none` is the default when no tools are present. `auto` is the default if tools + * are present. + */ +export type ChatCompletionToolChoiceOption = 'none' | 'auto' | 'required' | ChatCompletionAllowedToolChoice | ChatCompletionNamedToolChoice | ChatCompletionNamedToolChoiceCustom; +export interface ChatCompletionToolMessageParam { + /** + * The contents of the tool message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `tool`. + */ + role: 'tool'; + /** + * Tool call that this message is responding to. + */ + tool_call_id: string; +} +/** + * Messages sent by an end user, containing prompts or additional context + * information. + */ +export interface ChatCompletionUserMessageParam { + /** + * The contents of the user message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `user`. + */ + role: 'user'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ChatCompletionAllowedTools { + /** + * Constrains the tools available to the model to a pre-defined set. + * + * `auto` allows the model to pick from among the allowed tools and generate a + * message. + * + * `required` requires the model to call one or more of the allowed tools. + */ + mode: 'auto' | 'required'; + /** + * A list of tool definitions that the model should be allowed to call. + * + * For the Chat Completions API, the list of tool definitions might look like: + * + * ```json + * [ + * { "type": "function", "function": { "name": "get_weather" } }, + * { "type": "function", "function": { "name": "get_time" } } + * ] + * ``` + */ + tools: Array<{ + [key: string]: unknown; + }>; +} +export type ChatCompletionReasoningEffort = Shared.ReasoningEffort | null; +export type ChatCompletionCreateParams = ChatCompletionCreateParamsNonStreaming | ChatCompletionCreateParamsStreaming; +export interface ChatCompletionCreateParamsBase { + /** + * A list of messages comprising the conversation so far. Depending on the + * [model](https://platform.openai.com/docs/models) you use, different message + * types (modalities) are supported, like + * [text](https://platform.openai.com/docs/guides/text-generation), + * [images](https://platform.openai.com/docs/guides/vision), and + * [audio](https://platform.openai.com/docs/guides/audio). + */ + messages: Array; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model: (string & {}) | Shared.ChatModel; + /** + * Parameters for audio output. Required when audio output is requested with + * `modalities: ["audio"]`. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAudioParam | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on their + * existing frequency in the text so far, decreasing the model's likelihood to + * repeat the same line verbatim. + */ + frequency_penalty?: number | null; + /** + * @deprecated Deprecated in favor of `tool_choice`. + * + * Controls which (if any) function is called by the model. + * + * `none` means the model will not call a function and instead generates a message. + * + * `auto` means the model can pick between generating a message or calling a + * function. + * + * Specifying a particular function via `{"name": "my_function"}` forces the model + * to call that function. + * + * `none` is the default when no functions are present. `auto` is the default if + * functions are present. + */ + function_call?: 'none' | 'auto' | ChatCompletionFunctionCallOption; + /** + * @deprecated Deprecated in favor of `tools`. + * + * A list of functions the model may generate JSON inputs for. + */ + functions?: Array; + /** + * Modify the likelihood of specified tokens appearing in the completion. + * + * Accepts a JSON object that maps tokens (specified by their token ID in the + * tokenizer) to an associated bias value from -100 to 100. Mathematically, the + * bias is added to the logits generated by the model prior to sampling. The exact + * effect will vary per model, but values between -1 and 1 should decrease or + * increase likelihood of selection; values like -100 or 100 should result in a ban + * or exclusive selection of the relevant token. + */ + logit_bias?: { + [key: string]: number; + } | null; + /** + * Whether to return log probabilities of the output tokens or not. If true, + * returns the log probabilities of each output token returned in the `content` of + * `message`. + */ + logprobs?: boolean | null; + /** + * An upper bound for the number of tokens that can be generated for a completion, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_completion_tokens?: number | null; + /** + * @deprecated The maximum number of [tokens](/tokenizer) that can be generated in + * the chat completion. This value can be used to control + * [costs](https://openai.com/api/pricing/) for text generated via API. + * + * This value is now deprecated in favor of `max_completion_tokens`, and is not + * compatible with + * [o-series models](https://platform.openai.com/docs/guides/reasoning). + */ + max_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Output types that you would like the model to generate. Most models are capable + * of generating text, which is the default: + * + * `["text"]` + * + * The `gpt-4o-audio-preview` model can also be used to + * [generate audio](https://platform.openai.com/docs/guides/audio). To request that + * this model generate both text and audio responses, you can use: + * + * `["text", "audio"]` + */ + modalities?: Array<'text' | 'audio'> | null; + /** + * How many chat completion choices to generate for each input message. Note that + * you will be charged based on the number of generated tokens across all of the + * choices. Keep `n` as `1` to minimize costs. + */ + n?: number | null; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Static predicted output content, such as the content of a text file that is + * being regenerated. + */ + prediction?: ChatCompletionPredictionContent | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on + * whether they appear in the text so far, increasing the model's likelihood to + * talk about new topics. + */ + presence_penalty?: number | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * An object specifying the format that the model must output. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + response_format?: Shared.ResponseFormatText | Shared.ResponseFormatJSONSchema | Shared.ResponseFormatJSONObject; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * @deprecated This feature is in Beta. If specified, our system will make a best + * effort to sample deterministically, such that repeated requests with the same + * `seed` and parameters should return the same result. Determinism is not + * guaranteed, and you should refer to the `system_fingerprint` response parameter + * to monitor changes in the backend. + */ + seed?: number | null; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * Not supported with latest reasoning models `o3` and `o4-mini`. + * + * Up to 4 sequences where the API will stop generating further tokens. The + * returned text will not contain the stop sequence. + */ + stop?: string | null | Array; + /** + * Whether or not to store the output of this chat completion request for use in + * our [model distillation](https://platform.openai.com/docs/guides/distillation) + * or [evals](https://platform.openai.com/docs/guides/evals) products. + * + * Supports text and image inputs. Note: image inputs over 8MB will be dropped. + */ + store?: boolean | null; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream?: boolean | null; + /** + * Options for streaming response. Only set this when you set `stream: true`. + */ + stream_options?: ChatCompletionStreamOptions | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature?: number | null; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tool and instead generates a message. `auto` means the model can + * pick between generating a message or calling one or more tools. `required` means + * the model must call one or more tools. Specifying a particular tool via + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + * + * `none` is the default when no tools are present. `auto` is the default if tools + * are present. + */ + tool_choice?: ChatCompletionToolChoiceOption; + /** + * A list of tools the model may call. You can provide either + * [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) + * or [function tools](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An integer between 0 and 20 specifying the number of most likely tokens to + * return at each token position, each with an associated log probability. + * `logprobs` must be set to `true` if this parameter is used. + */ + top_logprobs?: number | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; + /** + * Constrains the verbosity of the model's response. Lower values will result in + * more concise responses, while higher values will result in more verbose + * responses. Currently supported values are `low`, `medium`, and `high`. + */ + verbosity?: 'low' | 'medium' | 'high' | null; + /** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + web_search_options?: ChatCompletionCreateParams.WebSearchOptions; +} +export declare namespace ChatCompletionCreateParams { + /** + * @deprecated + */ + interface Function { + /** + * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain + * underscores and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the function does, used by the model to choose when and + * how to call the function. + */ + description?: string; + /** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ + parameters?: Shared.FunctionParameters; + } + /** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + interface WebSearchOptions { + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * Approximate location parameters for the search. + */ + user_location?: WebSearchOptions.UserLocation | null; + } + namespace WebSearchOptions { + /** + * Approximate location parameters for the search. + */ + interface UserLocation { + /** + * Approximate location parameters for the search. + */ + approximate: UserLocation.Approximate; + /** + * The type of location approximation. Always `approximate`. + */ + type: 'approximate'; + } + namespace UserLocation { + /** + * Approximate location parameters for the search. + */ + interface Approximate { + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string; + } + } + } + type ChatCompletionCreateParamsNonStreaming = CompletionsCompletionsAPI.ChatCompletionCreateParamsNonStreaming; + type ChatCompletionCreateParamsStreaming = CompletionsCompletionsAPI.ChatCompletionCreateParamsStreaming; +} +export interface ChatCompletionCreateParamsNonStreaming extends ChatCompletionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream?: false | null; +} +export interface ChatCompletionCreateParamsStreaming extends ChatCompletionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream: true; +} +export interface ChatCompletionUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; +} +export interface ChatCompletionListParams extends CursorPageParams { + /** + * A list of metadata keys to filter the Chat Completions by. Example: + * + * `metadata[key1]=value1&metadata[key2]=value2` + */ + metadata?: Shared.Metadata | null; + /** + * The model used to generate the Chat Completions. + */ + model?: string; + /** + * Sort order for Chat Completions by timestamp. Use `asc` for ascending order or + * `desc` for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Completions { + export { type ChatCompletion as ChatCompletion, type ChatCompletionAllowedToolChoice as ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionCustomTool as ChatCompletionCustomTool, type ChatCompletionDeleted as ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool as ChatCompletionFunctionTool, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom as ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStoreMessage as ChatCompletionStoreMessage, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type ChatCompletionAllowedTools as ChatCompletionAllowedTools, type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort, type ChatCompletionsPage as ChatCompletionsPage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams as ChatCompletionUpdateParams, type ChatCompletionListParams as ChatCompletionListParams, }; + export { Messages as Messages, type MessageListParams as MessageListParams }; +} +//# sourceMappingURL=completions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..fbc95fab1315136a9990fe002e506515c40cf5f9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.mts","sourceRoot":"","sources":["../../../src/resources/chat/completions/completions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,yBAAyB;OAC9B,KAAK,cAAc;OACnB,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE,QAAQ,EAAE;OAC/B,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;OAGlB,EAAE,oBAAoB,EAAE;OACxB,EAAE,6BAA6B,EAAE;OACjC,EAAE,aAAa,EAAE;OACjB,EAAE,8BAA8B,EAAE;OAClC,EAAE,uCAAuC,EAAE;OAC3C,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACzD,EAAE,8BAA8B,EAA2C;AAElF,qBAAa,WAAY,SAAQ,WAAW;IAC1C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,IAAI,EAAE,sCAAsC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAC1G,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC1C,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,GAAG,cAAc,CAAC;IAU3D;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAIpF;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YA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,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC9E"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9b93c07ffa983f6d4c5547a62767ded764a7840c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts @@ -0,0 +1,1624 @@ +import { APIResource } from "../../../core/resource.js"; +import * as CompletionsCompletionsAPI from "./completions.js"; +import * as CompletionsAPI from "../../completions.js"; +import * as Shared from "../../shared.js"; +import * as MessagesAPI from "./messages.js"; +import { MessageListParams, Messages } from "./messages.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { Stream } from "../../../core/streaming.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +import { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.js"; +import { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.js"; +import { RunnerOptions } from "../../../lib/AbstractChatCompletionRunner.js"; +import { ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner.js"; +import { ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner.js"; +import { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream.js"; +import { ExtractParsedContentFromParams } from "../../../lib/parser.js"; +export declare class Completions extends APIResource { + messages: MessagesAPI.Messages; + /** + * **Starting a new project?** We recommend trying + * [Responses](https://platform.openai.com/docs/api-reference/responses) to take + * advantage of the latest OpenAI platform features. Compare + * [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses). + * + * --- + * + * Creates a model response for the given chat conversation. Learn more in the + * [text generation](https://platform.openai.com/docs/guides/text-generation), + * [vision](https://platform.openai.com/docs/guides/vision), and + * [audio](https://platform.openai.com/docs/guides/audio) guides. + * + * Parameter support can differ depending on the model used to generate the + * response, particularly for newer reasoning models. Parameters that are only + * supported for reasoning models are noted below. For the current state of + * unsupported parameters in reasoning models, + * [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.create( + * { + * messages: [{ content: 'string', role: 'developer' }], + * model: 'gpt-4o', + * }, + * ); + * ``` + */ + create(body: ChatCompletionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: ChatCompletionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: ChatCompletionCreateParamsBase, options?: RequestOptions): APIPromise | ChatCompletion>; + /** + * Get a stored chat completion. Only Chat Completions that have been created with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * const chatCompletion = + * await client.chat.completions.retrieve('completion_id'); + * ``` + */ + retrieve(completionID: string, options?: RequestOptions): APIPromise; + /** + * Modify a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be modified. Currently, the only + * supported modification is to update the `metadata` field. + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.update( + * 'completion_id', + * { metadata: { foo: 'string' } }, + * ); + * ``` + */ + update(completionID: string, body: ChatCompletionUpdateParams, options?: RequestOptions): APIPromise; + /** + * List stored Chat Completions. Only Chat Completions that have been stored with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletion of client.chat.completions.list()) { + * // ... + * } + * ``` + */ + list(query?: ChatCompletionListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be deleted. + * + * @example + * ```ts + * const chatCompletionDeleted = + * await client.chat.completions.delete('completion_id'); + * ``` + */ + delete(completionID: string, options?: RequestOptions): APIPromise; + parse>(body: Params, options?: RequestOptions): APIPromise>; + /** + * A convenience helper for using tool calls with the /chat/completions endpoint + * which automatically calls the JavaScript functions you provide and sends their + * results back to the /chat/completions endpoint, looping as long as the model + * requests function calls. + * + * For more details and examples, see + * [the docs](https://github.com/openai/openai-node#automated-function-calls) + */ + runTools, ParsedT = ExtractParsedContentFromParams>(body: Params, options?: RunnerOptions): ChatCompletionRunner; + runTools, ParsedT = ExtractParsedContentFromParams>(body: Params, options?: RunnerOptions): ChatCompletionStreamingRunner; + /** + * Creates a chat completion stream + */ + stream>(body: Params, options?: RequestOptions): ChatCompletionStream; +} +export interface ParsedFunction extends ChatCompletionMessageFunctionToolCall.Function { + parsed_arguments?: unknown; +} +export interface ParsedFunctionToolCall extends ChatCompletionMessageFunctionToolCall { + function: ParsedFunction; +} +export interface ParsedChatCompletionMessage extends ChatCompletionMessage { + parsed: ParsedT | null; + tool_calls?: Array; +} +export interface ParsedChoice extends ChatCompletion.Choice { + message: ParsedChatCompletionMessage; +} +export interface ParsedChatCompletion extends ChatCompletion { + choices: Array>; +} +export type ChatCompletionParseParams = ChatCompletionCreateParamsNonStreaming; +export { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.js"; +export { type RunnableFunctionWithParse, type RunnableFunctionWithoutParse, ParsingToolFunction, } from "../../../lib/RunnableFunction.js"; +export { type ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner.js"; +export { type ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner.js"; +export { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream.js"; +export { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.js"; +export type ChatCompletionsPage = CursorPage; +export type ChatCompletionStoreMessagesPage = CursorPage; +/** + * Represents a chat completion response returned by model, based on the provided + * input. + */ +export interface ChatCompletion { + /** + * A unique identifier for the chat completion. + */ + id: string; + /** + * A list of chat completion choices. Can be more than one if `n` is greater + * than 1. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. + */ + created: number; + /** + * The model used for the chat completion. + */ + model: string; + /** + * The object type, which is always `chat.completion`. + */ + object: 'chat.completion'; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * @deprecated This fingerprint represents the backend configuration that the model + * runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * Usage statistics for the completion request. + */ + usage?: CompletionsAPI.CompletionUsage; +} +export declare namespace ChatCompletion { + interface Choice { + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, `tool_calls` if the + * model called a tool, or `function_call` (deprecated) if the model called a + * function. + */ + finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call'; + /** + * The index of the choice in the list of choices. + */ + index: number; + /** + * Log probability information for the choice. + */ + logprobs: Choice.Logprobs | null; + /** + * A chat completion message generated by the model. + */ + message: CompletionsCompletionsAPI.ChatCompletionMessage; + } + namespace Choice { + /** + * Log probability information for the choice. + */ + interface Logprobs { + /** + * A list of message content tokens with log probability information. + */ + content: Array | null; + /** + * A list of message refusal tokens with log probability information. + */ + refusal: Array | null; + } + } +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ChatCompletionAllowedToolChoice { + /** + * Constrains the tools available to the model to a pre-defined set. + */ + allowed_tools: ChatCompletionAllowedTools; + /** + * Allowed tool configuration type. Always `allowed_tools`. + */ + type: 'allowed_tools'; +} +/** + * Messages sent by the model in response to user messages. + */ +export interface ChatCompletionAssistantMessageParam { + /** + * The role of the messages author, in this case `assistant`. + */ + role: 'assistant'; + /** + * Data about a previous audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAssistantMessageParam.Audio | null; + /** + * The contents of the assistant message. Required unless `tool_calls` or + * `function_call` is specified. + */ + content?: string | Array | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: ChatCompletionAssistantMessageParam.FunctionCall | null; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; + /** + * The refusal message by the assistant. + */ + refusal?: string | null; + /** + * The tool calls generated by the model, such as function calls. + */ + tool_calls?: Array; +} +export declare namespace ChatCompletionAssistantMessageParam { + /** + * Data about a previous audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + interface Audio { + /** + * Unique identifier for a previous audio response from the model. + */ + id: string; + } + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * If the audio output modality is requested, this object contains data about the + * audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionAudio { + /** + * Unique identifier for this audio response. + */ + id: string; + /** + * Base64 encoded audio bytes generated by the model, in the format specified in + * the request. + */ + data: string; + /** + * The Unix timestamp (in seconds) for when this audio response will no longer be + * accessible on the server for use in multi-turn conversations. + */ + expires_at: number; + /** + * Transcript of the audio generated by the model. + */ + transcript: string; +} +/** + * Parameters for audio output. Required when audio output is requested with + * `modalities: ["audio"]`. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionAudioParam { + /** + * Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`, + * or `pcm16`. + */ + format: 'wav' | 'aac' | 'mp3' | 'flac' | 'opus' | 'pcm16'; + /** + * The voice the model uses to respond. Supported voices are `alloy`, `ash`, + * `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`. + */ + voice: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse'; +} +/** + * Represents a streamed chunk of a chat completion response returned by the model, + * based on the provided input. + * [Learn more](https://platform.openai.com/docs/guides/streaming-responses). + */ +export interface ChatCompletionChunk { + /** + * A unique identifier for the chat completion. Each chunk has the same ID. + */ + id: string; + /** + * A list of chat completion choices. Can contain more than one elements if `n` is + * greater than 1. Can also be empty for the last chunk if you set + * `stream_options: {"include_usage": true}`. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the chat completion was created. Each + * chunk has the same timestamp. + */ + created: number; + /** + * The model to generate the completion. + */ + model: string; + /** + * The object type, which is always `chat.completion.chunk`. + */ + object: 'chat.completion.chunk'; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * @deprecated This fingerprint represents the backend configuration that the model + * runs with. Can be used in conjunction with the `seed` request parameter to + * understand when backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * An optional field that will only be present when you set + * `stream_options: {"include_usage": true}` in your request. When present, it + * contains a null value **except for the last chunk** which contains the token + * usage statistics for the entire request. + * + * **NOTE:** If the stream is interrupted or cancelled, you may not receive the + * final usage chunk which contains the total token usage for the request. + */ + usage?: CompletionsAPI.CompletionUsage | null; +} +export declare namespace ChatCompletionChunk { + interface Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + delta: Choice.Delta; + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, `tool_calls` if the + * model called a tool, or `function_call` (deprecated) if the model called a + * function. + */ + finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call' | null; + /** + * The index of the choice in the list of choices. + */ + index: number; + /** + * Log probability information for the choice. + */ + logprobs?: Choice.Logprobs | null; + } + namespace Choice { + /** + * A chat completion delta generated by streamed model responses. + */ + interface Delta { + /** + * The contents of the chunk message. + */ + content?: string | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: Delta.FunctionCall; + /** + * The refusal message generated by the model. + */ + refusal?: string | null; + /** + * The role of the author of this message. + */ + role?: 'developer' | 'system' | 'user' | 'assistant' | 'tool'; + tool_calls?: Array; + } + namespace Delta { + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + interface ToolCall { + index: number; + /** + * The ID of the tool call. + */ + id?: string; + function?: ToolCall.Function; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type?: 'function'; + } + namespace ToolCall { + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments?: string; + /** + * The name of the function to call. + */ + name?: string; + } + } + } + /** + * Log probability information for the choice. + */ + interface Logprobs { + /** + * A list of message content tokens with log probability information. + */ + content: Array | null; + /** + * A list of message refusal tokens with log probability information. + */ + refusal: Array | null; + } + } +} +/** + * Learn about + * [text inputs](https://platform.openai.com/docs/guides/text-generation). + */ +export type ChatCompletionContentPart = ChatCompletionContentPartText | ChatCompletionContentPartImage | ChatCompletionContentPartInputAudio | ChatCompletionContentPart.File; +export declare namespace ChatCompletionContentPart { + /** + * Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text + * generation. + */ + interface File { + file: File.File; + /** + * The type of the content part. Always `file`. + */ + type: 'file'; + } + namespace File { + interface File { + /** + * The base64 encoded file data, used when passing the file to the model as a + * string. + */ + file_data?: string; + /** + * The ID of an uploaded file to use as input. + */ + file_id?: string; + /** + * The name of the file, used when passing the file to the model as a string. + */ + filename?: string; + } + } +} +/** + * Learn about [image inputs](https://platform.openai.com/docs/guides/vision). + */ +export interface ChatCompletionContentPartImage { + image_url: ChatCompletionContentPartImage.ImageURL; + /** + * The type of the content part. + */ + type: 'image_url'; +} +export declare namespace ChatCompletionContentPartImage { + interface ImageURL { + /** + * Either a URL of the image or the base64 encoded image data. + */ + url: string; + /** + * Specifies the detail level of the image. Learn more in the + * [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding). + */ + detail?: 'auto' | 'low' | 'high'; + } +} +/** + * Learn about [audio inputs](https://platform.openai.com/docs/guides/audio). + */ +export interface ChatCompletionContentPartInputAudio { + input_audio: ChatCompletionContentPartInputAudio.InputAudio; + /** + * The type of the content part. Always `input_audio`. + */ + type: 'input_audio'; +} +export declare namespace ChatCompletionContentPartInputAudio { + interface InputAudio { + /** + * Base64 encoded audio data. + */ + data: string; + /** + * The format of the encoded audio data. Currently supports "wav" and "mp3". + */ + format: 'wav' | 'mp3'; + } +} +export interface ChatCompletionContentPartRefusal { + /** + * The refusal message generated by the model. + */ + refusal: string; + /** + * The type of the content part. + */ + type: 'refusal'; +} +/** + * Learn about + * [text inputs](https://platform.openai.com/docs/guides/text-generation). + */ +export interface ChatCompletionContentPartText { + /** + * The text content. + */ + text: string; + /** + * The type of the content part. + */ + type: 'text'; +} +/** + * A custom tool that processes input using a specified format. + */ +export interface ChatCompletionCustomTool { + /** + * Properties of the custom tool. + */ + custom: ChatCompletionCustomTool.Custom; + /** + * The type of the custom tool. Always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionCustomTool { + /** + * Properties of the custom tool. + */ + interface Custom { + /** + * The name of the custom tool, used to identify it in tool calls. + */ + name: string; + /** + * Optional description of the custom tool, used to provide more context. + */ + description?: string; + /** + * The input format for the custom tool. Default is unconstrained text. + */ + format?: Custom.Text | Custom.Grammar; + } + namespace Custom { + /** + * Unconstrained free-form text. + */ + interface Text { + /** + * Unconstrained text format. Always `text`. + */ + type: 'text'; + } + /** + * A grammar defined by the user. + */ + interface Grammar { + /** + * Your chosen grammar. + */ + grammar: Grammar.Grammar; + /** + * Grammar format. Always `grammar`. + */ + type: 'grammar'; + } + namespace Grammar { + /** + * Your chosen grammar. + */ + interface Grammar { + /** + * The grammar definition. + */ + definition: string; + /** + * The syntax of the grammar definition. One of `lark` or `regex`. + */ + syntax: 'lark' | 'regex'; + } + } + } +} +export interface ChatCompletionDeleted { + /** + * The ID of the chat completion that was deleted. + */ + id: string; + /** + * Whether the chat completion was deleted. + */ + deleted: boolean; + /** + * The type of object being deleted. + */ + object: 'chat.completion.deleted'; +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, `developer` messages + * replace the previous `system` messages. + */ +export interface ChatCompletionDeveloperMessageParam { + /** + * The contents of the developer message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `developer`. + */ + role: 'developer'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +/** + * Specifying a particular function via `{"name": "my_function"}` forces the model + * to call that function. + */ +export interface ChatCompletionFunctionCallOption { + /** + * The name of the function to call. + */ + name: string; +} +/** + * @deprecated + */ +export interface ChatCompletionFunctionMessageParam { + /** + * The contents of the function message. + */ + content: string | null; + /** + * The name of the function to call. + */ + name: string; + /** + * The role of the messages author, in this case `function`. + */ + role: 'function'; +} +/** + * A function tool that can be used to generate a response. + */ +export interface ChatCompletionFunctionTool { + function: Shared.FunctionDefinition; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type: 'function'; +} +/** + * A chat completion message generated by the model. + */ +export interface ChatCompletionMessage { + /** + * The contents of the message. + */ + content: string | null; + /** + * The refusal message generated by the model. + */ + refusal: string | null; + /** + * The role of the author of this message. + */ + role: 'assistant'; + /** + * Annotations for the message, when applicable, as when using the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + annotations?: Array; + /** + * If the audio output modality is requested, this object contains data about the + * audio response from the model. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAudio | null; + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + function_call?: ChatCompletionMessage.FunctionCall | null; + /** + * The tool calls generated by the model, such as function calls. + */ + tool_calls?: Array; +} +export declare namespace ChatCompletionMessage { + /** + * A URL citation when using web search. + */ + interface Annotation { + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * A URL citation when using web search. + */ + url_citation: Annotation.URLCitation; + } + namespace Annotation { + /** + * A URL citation when using web search. + */ + interface URLCitation { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The URL of the web resource. + */ + url: string; + } + } + /** + * @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a + * function that should be called, as generated by the model. + */ + interface FunctionCall { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * A call to a custom tool created by the model. + */ +export interface ChatCompletionMessageCustomToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The custom tool that the model called. + */ + custom: ChatCompletionMessageCustomToolCall.Custom; + /** + * The type of the tool. Always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionMessageCustomToolCall { + /** + * The custom tool that the model called. + */ + interface Custom { + /** + * The input for the custom tool call generated by the model. + */ + input: string; + /** + * The name of the custom tool to call. + */ + name: string; + } +} +/** + * A call to a function tool created by the model. + */ +export interface ChatCompletionMessageFunctionToolCall { + /** + * The ID of the tool call. + */ + id: string; + /** + * The function that the model called. + */ + function: ChatCompletionMessageFunctionToolCall.Function; + /** + * The type of the tool. Currently, only `function` is supported. + */ + type: 'function'; +} +export declare namespace ChatCompletionMessageFunctionToolCall { + /** + * The function that the model called. + */ + interface Function { + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + */ + arguments: string; + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, `developer` messages + * replace the previous `system` messages. + */ +export type ChatCompletionMessageParam = ChatCompletionDeveloperMessageParam | ChatCompletionSystemMessageParam | ChatCompletionUserMessageParam | ChatCompletionAssistantMessageParam | ChatCompletionToolMessageParam | ChatCompletionFunctionMessageParam; +/** + * A call to a function tool created by the model. + */ +export type ChatCompletionMessageToolCall = ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall; +export type ChatCompletionModality = 'text' | 'audio'; +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * function. + */ +export interface ChatCompletionNamedToolChoice { + function: ChatCompletionNamedToolChoice.Function; + /** + * For function calling, the type is always `function`. + */ + type: 'function'; +} +export declare namespace ChatCompletionNamedToolChoice { + interface Function { + /** + * The name of the function to call. + */ + name: string; + } +} +/** + * Specifies a tool the model should use. Use to force the model to call a specific + * custom tool. + */ +export interface ChatCompletionNamedToolChoiceCustom { + custom: ChatCompletionNamedToolChoiceCustom.Custom; + /** + * For custom tool calling, the type is always `custom`. + */ + type: 'custom'; +} +export declare namespace ChatCompletionNamedToolChoiceCustom { + interface Custom { + /** + * The name of the custom tool to call. + */ + name: string; + } +} +/** + * Static predicted output content, such as the content of a text file that is + * being regenerated. + */ +export interface ChatCompletionPredictionContent { + /** + * The content that should be matched when generating a model response. If + * generated tokens would match this content, the entire model response can be + * returned much more quickly. + */ + content: string | Array; + /** + * The type of the predicted content you want to provide. This type is currently + * always `content`. + */ + type: 'content'; +} +/** + * The role of the author of a message + */ +export type ChatCompletionRole = 'developer' | 'system' | 'user' | 'assistant' | 'tool' | 'function'; +/** + * A chat completion message generated by the model. + */ +export interface ChatCompletionStoreMessage extends ChatCompletionMessage { + /** + * The identifier of the chat message. + */ + id: string; + /** + * If a content parts array was provided, this is an array of `text` and + * `image_url` parts. Otherwise, null. + */ + content_parts?: Array | null; +} +/** + * Options for streaming response. Only set this when you set `stream: true`. + */ +export interface ChatCompletionStreamOptions { + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + /** + * If set, an additional chunk will be streamed before the `data: [DONE]` message. + * The `usage` field on this chunk shows the token usage statistics for the entire + * request, and the `choices` field will always be an empty array. + * + * All other chunks will also include a `usage` field, but with a null value. + * **NOTE:** If the stream is interrupted, you may not receive the final usage + * chunk which contains the total token usage for the request. + */ + include_usage?: boolean; +} +/** + * Developer-provided instructions that the model should follow, regardless of + * messages sent by the user. With o1 models and newer, use `developer` messages + * for this purpose instead. + */ +export interface ChatCompletionSystemMessageParam { + /** + * The contents of the system message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `system`. + */ + role: 'system'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +export interface ChatCompletionTokenLogprob { + /** + * The token. + */ + token: string; + /** + * A list of integers representing the UTF-8 bytes representation of the token. + * Useful in instances where characters are represented by multiple tokens and + * their byte representations must be combined to generate the correct text + * representation. Can be `null` if there is no bytes representation for the token. + */ + bytes: Array | null; + /** + * The log probability of this token, if it is within the top 20 most likely + * tokens. Otherwise, the value `-9999.0` is used to signify that the token is very + * unlikely. + */ + logprob: number; + /** + * List of the most likely tokens and their log probability, at this token + * position. In rare cases, there may be fewer than the number of requested + * `top_logprobs` returned. + */ + top_logprobs: Array; +} +export declare namespace ChatCompletionTokenLogprob { + interface TopLogprob { + /** + * The token. + */ + token: string; + /** + * A list of integers representing the UTF-8 bytes representation of the token. + * Useful in instances where characters are represented by multiple tokens and + * their byte representations must be combined to generate the correct text + * representation. Can be `null` if there is no bytes representation for the token. + */ + bytes: Array | null; + /** + * The log probability of this token, if it is within the top 20 most likely + * tokens. Otherwise, the value `-9999.0` is used to signify that the token is very + * unlikely. + */ + logprob: number; + } +} +/** + * A function tool that can be used to generate a response. + */ +export type ChatCompletionTool = ChatCompletionFunctionTool | ChatCompletionCustomTool; +/** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tool and instead generates a message. `auto` means the model can + * pick between generating a message or calling one or more tools. `required` means + * the model must call one or more tools. Specifying a particular tool via + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + * + * `none` is the default when no tools are present. `auto` is the default if tools + * are present. + */ +export type ChatCompletionToolChoiceOption = 'none' | 'auto' | 'required' | ChatCompletionAllowedToolChoice | ChatCompletionNamedToolChoice | ChatCompletionNamedToolChoiceCustom; +export interface ChatCompletionToolMessageParam { + /** + * The contents of the tool message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `tool`. + */ + role: 'tool'; + /** + * Tool call that this message is responding to. + */ + tool_call_id: string; +} +/** + * Messages sent by an end user, containing prompts or additional context + * information. + */ +export interface ChatCompletionUserMessageParam { + /** + * The contents of the user message. + */ + content: string | Array; + /** + * The role of the messages author, in this case `user`. + */ + role: 'user'; + /** + * An optional name for the participant. Provides the model information to + * differentiate between participants of the same role. + */ + name?: string; +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ChatCompletionAllowedTools { + /** + * Constrains the tools available to the model to a pre-defined set. + * + * `auto` allows the model to pick from among the allowed tools and generate a + * message. + * + * `required` requires the model to call one or more of the allowed tools. + */ + mode: 'auto' | 'required'; + /** + * A list of tool definitions that the model should be allowed to call. + * + * For the Chat Completions API, the list of tool definitions might look like: + * + * ```json + * [ + * { "type": "function", "function": { "name": "get_weather" } }, + * { "type": "function", "function": { "name": "get_time" } } + * ] + * ``` + */ + tools: Array<{ + [key: string]: unknown; + }>; +} +export type ChatCompletionReasoningEffort = Shared.ReasoningEffort | null; +export type ChatCompletionCreateParams = ChatCompletionCreateParamsNonStreaming | ChatCompletionCreateParamsStreaming; +export interface ChatCompletionCreateParamsBase { + /** + * A list of messages comprising the conversation so far. Depending on the + * [model](https://platform.openai.com/docs/models) you use, different message + * types (modalities) are supported, like + * [text](https://platform.openai.com/docs/guides/text-generation), + * [images](https://platform.openai.com/docs/guides/vision), and + * [audio](https://platform.openai.com/docs/guides/audio). + */ + messages: Array; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model: (string & {}) | Shared.ChatModel; + /** + * Parameters for audio output. Required when audio output is requested with + * `modalities: ["audio"]`. + * [Learn more](https://platform.openai.com/docs/guides/audio). + */ + audio?: ChatCompletionAudioParam | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on their + * existing frequency in the text so far, decreasing the model's likelihood to + * repeat the same line verbatim. + */ + frequency_penalty?: number | null; + /** + * @deprecated Deprecated in favor of `tool_choice`. + * + * Controls which (if any) function is called by the model. + * + * `none` means the model will not call a function and instead generates a message. + * + * `auto` means the model can pick between generating a message or calling a + * function. + * + * Specifying a particular function via `{"name": "my_function"}` forces the model + * to call that function. + * + * `none` is the default when no functions are present. `auto` is the default if + * functions are present. + */ + function_call?: 'none' | 'auto' | ChatCompletionFunctionCallOption; + /** + * @deprecated Deprecated in favor of `tools`. + * + * A list of functions the model may generate JSON inputs for. + */ + functions?: Array; + /** + * Modify the likelihood of specified tokens appearing in the completion. + * + * Accepts a JSON object that maps tokens (specified by their token ID in the + * tokenizer) to an associated bias value from -100 to 100. Mathematically, the + * bias is added to the logits generated by the model prior to sampling. The exact + * effect will vary per model, but values between -1 and 1 should decrease or + * increase likelihood of selection; values like -100 or 100 should result in a ban + * or exclusive selection of the relevant token. + */ + logit_bias?: { + [key: string]: number; + } | null; + /** + * Whether to return log probabilities of the output tokens or not. If true, + * returns the log probabilities of each output token returned in the `content` of + * `message`. + */ + logprobs?: boolean | null; + /** + * An upper bound for the number of tokens that can be generated for a completion, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_completion_tokens?: number | null; + /** + * @deprecated The maximum number of [tokens](/tokenizer) that can be generated in + * the chat completion. This value can be used to control + * [costs](https://openai.com/api/pricing/) for text generated via API. + * + * This value is now deprecated in favor of `max_completion_tokens`, and is not + * compatible with + * [o-series models](https://platform.openai.com/docs/guides/reasoning). + */ + max_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Output types that you would like the model to generate. Most models are capable + * of generating text, which is the default: + * + * `["text"]` + * + * The `gpt-4o-audio-preview` model can also be used to + * [generate audio](https://platform.openai.com/docs/guides/audio). To request that + * this model generate both text and audio responses, you can use: + * + * `["text", "audio"]` + */ + modalities?: Array<'text' | 'audio'> | null; + /** + * How many chat completion choices to generate for each input message. Note that + * you will be charged based on the number of generated tokens across all of the + * choices. Keep `n` as `1` to minimize costs. + */ + n?: number | null; + /** + * Whether to enable + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + * during tool use. + */ + parallel_tool_calls?: boolean; + /** + * Static predicted output content, such as the content of a text file that is + * being regenerated. + */ + prediction?: ChatCompletionPredictionContent | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on + * whether they appear in the text so far, increasing the model's likelihood to + * talk about new topics. + */ + presence_penalty?: number | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * An object specifying the format that the model must output. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + response_format?: Shared.ResponseFormatText | Shared.ResponseFormatJSONSchema | Shared.ResponseFormatJSONObject; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * @deprecated This feature is in Beta. If specified, our system will make a best + * effort to sample deterministically, such that repeated requests with the same + * `seed` and parameters should return the same result. Determinism is not + * guaranteed, and you should refer to the `system_fingerprint` response parameter + * to monitor changes in the backend. + */ + seed?: number | null; + /** + * Specifies the processing type used for serving the request. + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When the `service_tier` parameter is set, the response body will include the + * `service_tier` value based on the processing mode actually used to serve the + * request. This response value may be different from the value set in the + * parameter. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * Not supported with latest reasoning models `o3` and `o4-mini`. + * + * Up to 4 sequences where the API will stop generating further tokens. The + * returned text will not contain the stop sequence. + */ + stop?: string | null | Array; + /** + * Whether or not to store the output of this chat completion request for use in + * our [model distillation](https://platform.openai.com/docs/guides/distillation) + * or [evals](https://platform.openai.com/docs/guides/evals) products. + * + * Supports text and image inputs. Note: image inputs over 8MB will be dropped. + */ + store?: boolean | null; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream?: boolean | null; + /** + * Options for streaming response. Only set this when you set `stream: true`. + */ + stream_options?: ChatCompletionStreamOptions | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature?: number | null; + /** + * Controls which (if any) tool is called by the model. `none` means the model will + * not call any tool and instead generates a message. `auto` means the model can + * pick between generating a message or calling one or more tools. `required` means + * the model must call one or more tools. Specifying a particular tool via + * `{"type": "function", "function": {"name": "my_function"}}` forces the model to + * call that tool. + * + * `none` is the default when no tools are present. `auto` is the default if tools + * are present. + */ + tool_choice?: ChatCompletionToolChoiceOption; + /** + * A list of tools the model may call. You can provide either + * [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) + * or [function tools](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An integer between 0 and 20 specifying the number of most likely tokens to + * return at each token position, each with an associated log probability. + * `logprobs` must be set to `true` if this parameter is used. + */ + top_logprobs?: number | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; + /** + * Constrains the verbosity of the model's response. Lower values will result in + * more concise responses, while higher values will result in more verbose + * responses. Currently supported values are `low`, `medium`, and `high`. + */ + verbosity?: 'low' | 'medium' | 'high' | null; + /** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + web_search_options?: ChatCompletionCreateParams.WebSearchOptions; +} +export declare namespace ChatCompletionCreateParams { + /** + * @deprecated + */ + interface Function { + /** + * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain + * underscores and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the function does, used by the model to choose when and + * how to call the function. + */ + description?: string; + /** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ + parameters?: Shared.FunctionParameters; + } + /** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + */ + interface WebSearchOptions { + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * Approximate location parameters for the search. + */ + user_location?: WebSearchOptions.UserLocation | null; + } + namespace WebSearchOptions { + /** + * Approximate location parameters for the search. + */ + interface UserLocation { + /** + * Approximate location parameters for the search. + */ + approximate: UserLocation.Approximate; + /** + * The type of location approximation. Always `approximate`. + */ + type: 'approximate'; + } + namespace UserLocation { + /** + * Approximate location parameters for the search. + */ + interface Approximate { + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string; + } + } + } + type ChatCompletionCreateParamsNonStreaming = CompletionsCompletionsAPI.ChatCompletionCreateParamsNonStreaming; + type ChatCompletionCreateParamsStreaming = CompletionsCompletionsAPI.ChatCompletionCreateParamsStreaming; +} +export interface ChatCompletionCreateParamsNonStreaming extends ChatCompletionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream?: false | null; +} +export interface ChatCompletionCreateParamsStreaming extends ChatCompletionCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + * for more information, along with the + * [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + * guide for more information on how to handle the streaming events. + */ + stream: true; +} +export interface ChatCompletionUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; +} +export interface ChatCompletionListParams extends CursorPageParams { + /** + * A list of metadata keys to filter the Chat Completions by. Example: + * + * `metadata[key1]=value1&metadata[key2]=value2` + */ + metadata?: Shared.Metadata | null; + /** + * The model used to generate the Chat Completions. + */ + model?: string; + /** + * Sort order for Chat Completions by timestamp. Use `asc` for ascending order or + * `desc` for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Completions { + export { type ChatCompletion as ChatCompletion, type ChatCompletionAllowedToolChoice as ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionCustomTool as ChatCompletionCustomTool, type ChatCompletionDeleted as ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool as ChatCompletionFunctionTool, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom as ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStoreMessage as ChatCompletionStoreMessage, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type ChatCompletionAllowedTools as ChatCompletionAllowedTools, type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort, type ChatCompletionsPage as ChatCompletionsPage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams as ChatCompletionUpdateParams, type ChatCompletionListParams as ChatCompletionListParams, }; + export { Messages as Messages, type MessageListParams as MessageListParams }; +} +//# sourceMappingURL=completions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..bda9fc12a2ce379ccc9031e1c7f6b20f264cb461 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../src/resources/chat/completions/completions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,yBAAyB;OAC9B,KAAK,cAAc;OACnB,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE,QAAQ,EAAE;OAC/B,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;OAGlB,EAAE,oBAAoB,EAAE;OACxB,EAAE,6BAA6B,EAAE;OACjC,EAAE,aAAa,EAAE;OACjB,EAAE,8BAA8B,EAAE;OAClC,EAAE,uCAAuC,EAAE;OAC3C,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACzD,EAAE,8BAA8B,EAA2C;AAElF,qBAAa,WAAY,SAAQ,WAAW;IAC1C,QAAQ,EAAE,WAAW,CAAC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E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC9E"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js new file mode 100644 index 0000000000000000000000000000000000000000..9d4c473bf35a17c6f41ad7853d800a38604473cb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js @@ -0,0 +1,115 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatCompletionRunner = exports.ChatCompletionStream = exports.ParsingToolFunction = exports.ChatCompletionStreamingRunner = exports.Completions = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const MessagesAPI = tslib_1.__importStar(require("./messages.js")); +const messages_1 = require("./messages.js"); +const pagination_1 = require("../../../core/pagination.js"); +const path_1 = require("../../../internal/utils/path.js"); +const ChatCompletionRunner_1 = require("../../../lib/ChatCompletionRunner.js"); +const ChatCompletionStreamingRunner_1 = require("../../../lib/ChatCompletionStreamingRunner.js"); +const ChatCompletionStream_1 = require("../../../lib/ChatCompletionStream.js"); +const parser_1 = require("../../../lib/parser.js"); +class Completions extends resource_1.APIResource { + constructor() { + super(...arguments); + this.messages = new MessagesAPI.Messages(this._client); + } + create(body, options) { + return this._client.post('/chat/completions', { body, ...options, stream: body.stream ?? false }); + } + /** + * Get a stored chat completion. Only Chat Completions that have been created with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * const chatCompletion = + * await client.chat.completions.retrieve('completion_id'); + * ``` + */ + retrieve(completionID, options) { + return this._client.get((0, path_1.path) `/chat/completions/${completionID}`, options); + } + /** + * Modify a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be modified. Currently, the only + * supported modification is to update the `metadata` field. + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.update( + * 'completion_id', + * { metadata: { foo: 'string' } }, + * ); + * ``` + */ + update(completionID, body, options) { + return this._client.post((0, path_1.path) `/chat/completions/${completionID}`, { body, ...options }); + } + /** + * List stored Chat Completions. Only Chat Completions that have been stored with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletion of client.chat.completions.list()) { + * // ... + * } + * ``` + */ + list(query = {}, options) { + return this._client.getAPIList('/chat/completions', (pagination_1.CursorPage), { query, ...options }); + } + /** + * Delete a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be deleted. + * + * @example + * ```ts + * const chatCompletionDeleted = + * await client.chat.completions.delete('completion_id'); + * ``` + */ + delete(completionID, options) { + return this._client.delete((0, path_1.path) `/chat/completions/${completionID}`, options); + } + parse(body, options) { + (0, parser_1.validateInputTools)(body.tools); + return this._client.chat.completions + .create(body, { + ...options, + headers: { + ...options?.headers, + 'X-Stainless-Helper-Method': 'chat.completions.parse', + }, + }) + ._thenUnwrap((completion) => (0, parser_1.parseChatCompletion)(completion, body)); + } + runTools(body, options) { + if (body.stream) { + return ChatCompletionStreamingRunner_1.ChatCompletionStreamingRunner.runTools(this._client, body, options); + } + return ChatCompletionRunner_1.ChatCompletionRunner.runTools(this._client, body, options); + } + /** + * Creates a chat completion stream + */ + stream(body, options) { + return ChatCompletionStream_1.ChatCompletionStream.createChatCompletion(this._client, body, options); + } +} +exports.Completions = Completions; +var ChatCompletionStreamingRunner_2 = require("../../../lib/ChatCompletionStreamingRunner.js"); +Object.defineProperty(exports, "ChatCompletionStreamingRunner", { enumerable: true, get: function () { return ChatCompletionStreamingRunner_2.ChatCompletionStreamingRunner; } }); +var RunnableFunction_1 = require("../../../lib/RunnableFunction.js"); +Object.defineProperty(exports, "ParsingToolFunction", { enumerable: true, get: function () { return RunnableFunction_1.ParsingToolFunction; } }); +var ChatCompletionStream_2 = require("../../../lib/ChatCompletionStream.js"); +Object.defineProperty(exports, "ChatCompletionStream", { enumerable: true, get: function () { return ChatCompletionStream_2.ChatCompletionStream; } }); +var ChatCompletionRunner_2 = require("../../../lib/ChatCompletionRunner.js"); +Object.defineProperty(exports, "ChatCompletionRunner", { enumerable: true, get: function () { return ChatCompletionRunner_2.ChatCompletionRunner; } }); +Completions.Messages = messages_1.Messages; +//# sourceMappingURL=completions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..875a7c25b17831d53e460b1f466fa681b76870e6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../../src/resources/chat/completions/completions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,mEAA0C;AAC1C,4CAAyD;AAEzD,4DAA0F;AAG1F,0DAAoD;AAEpD,+EAAyE;AACzE,iGAA2F;AAI3F,+EAA0G;AAC1G,mDAA8G;AAE9G,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoL1E,CAAC;IA5IC,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAErD,CAAC;IAC9C,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EA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wB;QAExB,OAAO,2CAAoB,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AArLD,kCAqLC;AAyBD,+FAA2F;AAAlF,8IAAA,6BAA6B,OAAA;AACtC,qEAIuC;AADrC,uHAAA,mBAAmB,OAAA;AAIrB,6EAA0G;AAAjG,4HAAA,oBAAoB,OAAA;AAC7B,6EAAyE;AAAhE,4HAAA,oBAAoB,OAAA;AAsrD7B,WAAW,CAAC,QAAQ,GAAG,mBAAQ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..1f7f1023c039ddfed249a70f05a7a85f2eef10e0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs @@ -0,0 +1,106 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as MessagesAPI from "./messages.mjs"; +import { Messages } from "./messages.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +import { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.mjs"; +import { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +import { ChatCompletionStream } from "../../../lib/ChatCompletionStream.mjs"; +import { parseChatCompletion, validateInputTools } from "../../../lib/parser.mjs"; +export class Completions extends APIResource { + constructor() { + super(...arguments); + this.messages = new MessagesAPI.Messages(this._client); + } + create(body, options) { + return this._client.post('/chat/completions', { body, ...options, stream: body.stream ?? false }); + } + /** + * Get a stored chat completion. Only Chat Completions that have been created with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * const chatCompletion = + * await client.chat.completions.retrieve('completion_id'); + * ``` + */ + retrieve(completionID, options) { + return this._client.get(path `/chat/completions/${completionID}`, options); + } + /** + * Modify a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be modified. Currently, the only + * supported modification is to update the `metadata` field. + * + * @example + * ```ts + * const chatCompletion = await client.chat.completions.update( + * 'completion_id', + * { metadata: { foo: 'string' } }, + * ); + * ``` + */ + update(completionID, body, options) { + return this._client.post(path `/chat/completions/${completionID}`, { body, ...options }); + } + /** + * List stored Chat Completions. Only Chat Completions that have been stored with + * the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletion of client.chat.completions.list()) { + * // ... + * } + * ``` + */ + list(query = {}, options) { + return this._client.getAPIList('/chat/completions', (CursorPage), { query, ...options }); + } + /** + * Delete a stored chat completion. Only Chat Completions that have been created + * with the `store` parameter set to `true` can be deleted. + * + * @example + * ```ts + * const chatCompletionDeleted = + * await client.chat.completions.delete('completion_id'); + * ``` + */ + delete(completionID, options) { + return this._client.delete(path `/chat/completions/${completionID}`, options); + } + parse(body, options) { + validateInputTools(body.tools); + return this._client.chat.completions + .create(body, { + ...options, + headers: { + ...options?.headers, + 'X-Stainless-Helper-Method': 'chat.completions.parse', + }, + }) + ._thenUnwrap((completion) => parseChatCompletion(completion, body)); + } + runTools(body, options) { + if (body.stream) { + return ChatCompletionStreamingRunner.runTools(this._client, body, options); + } + return ChatCompletionRunner.runTools(this._client, body, options); + } + /** + * Creates a chat completion stream + */ + stream(body, options) { + return ChatCompletionStream.createChatCompletion(this._client, body, options); + } +} +export { ChatCompletionStreamingRunner } from "../../../lib/ChatCompletionStreamingRunner.mjs"; +export { ParsingToolFunction, } from "../../../lib/RunnableFunction.mjs"; +export { ChatCompletionStream } from "../../../lib/ChatCompletionStream.mjs"; +export { ChatCompletionRunner } from "../../../lib/ChatCompletionRunner.mjs"; +Completions.Messages = Messages; +//# sourceMappingURL=completions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..0aade15b9947dd31cdea2b958d4c51e46d62e022 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/completions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.mjs","sourceRoot":"","sources":["../../../src/resources/chat/completions/completions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,WAAW;OAChB,EAAqB,QAAQ,EAAE;OAE/B,EAAE,UAAU,EAAsC;OAGlD,EAAE,IAAI,EAAE;OAER,EAAE,oBAAoB,EAAE;OACxB,EAAE,6BAA6B,EAAE;OAIjC,EAAE,oBAAoB,EAAmC;OACzD,EAAkC,mBAAmB,EAAE,kBAAkB,EAAE;AAElF,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoL1E,CAAC;IA5IC,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAErD,CAAC;IAC9C,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,YAA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oB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;OAyBM,EAAE,6BAA6B,EAAE;OACjC,EAGL,mBAAmB,GACpB;OAGM,EAAE,oBAAoB,EAAmC;OACzD,EAAE,oBAAoB,EAAE;AAsrD/B,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..b1468fcd4b71a2d7f9aad7617a42165bce620b2e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts @@ -0,0 +1,4 @@ +export { Completions, type ChatCompletion, type ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionCustomTool, type ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool, type ChatCompletionMessage, type ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent, type ChatCompletionRole, type ChatCompletionStoreMessage, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type ChatCompletionAllowedTools, type ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams, type ChatCompletionListParams, type ChatCompletionStoreMessagesPage, type ChatCompletionsPage, } from "./completions.mjs"; +export * from "./completions.mjs"; +export { Messages, type MessageListParams } from "./messages.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..2044786652c8f756cd3a555dfa65084061910fd3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/chat/completions/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,GACzB;;OAEM,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a8a85dfa22a3451628fde9213e6403f0c9c09daa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts @@ -0,0 +1,4 @@ +export { Completions, type ChatCompletion, type ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionCustomTool, type ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool, type ChatCompletionMessage, type ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent, type ChatCompletionRole, type ChatCompletionStoreMessage, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type ChatCompletionAllowedTools, type ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams, type ChatCompletionListParams, type ChatCompletionStoreMessagesPage, type ChatCompletionsPage, } from "./completions.js"; +export * from "./completions.js"; +export { Messages, type MessageListParams } from "./messages.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..a67d01681bc7917d679dd5a1a3adaabee3d7876e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/chat/completions/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,GACzB;;OAEM,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js new file mode 100644 index 0000000000000000000000000000000000000000..cf29ae292cf2a7a864c9dff5c112bf01ca350e49 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js @@ -0,0 +1,11 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Messages = exports.Completions = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +var completions_1 = require("./completions.js"); +Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return completions_1.Completions; } }); +tslib_1.__exportStar(require("./completions.js"), exports); +var messages_1 = require("./messages.js"); +Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c5419125a72f5506f67df378e859e1daff6a1e13 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/chat/completions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,gDA6CuB;AA5CrB,0GAAA,WAAW,OAAA;AA6Cb,2DAA8B;AAC9B,0CAA8D;AAArD,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c1b7dbfdbc08934a14aa76af1b8fa529e4d9978d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Completions, } from "./completions.mjs"; +export * from "./completions.mjs"; +export { Messages } from "./messages.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..0ca9e9911f103bdc57aeefbba198fcfc018d93e5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/chat/completions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GA4CZ;;OAEM,EAAE,QAAQ,EAA0B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..41229b1a552ada0b5cfbb4a193033d4bbdbce2cd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts @@ -0,0 +1,34 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as CompletionsAPI from "./completions.mjs"; +import { ChatCompletionStoreMessagesPage } from "./completions.mjs"; +import { type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Messages extends APIResource { + /** + * Get the messages in a stored chat completion. Only Chat Completions that have + * been created with the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletionStoreMessage of client.chat.completions.messages.list( + * 'completion_id', + * )) { + * // ... + * } + * ``` + */ + list(completionID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise; +} +export interface MessageListParams extends CursorPageParams { + /** + * Sort order for messages by timestamp. Use `asc` for ascending order or `desc` + * for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Messages { + export { type MessageListParams as MessageListParams }; +} +export { type ChatCompletionStoreMessagesPage }; +//# sourceMappingURL=messages.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c39f99c740815a1fd26c13e0ec36ed43270da8c5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../../src/resources/chat/completions/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,+BAA+B,EAAE;OACnC,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,cAAc,CAAC,0BAA0B,CAAC;CAO3F;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,+BAA+B,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..da5db3e0700d14e594f24ecbf3cd4af290d12905 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts @@ -0,0 +1,34 @@ +import { APIResource } from "../../../core/resource.js"; +import * as CompletionsAPI from "./completions.js"; +import { ChatCompletionStoreMessagesPage } from "./completions.js"; +import { type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Messages extends APIResource { + /** + * Get the messages in a stored chat completion. Only Chat Completions that have + * been created with the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletionStoreMessage of client.chat.completions.messages.list( + * 'completion_id', + * )) { + * // ... + * } + * ``` + */ + list(completionID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise; +} +export interface MessageListParams extends CursorPageParams { + /** + * Sort order for messages by timestamp. Use `asc` for ascending order or `desc` + * for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Messages { + export { type MessageListParams as MessageListParams }; +} +export { type ChatCompletionStoreMessagesPage }; +//# sourceMappingURL=messages.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ae461903390759fe11ca00f468ff29c6b30e09a8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/resources/chat/completions/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,+BAA+B,EAAE;OACnC,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,cAAc,CAAC,0BAA0B,CAAC;CAO3F;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,+BAA+B,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js new file mode 100644 index 0000000000000000000000000000000000000000..a8f3e59e9266d26b0dcedc66bca5ae6548e1a03b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js @@ -0,0 +1,28 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Messages = void 0; +const resource_1 = require("../../../core/resource.js"); +const pagination_1 = require("../../../core/pagination.js"); +const path_1 = require("../../../internal/utils/path.js"); +class Messages extends resource_1.APIResource { + /** + * Get the messages in a stored chat completion. Only Chat Completions that have + * been created with the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletionStoreMessage of client.chat.completions.messages.list( + * 'completion_id', + * )) { + * // ... + * } + * ``` + */ + list(completionID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/chat/completions/${completionID}/messages`, (pagination_1.CursorPage), { query, ...options }); + } +} +exports.Messages = Messages; +//# sourceMappingURL=messages.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5d76619b5d9c435ba8d490ed46e687fa178d8040 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/resources/chat/completions/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAA0F;AAE1F,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,YAAoB,EACpB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,YAAY,WAAW,EAChD,CAAA,uBAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AA1BD,4BA0BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs new file mode 100644 index 0000000000000000000000000000000000000000..0b5a67d8cb383fd52fa0f1bfe6985e97abd41720 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs @@ -0,0 +1,24 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +export class Messages extends APIResource { + /** + * Get the messages in a stored chat completion. Only Chat Completions that have + * been created with the `store` parameter set to `true` will be returned. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const chatCompletionStoreMessage of client.chat.completions.messages.list( + * 'completion_id', + * )) { + * // ... + * } + * ``` + */ + list(completionID, query = {}, options) { + return this._client.getAPIList(path `/chat/completions/${completionID}/messages`, (CursorPage), { query, ...options }); + } +} +//# sourceMappingURL=messages.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..774742f7ef1da0e109445d74eba760ac167e4677 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/completions/messages.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../../src/resources/chat/completions/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,YAAoB,EACpB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,YAAY,WAAW,EAChD,CAAA,UAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4816cc10b4db18559192a60afc50172d87b4ae3f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts @@ -0,0 +1,3 @@ +export { Chat } from "./chat.mjs"; +export { Completions, type ChatCompletion, type ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionCustomTool, type ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool, type ChatCompletionMessage, type ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent, type ChatCompletionRole, type ChatCompletionStoreMessage, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type ChatCompletionAllowedTools, type ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams, type ChatCompletionListParams, type ChatCompletionStoreMessagesPage, type ChatCompletionsPage, } from "./completions/index.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..22b926072a4bcc8abab08136d5ada2e0abf60540 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,GACzB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cb7f49e6d99c2f0009edf5628f5c700da8823d91 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts @@ -0,0 +1,3 @@ +export { Chat } from "./chat.js"; +export { Completions, type ChatCompletion, type ChatCompletionAllowedToolChoice, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionCustomTool, type ChatCompletionDeleted, type ChatCompletionDeveloperMessageParam, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionFunctionTool, type ChatCompletionMessage, type ChatCompletionMessageCustomToolCall, type ChatCompletionMessageFunctionToolCall, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionNamedToolChoiceCustom, type ChatCompletionPredictionContent, type ChatCompletionRole, type ChatCompletionStoreMessage, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type ChatCompletionAllowedTools, type ChatCompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionUpdateParams, type ChatCompletionListParams, type ChatCompletionStoreMessagesPage, type ChatCompletionsPage, } from "./completions/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2ea6ae1f74e14733cbc1434b25d7b539c03ea74c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,GACzB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js new file mode 100644 index 0000000000000000000000000000000000000000..175cf6bfdb294b7e45c84b19cd09ee4cd57ef849 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Completions = exports.Chat = void 0; +var chat_1 = require("./chat.js"); +Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } }); +var index_1 = require("./completions/index.js"); +Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return index_1.Completions; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e6ed0469f829c1ebacf56388899622f66a6719f6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,gDA6C6B;AA5C3B,oGAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..691169ca3c81cdd102f560c8524b430289eb9d65 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Chat } from "./chat.mjs"; +export { Completions, } from "./completions/index.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..f04067087b34a1389ee1ec2c39684ea6f753c9c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/chat/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,WAAW,GA4CZ"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4f938064babb515623e1bc79e55ea65bc2ab8579 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts @@ -0,0 +1,329 @@ +import { APIResource } from "../core/resource.mjs"; +import * as CompletionsAPI from "./completions.mjs"; +import * as CompletionsCompletionsAPI from "./chat/completions/completions.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { Stream } from "../core/streaming.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Completions extends APIResource { + /** + * Creates a completion for the provided prompt and parameters. + * + * @example + * ```ts + * const completion = await client.completions.create({ + * model: 'string', + * prompt: 'This is a test.', + * }); + * ``` + */ + create(body: CompletionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: CompletionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: CompletionCreateParamsBase, options?: RequestOptions): APIPromise | Completion>; +} +/** + * Represents a completion response from the API. Note: both the streamed and + * non-streamed response objects share the same shape (unlike the chat endpoint). + */ +export interface Completion { + /** + * A unique identifier for the completion. + */ + id: string; + /** + * The list of completion choices the model generated for the input prompt. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the completion was created. + */ + created: number; + /** + * The model used for completion. + */ + model: string; + /** + * The object type, which is always "text_completion" + */ + object: 'text_completion'; + /** + * This fingerprint represents the backend configuration that the model runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * Usage statistics for the completion request. + */ + usage?: CompletionUsage; +} +export interface CompletionChoice { + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, or `content_filter` if + * content was omitted due to a flag from our content filters. + */ + finish_reason: 'stop' | 'length' | 'content_filter'; + index: number; + logprobs: CompletionChoice.Logprobs | null; + text: string; +} +export declare namespace CompletionChoice { + interface Logprobs { + text_offset?: Array; + token_logprobs?: Array; + tokens?: Array; + top_logprobs?: Array<{ + [key: string]: number; + }>; + } +} +/** + * Usage statistics for the completion request. + */ +export interface CompletionUsage { + /** + * Number of tokens in the generated completion. + */ + completion_tokens: number; + /** + * Number of tokens in the prompt. + */ + prompt_tokens: number; + /** + * Total number of tokens used in the request (prompt + completion). + */ + total_tokens: number; + /** + * Breakdown of tokens used in a completion. + */ + completion_tokens_details?: CompletionUsage.CompletionTokensDetails; + /** + * Breakdown of tokens used in the prompt. + */ + prompt_tokens_details?: CompletionUsage.PromptTokensDetails; +} +export declare namespace CompletionUsage { + /** + * Breakdown of tokens used in a completion. + */ + interface CompletionTokensDetails { + /** + * When using Predicted Outputs, the number of tokens in the prediction that + * appeared in the completion. + */ + accepted_prediction_tokens?: number; + /** + * Audio input tokens generated by the model. + */ + audio_tokens?: number; + /** + * Tokens generated by the model for reasoning. + */ + reasoning_tokens?: number; + /** + * When using Predicted Outputs, the number of tokens in the prediction that did + * not appear in the completion. However, like reasoning tokens, these tokens are + * still counted in the total completion tokens for purposes of billing, output, + * and context window limits. + */ + rejected_prediction_tokens?: number; + } + /** + * Breakdown of tokens used in the prompt. + */ + interface PromptTokensDetails { + /** + * Audio input tokens present in the prompt. + */ + audio_tokens?: number; + /** + * Cached tokens present in the prompt. + */ + cached_tokens?: number; + } +} +export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming; +export interface CompletionCreateParamsBase { + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | 'gpt-3.5-turbo-instruct' | 'davinci-002' | 'babbage-002'; + /** + * The prompt(s) to generate completions for, encoded as a string, array of + * strings, array of tokens, or array of token arrays. + * + * Note that <|endoftext|> is the document separator that the model sees during + * training, so if a prompt is not specified the model will generate as if from the + * beginning of a new document. + */ + prompt: string | Array | Array | Array> | null; + /** + * Generates `best_of` completions server-side and returns the "best" (the one with + * the highest log probability per token). Results cannot be streamed. + * + * When used with `n`, `best_of` controls the number of candidate completions and + * `n` specifies how many to return – `best_of` must be greater than `n`. + * + * **Note:** Because this parameter generates many completions, it can quickly + * consume your token quota. Use carefully and ensure that you have reasonable + * settings for `max_tokens` and `stop`. + */ + best_of?: number | null; + /** + * Echo back the prompt in addition to the completion + */ + echo?: boolean | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on their + * existing frequency in the text so far, decreasing the model's likelihood to + * repeat the same line verbatim. + * + * [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation) + */ + frequency_penalty?: number | null; + /** + * Modify the likelihood of specified tokens appearing in the completion. + * + * Accepts a JSON object that maps tokens (specified by their token ID in the GPT + * tokenizer) to an associated bias value from -100 to 100. You can use this + * [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. + * Mathematically, the bias is added to the logits generated by the model prior to + * sampling. The exact effect will vary per model, but values between -1 and 1 + * should decrease or increase likelihood of selection; values like -100 or 100 + * should result in a ban or exclusive selection of the relevant token. + * + * As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token + * from being generated. + */ + logit_bias?: { + [key: string]: number; + } | null; + /** + * Include the log probabilities on the `logprobs` most likely output tokens, as + * well the chosen tokens. For example, if `logprobs` is 5, the API will return a + * list of the 5 most likely tokens. The API will always return the `logprob` of + * the sampled token, so there may be up to `logprobs+1` elements in the response. + * + * The maximum value for `logprobs` is 5. + */ + logprobs?: number | null; + /** + * The maximum number of [tokens](/tokenizer) that can be generated in the + * completion. + * + * The token count of your prompt plus `max_tokens` cannot exceed the model's + * context length. + * [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) + * for counting tokens. + */ + max_tokens?: number | null; + /** + * How many completions to generate for each prompt. + * + * **Note:** Because this parameter generates many completions, it can quickly + * consume your token quota. Use carefully and ensure that you have reasonable + * settings for `max_tokens` and `stop`. + */ + n?: number | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on + * whether they appear in the text so far, increasing the model's likelihood to + * talk about new topics. + * + * [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation) + */ + presence_penalty?: number | null; + /** + * If specified, our system will make a best effort to sample deterministically, + * such that repeated requests with the same `seed` and parameters should return + * the same result. + * + * Determinism is not guaranteed, and you should refer to the `system_fingerprint` + * response parameter to monitor changes in the backend. + */ + seed?: number | null; + /** + * Not supported with latest reasoning models `o3` and `o4-mini`. + * + * Up to 4 sequences where the API will stop generating further tokens. The + * returned text will not contain the stop sequence. + */ + stop?: string | null | Array; + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream?: boolean | null; + /** + * Options for streaming response. Only set this when you set `stream: true`. + */ + stream_options?: CompletionsCompletionsAPI.ChatCompletionStreamOptions | null; + /** + * The suffix that comes after a completion of inserted text. + * + * This parameter is only supported for `gpt-3.5-turbo-instruct`. + */ + suffix?: string | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + * + * We generally recommend altering this or `top_p` but not both. + */ + temperature?: number | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace CompletionCreateParams { + type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; + type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; +} +export interface CompletionCreateParamsNonStreaming extends CompletionCreateParamsBase { + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream?: false | null; +} +export interface CompletionCreateParamsStreaming extends CompletionCreateParamsBase { + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream: true; +} +export declare namespace Completions { + export { type Completion as Completion, type CompletionChoice as CompletionChoice, type CompletionUsage as CompletionUsage, type CompletionCreateParams as CompletionCreateParams, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, }; +} +//# sourceMappingURL=completions.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..273a9108609886d455284093afacbc3848bf70fb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.mts","sourceRoot":"","sources":["../src/resources/completions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,KAAK,yBAAyB;OAC9B,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAClG,MAAM,CAAC,IAAI,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACvG,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;CAS/C;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAEjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;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B;;OAEG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAC,2BAA2B,GAAG,IAAI,CAAC;IAE9E;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,kCAAkC,GAAG,cAAc,CAAC,kCAAkC,CAAC;IACnG,KAAY,+BAA+B,GAAG,cAAc,CAAC,+BAA+B,CAAC;CAC9F;AAED,MAAM,WAAW,kCAAmC,SAAQ,0BAA0B;IACpF;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IACjF;;;;;;;OAOG;IACH,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..74b153ca23e117ef768b8205d1a085384e82b06f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts @@ -0,0 +1,329 @@ +import { APIResource } from "../core/resource.js"; +import * as CompletionsAPI from "./completions.js"; +import * as CompletionsCompletionsAPI from "./chat/completions/completions.js"; +import { APIPromise } from "../core/api-promise.js"; +import { Stream } from "../core/streaming.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Completions extends APIResource { + /** + * Creates a completion for the provided prompt and parameters. + * + * @example + * ```ts + * const completion = await client.completions.create({ + * model: 'string', + * prompt: 'This is a test.', + * }); + * ``` + */ + create(body: CompletionCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: CompletionCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: CompletionCreateParamsBase, options?: RequestOptions): APIPromise | Completion>; +} +/** + * Represents a completion response from the API. Note: both the streamed and + * non-streamed response objects share the same shape (unlike the chat endpoint). + */ +export interface Completion { + /** + * A unique identifier for the completion. + */ + id: string; + /** + * The list of completion choices the model generated for the input prompt. + */ + choices: Array; + /** + * The Unix timestamp (in seconds) of when the completion was created. + */ + created: number; + /** + * The model used for completion. + */ + model: string; + /** + * The object type, which is always "text_completion" + */ + object: 'text_completion'; + /** + * This fingerprint represents the backend configuration that the model runs with. + * + * Can be used in conjunction with the `seed` request parameter to understand when + * backend changes have been made that might impact determinism. + */ + system_fingerprint?: string; + /** + * Usage statistics for the completion request. + */ + usage?: CompletionUsage; +} +export interface CompletionChoice { + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, or `content_filter` if + * content was omitted due to a flag from our content filters. + */ + finish_reason: 'stop' | 'length' | 'content_filter'; + index: number; + logprobs: CompletionChoice.Logprobs | null; + text: string; +} +export declare namespace CompletionChoice { + interface Logprobs { + text_offset?: Array; + token_logprobs?: Array; + tokens?: Array; + top_logprobs?: Array<{ + [key: string]: number; + }>; + } +} +/** + * Usage statistics for the completion request. + */ +export interface CompletionUsage { + /** + * Number of tokens in the generated completion. + */ + completion_tokens: number; + /** + * Number of tokens in the prompt. + */ + prompt_tokens: number; + /** + * Total number of tokens used in the request (prompt + completion). + */ + total_tokens: number; + /** + * Breakdown of tokens used in a completion. + */ + completion_tokens_details?: CompletionUsage.CompletionTokensDetails; + /** + * Breakdown of tokens used in the prompt. + */ + prompt_tokens_details?: CompletionUsage.PromptTokensDetails; +} +export declare namespace CompletionUsage { + /** + * Breakdown of tokens used in a completion. + */ + interface CompletionTokensDetails { + /** + * When using Predicted Outputs, the number of tokens in the prediction that + * appeared in the completion. + */ + accepted_prediction_tokens?: number; + /** + * Audio input tokens generated by the model. + */ + audio_tokens?: number; + /** + * Tokens generated by the model for reasoning. + */ + reasoning_tokens?: number; + /** + * When using Predicted Outputs, the number of tokens in the prediction that did + * not appear in the completion. However, like reasoning tokens, these tokens are + * still counted in the total completion tokens for purposes of billing, output, + * and context window limits. + */ + rejected_prediction_tokens?: number; + } + /** + * Breakdown of tokens used in the prompt. + */ + interface PromptTokensDetails { + /** + * Audio input tokens present in the prompt. + */ + audio_tokens?: number; + /** + * Cached tokens present in the prompt. + */ + cached_tokens?: number; + } +} +export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming; +export interface CompletionCreateParamsBase { + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | 'gpt-3.5-turbo-instruct' | 'davinci-002' | 'babbage-002'; + /** + * The prompt(s) to generate completions for, encoded as a string, array of + * strings, array of tokens, or array of token arrays. + * + * Note that <|endoftext|> is the document separator that the model sees during + * training, so if a prompt is not specified the model will generate as if from the + * beginning of a new document. + */ + prompt: string | Array | Array | Array> | null; + /** + * Generates `best_of` completions server-side and returns the "best" (the one with + * the highest log probability per token). Results cannot be streamed. + * + * When used with `n`, `best_of` controls the number of candidate completions and + * `n` specifies how many to return – `best_of` must be greater than `n`. + * + * **Note:** Because this parameter generates many completions, it can quickly + * consume your token quota. Use carefully and ensure that you have reasonable + * settings for `max_tokens` and `stop`. + */ + best_of?: number | null; + /** + * Echo back the prompt in addition to the completion + */ + echo?: boolean | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on their + * existing frequency in the text so far, decreasing the model's likelihood to + * repeat the same line verbatim. + * + * [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation) + */ + frequency_penalty?: number | null; + /** + * Modify the likelihood of specified tokens appearing in the completion. + * + * Accepts a JSON object that maps tokens (specified by their token ID in the GPT + * tokenizer) to an associated bias value from -100 to 100. You can use this + * [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. + * Mathematically, the bias is added to the logits generated by the model prior to + * sampling. The exact effect will vary per model, but values between -1 and 1 + * should decrease or increase likelihood of selection; values like -100 or 100 + * should result in a ban or exclusive selection of the relevant token. + * + * As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token + * from being generated. + */ + logit_bias?: { + [key: string]: number; + } | null; + /** + * Include the log probabilities on the `logprobs` most likely output tokens, as + * well the chosen tokens. For example, if `logprobs` is 5, the API will return a + * list of the 5 most likely tokens. The API will always return the `logprob` of + * the sampled token, so there may be up to `logprobs+1` elements in the response. + * + * The maximum value for `logprobs` is 5. + */ + logprobs?: number | null; + /** + * The maximum number of [tokens](/tokenizer) that can be generated in the + * completion. + * + * The token count of your prompt plus `max_tokens` cannot exceed the model's + * context length. + * [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) + * for counting tokens. + */ + max_tokens?: number | null; + /** + * How many completions to generate for each prompt. + * + * **Note:** Because this parameter generates many completions, it can quickly + * consume your token quota. Use carefully and ensure that you have reasonable + * settings for `max_tokens` and `stop`. + */ + n?: number | null; + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on + * whether they appear in the text so far, increasing the model's likelihood to + * talk about new topics. + * + * [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation) + */ + presence_penalty?: number | null; + /** + * If specified, our system will make a best effort to sample deterministically, + * such that repeated requests with the same `seed` and parameters should return + * the same result. + * + * Determinism is not guaranteed, and you should refer to the `system_fingerprint` + * response parameter to monitor changes in the backend. + */ + seed?: number | null; + /** + * Not supported with latest reasoning models `o3` and `o4-mini`. + * + * Up to 4 sequences where the API will stop generating further tokens. The + * returned text will not contain the stop sequence. + */ + stop?: string | null | Array; + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream?: boolean | null; + /** + * Options for streaming response. Only set this when you set `stream: true`. + */ + stream_options?: CompletionsCompletionsAPI.ChatCompletionStreamOptions | null; + /** + * The suffix that comes after a completion of inserted text. + * + * This parameter is only supported for `gpt-3.5-turbo-instruct`. + */ + suffix?: string | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. + * + * We generally recommend altering this or `top_p` but not both. + */ + temperature?: number | null; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace CompletionCreateParams { + type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; + type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; +} +export interface CompletionCreateParamsNonStreaming extends CompletionCreateParamsBase { + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream?: false | null; +} +export interface CompletionCreateParamsStreaming extends CompletionCreateParamsBase { + /** + * Whether to stream back partial progress. If set, tokens will be sent as + * data-only + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + * as they become available, with the stream terminated by a `data: [DONE]` + * message. + * [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions). + */ + stream: true; +} +export declare namespace Completions { + export { type Completion as Completion, type CompletionChoice as CompletionChoice, type CompletionUsage as CompletionUsage, type CompletionCreateParams as CompletionCreateParams, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, }; +} +//# sourceMappingURL=completions.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..72bd3b037bdfe94d0f3ddc00424e128cc9a54557 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../src/resources/completions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,KAAK,yBAAyB;OAC9B,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAClG,MAAM,CAAC,IAAI,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACvG,MAAM,CACJ,IA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AK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js new file mode 100644 index 0000000000000000000000000000000000000000..788f49d33ec55b8f86ddb5ccf53ca2dcdf280e06 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js @@ -0,0 +1,12 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Completions = void 0; +const resource_1 = require("../core/resource.js"); +class Completions extends resource_1.APIResource { + create(body, options) { + return this._client.post('/completions', { body, ...options, stream: body.stream ?? false }); + } +} +exports.Completions = Completions; +//# sourceMappingURL=completions.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9cbf82510d3da2016a7c8778ee838c4ea0120f2b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.js","sourceRoot":"","sources":["../src/resources/completions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAO/C,MAAa,WAAY,SAAQ,sBAAW;IAkB1C,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAEzD,CAAC;IACrC,CAAC;CACF;AA1BD,kCA0BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs new file mode 100644 index 0000000000000000000000000000000000000000..0faf8d6075d15155a6b983c6c93fc35582e44a80 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs @@ -0,0 +1,8 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +export class Completions extends APIResource { + create(body, options) { + return this._client.post('/completions', { body, ...options, stream: body.stream ?? false }); + } +} +//# sourceMappingURL=completions.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..a2530ecc908487e7c9ec5c19b957b622e1e5174c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/completions.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.mjs","sourceRoot":"","sources":["../src/resources/completions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAOtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAkB1C,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAEzD,CAAC;IACrC,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..60ec9fd14625309645739a0ca3072974c8e4af44 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts @@ -0,0 +1,2 @@ +export * from "./containers/index.mjs"; +//# sourceMappingURL=containers.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..9dd19db3fca029d8fe92d86d265dbb23ed603149 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.d.mts","sourceRoot":"","sources":["../src/resources/containers.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2531f4690ac896ff09593bc5d7bb96ea04983d3a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts @@ -0,0 +1,2 @@ +export * from "./containers/index.js"; +//# sourceMappingURL=containers.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ecc4bfdfa0371d487fadf0bc4b239c1e1e1e5cb0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../src/resources/containers.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js new file mode 100644 index 0000000000000000000000000000000000000000..53df8198eb6e6397b04e7215aa46a6298982a836 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./containers/index.js"), exports); +//# sourceMappingURL=containers.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d2bf00931aedec13f9b634d8c0d8867a56ba9b81 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.js","sourceRoot":"","sources":["../src/resources/containers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs new file mode 100644 index 0000000000000000000000000000000000000000..276383ce911cf55d0200e709925ad44ecd7d8a96 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./containers/index.mjs"; +//# sourceMappingURL=containers.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b857c41d9a6df1fc8b144f7816186cfc670ea5fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.mjs","sourceRoot":"","sources":["../src/resources/containers.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..527bb3050f45055363834fe94d6d7c92ce02e7c7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts @@ -0,0 +1,200 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as FilesAPI from "./files/files.mjs"; +import { FileCreateParams, FileCreateResponse, FileDeleteParams, FileListParams, FileListResponse, FileListResponsesPage, FileRetrieveParams, FileRetrieveResponse, Files } from "./files/files.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Containers extends APIResource { + files: FilesAPI.Files; + /** + * Create Container + */ + create(body: ContainerCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve Container + */ + retrieve(containerID: string, options?: RequestOptions): APIPromise; + /** + * List Containers + */ + list(query?: ContainerListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete Container + */ + delete(containerID: string, options?: RequestOptions): APIPromise; +} +export type ContainerListResponsesPage = CursorPage; +export interface ContainerCreateResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerCreateResponse.ExpiresAfter; +} +export declare namespace ContainerCreateResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerRetrieveResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerRetrieveResponse.ExpiresAfter; +} +export declare namespace ContainerRetrieveResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerListResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerListResponse.ExpiresAfter; +} +export declare namespace ContainerListResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerCreateParams { + /** + * Name of the container to create. + */ + name: string; + /** + * Container expiration time in seconds relative to the 'anchor' time. + */ + expires_after?: ContainerCreateParams.ExpiresAfter; + /** + * IDs of files to copy to the container. + */ + file_ids?: Array; +} +export declare namespace ContainerCreateParams { + /** + * Container expiration time in seconds relative to the 'anchor' time. + */ + interface ExpiresAfter { + /** + * Time anchor for the expiration time. Currently only 'last_active_at' is + * supported. + */ + anchor: 'last_active_at'; + minutes: number; + } +} +export interface ContainerListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Containers { + export { type ContainerCreateResponse as ContainerCreateResponse, type ContainerRetrieveResponse as ContainerRetrieveResponse, type ContainerListResponse as ContainerListResponse, type ContainerListResponsesPage as ContainerListResponsesPage, type ContainerCreateParams as ContainerCreateParams, type ContainerListParams as ContainerListParams, }; + export { Files as Files, type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileListResponsesPage as FileListResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, }; +} +//# sourceMappingURL=containers.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5af3c248bf92a0e48c8f4e25cb52a2463a507238 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.d.mts","sourceRoot":"","sources":["../../src/resources/containers/containers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,EACN;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,KAAK,EAAE,QA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AAK,GAAG,MAAM,CAAC;CACxB;AAID,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cf0f294d6020e345de1e9e4e2d036b25af7a9bdf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts @@ -0,0 +1,200 @@ +import { APIResource } from "../../core/resource.js"; +import * as FilesAPI from "./files/files.js"; +import { FileCreateParams, FileCreateResponse, FileDeleteParams, FileListParams, FileListResponse, FileListResponsesPage, FileRetrieveParams, FileRetrieveResponse, Files } from "./files/files.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Containers extends APIResource { + files: FilesAPI.Files; + /** + * Create Container + */ + create(body: ContainerCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve Container + */ + retrieve(containerID: string, options?: RequestOptions): APIPromise; + /** + * List Containers + */ + list(query?: ContainerListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete Container + */ + delete(containerID: string, options?: RequestOptions): APIPromise; +} +export type ContainerListResponsesPage = CursorPage; +export interface ContainerCreateResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerCreateResponse.ExpiresAfter; +} +export declare namespace ContainerCreateResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerRetrieveResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerRetrieveResponse.ExpiresAfter; +} +export declare namespace ContainerRetrieveResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerListResponse { + /** + * Unique identifier for the container. + */ + id: string; + /** + * Unix timestamp (in seconds) when the container was created. + */ + created_at: number; + /** + * Name of the container. + */ + name: string; + /** + * The type of this object. + */ + object: string; + /** + * Status of the container (e.g., active, deleted). + */ + status: string; + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + expires_after?: ContainerListResponse.ExpiresAfter; +} +export declare namespace ContainerListResponse { + /** + * The container will expire after this time period. The anchor is the reference + * point for the expiration. The minutes is the number of minutes after the anchor + * before the container expires. + */ + interface ExpiresAfter { + /** + * The reference point for the expiration. + */ + anchor?: 'last_active_at'; + /** + * The number of minutes after the anchor before the container expires. + */ + minutes?: number; + } +} +export interface ContainerCreateParams { + /** + * Name of the container to create. + */ + name: string; + /** + * Container expiration time in seconds relative to the 'anchor' time. + */ + expires_after?: ContainerCreateParams.ExpiresAfter; + /** + * IDs of files to copy to the container. + */ + file_ids?: Array; +} +export declare namespace ContainerCreateParams { + /** + * Container expiration time in seconds relative to the 'anchor' time. + */ + interface ExpiresAfter { + /** + * Time anchor for the expiration time. Currently only 'last_active_at' is + * supported. + */ + anchor: 'last_active_at'; + minutes: number; + } +} +export interface ContainerListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace Containers { + export { type ContainerCreateResponse as ContainerCreateResponse, type ContainerRetrieveResponse as ContainerRetrieveResponse, type ContainerListResponse as ContainerListResponse, type ContainerListResponsesPage as ContainerListResponsesPage, type ContainerCreateParams as ContainerCreateParams, type ContainerListParams as ContainerListParams, }; + export { Files as Files, type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileListResponsesPage as FileListResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, }; +} +//# sourceMappingURL=containers.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..99a6f9e22c63227907d4056dc730b54a84dcebaf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../../src/resources/containers/containers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,EACN;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;IAIjE;;OAEG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAE3E,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CA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a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js new file mode 100644 index 0000000000000000000000000000000000000000..692a5cdfb3e48cf32bf321a4699fc8a29f10d82a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js @@ -0,0 +1,47 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Containers = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const FilesAPI = tslib_1.__importStar(require("./files/files.js")); +const files_1 = require("./files/files.js"); +const pagination_1 = require("../../core/pagination.js"); +const headers_1 = require("../../internal/headers.js"); +const path_1 = require("../../internal/utils/path.js"); +class Containers extends resource_1.APIResource { + constructor() { + super(...arguments); + this.files = new FilesAPI.Files(this._client); + } + /** + * Create Container + */ + create(body, options) { + return this._client.post('/containers', { body, ...options }); + } + /** + * Retrieve Container + */ + retrieve(containerID, options) { + return this._client.get((0, path_1.path) `/containers/${containerID}`, options); + } + /** + * List Containers + */ + list(query = {}, options) { + return this._client.getAPIList('/containers', (pagination_1.CursorPage), { query, ...options }); + } + /** + * Delete Container + */ + delete(containerID, options) { + return this._client.delete((0, path_1.path) `/containers/${containerID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]), + }); + } +} +exports.Containers = Containers; +Containers.Files = files_1.Files; +//# sourceMappingURL=containers.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f554d32e180cffb632702c9166a08c33907fe55d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.js","sourceRoot":"","sources":["../../src/resources/containers/containers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,mEAA0C;AAC1C,4CAUuB;AAEvB,yDAAuF;AACvF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmC3D,CAAC;IAjCC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,uBAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AApCD,gCAoCC;AA2MD,UAAU,CAAC,KAAK,GAAG,aAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs new file mode 100644 index 0000000000000000000000000000000000000000..bc3d749fee95d7043896ee100c132fad95e0f1bc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as FilesAPI from "./files/files.mjs"; +import { Files, } from "./files/files.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Containers extends APIResource { + constructor() { + super(...arguments); + this.files = new FilesAPI.Files(this._client); + } + /** + * Create Container + */ + create(body, options) { + return this._client.post('/containers', { body, ...options }); + } + /** + * Retrieve Container + */ + retrieve(containerID, options) { + return this._client.get(path `/containers/${containerID}`, options); + } + /** + * List Containers + */ + list(query = {}, options) { + return this._client.getAPIList('/containers', (CursorPage), { query, ...options }); + } + /** + * Delete Container + */ + delete(containerID, options) { + return this._client.delete(path `/containers/${containerID}`, { + ...options, + headers: buildHeaders([{ Accept: '*/*' }, options?.headers]), + }); + } +} +Containers.Files = Files; +//# sourceMappingURL=containers.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..5b4df9e2c17a58964ef9fe5941ef287328877a5d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/containers.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"containers.mjs","sourceRoot":"","sources":["../../src/resources/containers/containers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EASL,KAAK,GACN;OAEM,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmC3D,CAAC;IAjCC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,UAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA2MD,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..ed366fe3e0dbe5a910d451337e792df31018cbc0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts @@ -0,0 +1,2 @@ +export * from "./files/index.mjs"; +//# sourceMappingURL=files.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..411b2c6d915228b17e18ba80f2bd58c25a96b03b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/containers/files.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..550bada7da163587b2bacfbba414fc004882ab88 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts @@ -0,0 +1,2 @@ +export * from "./files/index.js"; +//# sourceMappingURL=files.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ed42584507d3768088138ae9e7b2eb65a8a688d5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/containers/files.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js new file mode 100644 index 0000000000000000000000000000000000000000..0f265e1e84490441c1b660763199304b9e1be301 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./files/index.js"), exports); +//# sourceMappingURL=files.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js.map new file mode 100644 index 0000000000000000000000000000000000000000..270ebaea0afa097f2064f63adf46a4ad523b23de --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/containers/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs new file mode 100644 index 0000000000000000000000000000000000000000..030d685b92bb84edc686e473bbb29aff008c1917 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./files/index.mjs"; +//# sourceMappingURL=files.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c448e96a6a4420921d2c4c9cfd003a29c70005a9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/containers/files.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..d3adb877cff7d800bd1bf3a05d48fc6b008b2572 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts @@ -0,0 +1,16 @@ +import { APIResource } from "../../../core/resource.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Content extends APIResource { + /** + * Retrieve Container File Content + */ + retrieve(fileID: string, params: ContentRetrieveParams, options?: RequestOptions): APIPromise; +} +export interface ContentRetrieveParams { + container_id: string; +} +export declare namespace Content { + export { type ContentRetrieveParams as ContentRetrieveParams }; +} +//# sourceMappingURL=content.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..001b7e25770d33fcdf2e173eae9aa999eeae870b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../../../src/resources/containers/files/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAQxG;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a7c8b75dd03d5c9bc0e2b26f17b9a28c90f6e20a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts @@ -0,0 +1,16 @@ +import { APIResource } from "../../../core/resource.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Content extends APIResource { + /** + * Retrieve Container File Content + */ + retrieve(fileID: string, params: ContentRetrieveParams, options?: RequestOptions): APIPromise; +} +export interface ContentRetrieveParams { + container_id: string; +} +export declare namespace Content { + export { type ContentRetrieveParams as ContentRetrieveParams }; +} +//# sourceMappingURL=content.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..021426fd6930b946b0f692e4747426454af3ae3f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/resources/containers/files/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAQxG;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js new file mode 100644 index 0000000000000000000000000000000000000000..282fbf78a918dddc91856ba440c9b6980c1a69e7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js @@ -0,0 +1,22 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Content = void 0; +const resource_1 = require("../../../core/resource.js"); +const headers_1 = require("../../../internal/headers.js"); +const path_1 = require("../../../internal/utils/path.js"); +class Content extends resource_1.APIResource { + /** + * Retrieve Container File Content + */ + retrieve(fileID, params, options) { + const { container_id } = params; + return this._client.get((0, path_1.path) `/containers/${container_id}/files/${fileID}/content`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: 'application/binary' }, options?.headers]), + __binaryResponse: true, + }); + } +} +exports.Content = Content; +//# sourceMappingURL=content.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e0cc5408019e3fd2b10a2ff93f423eef20154683 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.js.map @@ -0,0 +1 @@ +{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/resources/containers/files/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA6B,EAAE,OAAwB;QAC9E,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,YAAY,UAAU,MAAM,UAAU,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC3E,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAZD,0BAYC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs new file mode 100644 index 0000000000000000000000000000000000000000..aa81f7bb58e5d0a79939719ad893dc9b11fe6804 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +export class Content extends APIResource { + /** + * Retrieve Container File Content + */ + retrieve(fileID, params, options) { + const { container_id } = params; + return this._client.get(path `/containers/${container_id}/files/${fileID}/content`, { + ...options, + headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]), + __binaryResponse: true, + }); + } +} +//# sourceMappingURL=content.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..5a8a54f4e05abe4dbdc5905f6b788eed269aef21 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/content.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"content.mjs","sourceRoot":"","sources":["../../../src/resources/containers/files/content.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA6B,EAAE,OAAwB;QAC9E,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,YAAY,UAAU,MAAM,UAAU,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC3E,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4ddefdb118d22c4ccc55e39e2fe42f86eb846691 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts @@ -0,0 +1,148 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as ContentAPI from "./content.mjs"; +import { Content, ContentRetrieveParams } from "./content.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { type Uploadable } from "../../../core/uploads.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Files extends APIResource { + content: ContentAPI.Content; + /** + * Create a Container File + * + * You can send either a multipart/form-data request with the raw file content, or + * a JSON request with a file ID. + */ + create(containerID: string, body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve Container File + */ + retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise; + /** + * List Container files + */ + list(containerID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete Container File + */ + delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise; +} +export type FileListResponsesPage = CursorPage; +export interface FileCreateResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileRetrieveResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileListResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileCreateParams { + /** + * The File object (not file name) to be uploaded. + */ + file?: Uploadable; + /** + * Name of the file to create. + */ + file_id?: string; +} +export interface FileRetrieveParams { + container_id: string; +} +export interface FileListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface FileDeleteParams { + container_id: string; +} +export declare namespace Files { + export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileListResponsesPage as FileListResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, }; + export { Content as Content, type ContentRetrieveParams as ContentRetrieveParams }; +} +//# sourceMappingURL=files.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..7e840caf6ee26e40fae23d8573810830466e792a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../../src/resources/containers/files/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,qBAAqB,EAAE;OAClC,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;OAKG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAOjC;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UA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EG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CACpF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..01f923972e79429eb5696e51e670a1f3ba9514a7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts @@ -0,0 +1,148 @@ +import { APIResource } from "../../../core/resource.js"; +import * as ContentAPI from "./content.js"; +import { Content, ContentRetrieveParams } from "./content.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { type Uploadable } from "../../../core/uploads.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Files extends APIResource { + content: ContentAPI.Content; + /** + * Create a Container File + * + * You can send either a multipart/form-data request with the raw file content, or + * a JSON request with a file ID. + */ + create(containerID: string, body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieve Container File + */ + retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise; + /** + * List Container files + */ + list(containerID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete Container File + */ + delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise; +} +export type FileListResponsesPage = CursorPage; +export interface FileCreateResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileRetrieveResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileListResponse { + /** + * Unique identifier for the file. + */ + id: string; + /** + * Size of the file in bytes. + */ + bytes: number; + /** + * The container this file belongs to. + */ + container_id: string; + /** + * Unix timestamp (in seconds) when the file was created. + */ + created_at: number; + /** + * The type of this object (`container.file`). + */ + object: 'container.file'; + /** + * Path of the file in the container. + */ + path: string; + /** + * Source of the file (e.g., `user`, `assistant`). + */ + source: string; +} +export interface FileCreateParams { + /** + * The File object (not file name) to be uploaded. + */ + file?: Uploadable; + /** + * Name of the file to create. + */ + file_id?: string; +} +export interface FileRetrieveParams { + container_id: string; +} +export interface FileListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface FileDeleteParams { + container_id: string; +} +export declare namespace Files { + export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileListResponsesPage as FileListResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, }; + export { Content as Content, type ContentRetrieveParams as ContentRetrieveParams }; +} +//# sourceMappingURL=files.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f9135b3382a9c14d525ff004454f2d45128491b0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/resources/containers/files/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,qBAAqB,EAAE;OAClC,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;OAKG;IACH,MAAM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_modules/openai/resources/containers/files/files.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.js new file mode 100644 index 0000000000000000000000000000000000000000..af0d22cb85568323098e0928884534d92348d196 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.js @@ -0,0 +1,56 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Files = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const ContentAPI = tslib_1.__importStar(require("./content.js")); +const content_1 = require("./content.js"); +const pagination_1 = require("../../../core/pagination.js"); +const headers_1 = require("../../../internal/headers.js"); +const uploads_1 = require("../../../internal/uploads.js"); +const path_1 = require("../../../internal/utils/path.js"); +class Files extends resource_1.APIResource { + constructor() { + super(...arguments); + this.content = new ContentAPI.Content(this._client); + } + /** + * Create a Container File + * + * You can send either a multipart/form-data request with the raw file content, or + * a JSON request with a file ID. + */ + create(containerID, body, options) { + return this._client.post((0, path_1.path) `/containers/${containerID}/files`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client)); + } + /** + * Retrieve Container File + */ + retrieve(fileID, params, options) { + const { container_id } = params; + return this._client.get((0, path_1.path) `/containers/${container_id}/files/${fileID}`, options); + } + /** + * List Container files + */ + list(containerID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/containers/${containerID}/files`, (pagination_1.CursorPage), { + query, + ...options, + }); + } + /** + * Delete Container File + */ + delete(fileID, params, options) { + const { container_id } = params; + return this._client.delete((0, path_1.path) `/containers/${container_id}/files/${fileID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]), + }); + } +} +exports.Files = Files; +Files.Content = content_1.Content; +//# sourceMappingURL=files.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.js.map new file mode 100644 index 0000000000000000000000000000000000000000..113d83b7abc063ad098ca150b3eaaa00a1f4e29c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/resources/containers/files/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAA2D;AAE3D,4DAA0F;AAE1F,0DAAyD;AAEzD,0DAAwE;AACxE,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuDrE,CAAC;IArDC;;;;;OAKG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,eAAe,WAAW,QAAQ,EACtC,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,YAAY,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,QAAQ,EAAE,CAAA,uBAA4B,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,YAAY,UAAU,MAAM,EAAE,EAAE;YAC5E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAxDD,sBAwDC;AA+ID,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs new file mode 100644 index 0000000000000000000000000000000000000000..be01017fc2b91f788f91439938dea75e0a1ef7a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as ContentAPI from "./content.mjs"; +import { Content } from "./content.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { buildHeaders } from "../../../internal/headers.mjs"; +import { multipartFormRequestOptions } from "../../../internal/uploads.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +export class Files extends APIResource { + constructor() { + super(...arguments); + this.content = new ContentAPI.Content(this._client); + } + /** + * Create a Container File + * + * You can send either a multipart/form-data request with the raw file content, or + * a JSON request with a file ID. + */ + create(containerID, body, options) { + return this._client.post(path `/containers/${containerID}/files`, multipartFormRequestOptions({ body, ...options }, this._client)); + } + /** + * Retrieve Container File + */ + retrieve(fileID, params, options) { + const { container_id } = params; + return this._client.get(path `/containers/${container_id}/files/${fileID}`, options); + } + /** + * List Container files + */ + list(containerID, query = {}, options) { + return this._client.getAPIList(path `/containers/${containerID}/files`, (CursorPage), { + query, + ...options, + }); + } + /** + * Delete Container File + */ + delete(fileID, params, options) { + const { container_id } = params; + return this._client.delete(path `/containers/${container_id}/files/${fileID}`, { + ...options, + headers: buildHeaders([{ Accept: '*/*' }, options?.headers]), + }); + } +} +Files.Content = Content; +//# sourceMappingURL=files.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..7609e975bb3f57782c48d95c1a8f1a2e6fe8c13f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/files.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../../src/resources/containers/files/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAyB;OAElC,EAAE,UAAU,EAAsC;OAElD,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuDrE,CAAC;IArDC;;;;;OAKG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,eAAe,WAAW,QAAQ,EACtC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,YAAY,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,eAAe,WAAW,QAAQ,EAAE,CAAA,UAA4B,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,YAAY,UAAU,MAAM,EAAE,EAAE;YAC5E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA+ID,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..ab6d306e3661a8c818aa8434f83aa70198ca53cd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts @@ -0,0 +1,3 @@ +export { Content, type ContentRetrieveParams } from "./content.mjs"; +export { Files, type FileCreateResponse, type FileRetrieveResponse, type FileListResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileListResponsesPage, } from "./files.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f0edac4a504c19b058c9c6d787ddc7c4e3adf149 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/containers/files/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE;OACvC,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..857dce23d9f454535c9afd5c77431370e7a1b22b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts @@ -0,0 +1,3 @@ +export { Content, type ContentRetrieveParams } from "./content.js"; +export { Files, type FileCreateResponse, type FileRetrieveResponse, type FileListResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileListResponsesPage, } from "./files.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e81ba0e28c1ce1fe0ac5874237909d49b5411617 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/containers/files/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE;OACvC,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js new file mode 100644 index 0000000000000000000000000000000000000000..7bc49785c1382f0877d75520e47516cc79af36ce --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Files = exports.Content = void 0; +var content_1 = require("./content.js"); +Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_1.Content; } }); +var files_1 = require("./files.js"); +Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a6a1064f8d6f86c768254a5c73e91175ba26c4f7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/containers/files/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAgE;AAAvD,kGAAA,OAAO,OAAA;AAChB,oCAUiB;AATf,8FAAA,KAAK,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c1e8321a640ecc44e6f9ad7312d37157a2efe272 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Content } from "./content.mjs"; +export { Files, } from "./files.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..d64962f75653aefc0086677154c680702d36bdf3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/files/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/containers/files/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA8B;OACvC,EACL,KAAK,GASN"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..1528cafac921b46ffc4673444b534b438410bb32 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts @@ -0,0 +1,3 @@ +export { Containers, type ContainerCreateResponse, type ContainerRetrieveResponse, type ContainerListResponse, type ContainerCreateParams, type ContainerListParams, type ContainerListResponsesPage, } from "./containers.mjs"; +export { Files, type FileCreateResponse, type FileRetrieveResponse, type FileListResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileListResponsesPage, } from "./files/index.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..bd175ad8429a55c8b0f48fc32bda0ed8858ded4b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/containers/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b3c7c7669bfc17f74cef74a847a7086e9664f7e5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts @@ -0,0 +1,3 @@ +export { Containers, type ContainerCreateResponse, type ContainerRetrieveResponse, type ContainerListResponse, type ContainerCreateParams, type ContainerListParams, type ContainerListResponsesPage, } from "./containers.js"; +export { Files, type FileCreateResponse, type FileRetrieveResponse, type FileListResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileListResponsesPage, } from "./files/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..82cca8edce815849572552edd899a9956697ea0a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/containers/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fac8c597e017acafaefc626a1d1ca1ea30d4d7f8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Files = exports.Containers = void 0; +var containers_1 = require("./containers.js"); +Object.defineProperty(exports, "Containers", { enumerable: true, get: function () { return containers_1.Containers; } }); +var index_1 = require("./files/index.js"); +Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return index_1.Files; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0c2e790441ee7c0c0675dc9fdb3bb1dfc53eb113 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/containers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAQsB;AAPpB,wGAAA,UAAU,OAAA;AAQZ,0CAUuB;AATrB,8FAAA,KAAK,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d0c78c90da606cb02d4b9062a5dc0bffa22bd445 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Containers, } from "./containers.mjs"; +export { Files, } from "./files/index.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..972a87d229a0fe756a4da27a6799d75dd62c62f0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/containers/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/containers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAOX;OACM,EACL,KAAK,GASN"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..c50e04660bf5b124ae315725d02b7d0fc144d66c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts @@ -0,0 +1,2 @@ +export * from "./conversations/index.mjs"; +//# sourceMappingURL=conversations.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..ebe17acdcc30ae95d894acafac7a400da6a315b3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..505e9fc67cc6ab951c6a45016c7a03bda94a635a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts @@ -0,0 +1,2 @@ +export * from "./conversations/index.js"; +//# sourceMappingURL=conversations.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..5efd0ca02a1f7eb66f4422269358b5b5c31593f9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js new file mode 100644 index 0000000000000000000000000000000000000000..37bc834b428160085c28091d7c60c690db493ce8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./conversations/index.js"), exports); +//# sourceMappingURL=conversations.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js.map new file mode 100644 index 0000000000000000000000000000000000000000..8bb96fe789cb6c628168cba87cdcd7ee8343c468 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAsC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs new file mode 100644 index 0000000000000000000000000000000000000000..be4a5297d07e3e97b1c66b83f35d371f38abb945 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./conversations/index.mjs"; +//# sourceMappingURL=conversations.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..969e9550b610c5b5a97d763ab14e8067bce303ec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..f262f8177c83b10385acd411d8b571966f86c654 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts @@ -0,0 +1,285 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as Shared from "../shared.mjs"; +import * as ItemsAPI from "./items.mjs"; +import { ConversationItem, ConversationItemList, ConversationItemsPage, ItemCreateParams, ItemDeleteParams, ItemListParams, ItemRetrieveParams, Items } from "./items.mjs"; +import * as ResponsesAPI from "../responses/responses.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Conversations extends APIResource { + items: ItemsAPI.Items; + /** + * Create a conversation. + */ + create(body: ConversationCreateParams, options?: RequestOptions): APIPromise; + /** + * Get a conversation with the given ID. + */ + retrieve(conversationID: string, options?: RequestOptions): APIPromise; + /** + * Update a conversation's metadata with the given ID. + */ + update(conversationID: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise; + /** + * Delete a conversation with the given ID. + */ + delete(conversationID: string, options?: RequestOptions): APIPromise; +} +export interface ComputerScreenshotContent { + /** + * The identifier of an uploaded file that contains the screenshot. + */ + file_id: string | null; + /** + * The URL of the screenshot image. + */ + image_url: string | null; + /** + * Specifies the event type. For a computer screenshot, this property is always set + * to `computer_screenshot`. + */ + type: 'computer_screenshot'; +} +export interface ContainerFileCitationBody { + /** + * The ID of the container file. + */ + container_id: string; + /** + * The index of the last character of the container file citation in the message. + */ + end_index: number; + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the container file cited. + */ + filename: string; + /** + * The index of the first character of the container file citation in the message. + */ + start_index: number; + /** + * The type of the container file citation. Always `container_file_citation`. + */ + type: 'container_file_citation'; +} +export interface Conversation { + /** + * The unique ID of the conversation. + */ + id: string; + /** + * The time at which the conversation was created, measured in seconds since the + * Unix epoch. + */ + created_at: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters. + */ + metadata: unknown; + /** + * The object type, which is always `conversation`. + */ + object: 'conversation'; +} +export interface ConversationDeleted { + id: string; + deleted: boolean; + object: 'conversation.deleted'; +} +export interface ConversationDeletedResource { + id: string; + deleted: boolean; + object: 'conversation.deleted'; +} +export interface FileCitationBody { + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the file cited. + */ + filename: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file citation. Always `file_citation`. + */ + type: 'file_citation'; +} +export interface InputFileContent { + /** + * The ID of the file to be sent to the model. + */ + file_id: string | null; + /** + * The type of the input item. Always `input_file`. + */ + type: 'input_file'; + /** + * The URL of the file to be sent to the model. + */ + file_url?: string; + /** + * The name of the file to be sent to the model. + */ + filename?: string; +} +export interface InputImageContent { + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail: 'low' | 'high' | 'auto'; + /** + * The ID of the file to be sent to the model. + */ + file_id: string | null; + /** + * The URL of the image to be sent to the model. A fully qualified URL or base64 + * encoded image in a data URL. + */ + image_url: string | null; + /** + * The type of the input item. Always `input_image`. + */ + type: 'input_image'; +} +export interface InputTextContent { + /** + * The text input to the model. + */ + text: string; + /** + * The type of the input item. Always `input_text`. + */ + type: 'input_text'; +} +export interface LobProb { + token: string; + bytes: Array; + logprob: number; + top_logprobs: Array; +} +export interface Message { + /** + * The unique ID of the message. + */ + id: string; + /** + * The content of the message + */ + content: Array; + /** + * The role of the message. One of `unknown`, `user`, `assistant`, `system`, + * `critic`, `discriminator`, `developer`, or `tool`. + */ + role: 'unknown' | 'user' | 'assistant' | 'system' | 'critic' | 'discriminator' | 'developer' | 'tool'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message. Always set to `message`. + */ + type: 'message'; +} +export interface OutputTextContent { + /** + * The annotations of the text output. + */ + annotations: Array; + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + logprobs?: Array; +} +export interface RefusalContent { + /** + * The refusal explanation from the model. + */ + refusal: string; + /** + * The type of the refusal. Always `refusal`. + */ + type: 'refusal'; +} +export interface SummaryTextContent { + text: string; + type: 'summary_text'; +} +export interface TextContent { + text: string; + type: 'text'; +} +export interface TopLogProb { + token: string; + bytes: Array; + logprob: number; +} +export interface URLCitationBody { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * The URL of the web resource. + */ + url: string; +} +export interface ConversationCreateParams { + /** + * Initial items to include in the conversation context. You may add up to 20 items + * at a time. + */ + items?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. Useful for storing + * additional information about the object in a structured format. + */ + metadata?: Shared.Metadata | null; +} +export interface ConversationUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters. + */ + metadata: { + [key: string]: string; + }; +} +export declare namespace Conversations { + export { type ComputerScreenshotContent as ComputerScreenshotContent, type ContainerFileCitationBody as ContainerFileCitationBody, type Conversation as Conversation, type ConversationDeleted as ConversationDeleted, type ConversationDeletedResource as ConversationDeletedResource, type FileCitationBody as FileCitationBody, type InputFileContent as InputFileContent, type InputImageContent as InputImageContent, type InputTextContent as InputTextContent, type LobProb as LobProb, type Message as Message, type OutputTextContent as OutputTextContent, type RefusalContent as RefusalContent, type SummaryTextContent as SummaryTextContent, type TextContent as TextContent, type TopLogProb as TopLogProb, type URLCitationBody as URLCitationBody, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, }; + export { Items as Items, type ConversationItem as ConversationItem, type ConversationItemList as ConversationItemList, type ConversationItemsPage as ConversationItemsPage, type ItemCreateParams as ItemCreateParams, type ItemRetrieveParams as ItemRetrieveParams, type ItemListParams as ItemListParams, type ItemDeleteParams as ItemDeleteParams, }; +} +//# sourceMappingURL=conversations.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c380f880786111923382824f87678f07a8ed1341 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,KAAK,EACN;OACM,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CA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AK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a573b0e09ef2b83a517d07a31597a7913d35b8dd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts @@ -0,0 +1,285 @@ +import { APIResource } from "../../core/resource.js"; +import * as Shared from "../shared.js"; +import * as ItemsAPI from "./items.js"; +import { ConversationItem, ConversationItemList, ConversationItemsPage, ItemCreateParams, ItemDeleteParams, ItemListParams, ItemRetrieveParams, Items } from "./items.js"; +import * as ResponsesAPI from "../responses/responses.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Conversations extends APIResource { + items: ItemsAPI.Items; + /** + * Create a conversation. + */ + create(body: ConversationCreateParams, options?: RequestOptions): APIPromise; + /** + * Get a conversation with the given ID. + */ + retrieve(conversationID: string, options?: RequestOptions): APIPromise; + /** + * Update a conversation's metadata with the given ID. + */ + update(conversationID: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise; + /** + * Delete a conversation with the given ID. + */ + delete(conversationID: string, options?: RequestOptions): APIPromise; +} +export interface ComputerScreenshotContent { + /** + * The identifier of an uploaded file that contains the screenshot. + */ + file_id: string | null; + /** + * The URL of the screenshot image. + */ + image_url: string | null; + /** + * Specifies the event type. For a computer screenshot, this property is always set + * to `computer_screenshot`. + */ + type: 'computer_screenshot'; +} +export interface ContainerFileCitationBody { + /** + * The ID of the container file. + */ + container_id: string; + /** + * The index of the last character of the container file citation in the message. + */ + end_index: number; + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the container file cited. + */ + filename: string; + /** + * The index of the first character of the container file citation in the message. + */ + start_index: number; + /** + * The type of the container file citation. Always `container_file_citation`. + */ + type: 'container_file_citation'; +} +export interface Conversation { + /** + * The unique ID of the conversation. + */ + id: string; + /** + * The time at which the conversation was created, measured in seconds since the + * Unix epoch. + */ + created_at: number; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters. + */ + metadata: unknown; + /** + * The object type, which is always `conversation`. + */ + object: 'conversation'; +} +export interface ConversationDeleted { + id: string; + deleted: boolean; + object: 'conversation.deleted'; +} +export interface ConversationDeletedResource { + id: string; + deleted: boolean; + object: 'conversation.deleted'; +} +export interface FileCitationBody { + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the file cited. + */ + filename: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file citation. Always `file_citation`. + */ + type: 'file_citation'; +} +export interface InputFileContent { + /** + * The ID of the file to be sent to the model. + */ + file_id: string | null; + /** + * The type of the input item. Always `input_file`. + */ + type: 'input_file'; + /** + * The URL of the file to be sent to the model. + */ + file_url?: string; + /** + * The name of the file to be sent to the model. + */ + filename?: string; +} +export interface InputImageContent { + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail: 'low' | 'high' | 'auto'; + /** + * The ID of the file to be sent to the model. + */ + file_id: string | null; + /** + * The URL of the image to be sent to the model. A fully qualified URL or base64 + * encoded image in a data URL. + */ + image_url: string | null; + /** + * The type of the input item. Always `input_image`. + */ + type: 'input_image'; +} +export interface InputTextContent { + /** + * The text input to the model. + */ + text: string; + /** + * The type of the input item. Always `input_text`. + */ + type: 'input_text'; +} +export interface LobProb { + token: string; + bytes: Array; + logprob: number; + top_logprobs: Array; +} +export interface Message { + /** + * The unique ID of the message. + */ + id: string; + /** + * The content of the message + */ + content: Array; + /** + * The role of the message. One of `unknown`, `user`, `assistant`, `system`, + * `critic`, `discriminator`, `developer`, or `tool`. + */ + role: 'unknown' | 'user' | 'assistant' | 'system' | 'critic' | 'discriminator' | 'developer' | 'tool'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message. Always set to `message`. + */ + type: 'message'; +} +export interface OutputTextContent { + /** + * The annotations of the text output. + */ + annotations: Array; + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + logprobs?: Array; +} +export interface RefusalContent { + /** + * The refusal explanation from the model. + */ + refusal: string; + /** + * The type of the refusal. Always `refusal`. + */ + type: 'refusal'; +} +export interface SummaryTextContent { + text: string; + type: 'summary_text'; +} +export interface TextContent { + text: string; + type: 'text'; +} +export interface TopLogProb { + token: string; + bytes: Array; + logprob: number; +} +export interface URLCitationBody { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * The URL of the web resource. + */ + url: string; +} +export interface ConversationCreateParams { + /** + * Initial items to include in the conversation context. You may add up to 20 items + * at a time. + */ + items?: Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. Useful for storing + * additional information about the object in a structured format. + */ + metadata?: Shared.Metadata | null; +} +export interface ConversationUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters. + */ + metadata: { + [key: string]: string; + }; +} +export declare namespace Conversations { + export { type ComputerScreenshotContent as ComputerScreenshotContent, type ContainerFileCitationBody as ContainerFileCitationBody, type Conversation as Conversation, type ConversationDeleted as ConversationDeleted, type ConversationDeletedResource as ConversationDeletedResource, type FileCitationBody as FileCitationBody, type InputFileContent as InputFileContent, type InputImageContent as InputImageContent, type InputTextContent as InputTextContent, type LobProb as LobProb, type Message as Message, type OutputTextContent as OutputTextContent, type RefusalContent as RefusalContent, type SummaryTextContent as SummaryTextContent, type TextContent as TextContent, type TopLogProb as TopLogProb, type URLCitationBody as URLCitationBody, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, }; + export { Items as Items, type ConversationItem as ConversationItem, type ConversationItemList as ConversationItemList, type ConversationItemsPage as ConversationItemsPage, type ItemCreateParams as ItemCreateParams, type ItemRetrieveParams as ItemRetrieveParams, type ItemListParams as ItemListParams, type ItemDeleteParams as ItemDeleteParams, }; +} +//# sourceMappingURL=conversations.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..34a9b989a9bebf8283de3c7331b4229822edc901 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,KAAK,EACN;OACM,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAA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,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js new file mode 100644 index 0000000000000000000000000000000000000000..b7357b5a63678989c2fdc5d38b8a7fcf3ec4fc47 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js @@ -0,0 +1,42 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Conversations = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const ItemsAPI = tslib_1.__importStar(require("./items.js")); +const items_1 = require("./items.js"); +const path_1 = require("../../internal/utils/path.js"); +class Conversations extends resource_1.APIResource { + constructor() { + super(...arguments); + this.items = new ItemsAPI.Items(this._client); + } + /** + * Create a conversation. + */ + create(body, options) { + return this._client.post('/conversations', { body, ...options }); + } + /** + * Get a conversation with the given ID. + */ + retrieve(conversationID, options) { + return this._client.get((0, path_1.path) `/conversations/${conversationID}`, options); + } + /** + * Update a conversation's metadata with the given ID. + */ + update(conversationID, body, options) { + return this._client.post((0, path_1.path) `/conversations/${conversationID}`, { body, ...options }); + } + /** + * Delete a conversation with the given ID. + */ + delete(conversationID, options) { + return this._client.delete((0, path_1.path) `/conversations/${conversationID}`, options); + } +} +exports.Conversations = Conversations; +Conversations.Items = items_1.Items; +//# sourceMappingURL=conversations.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js.map new file mode 100644 index 0000000000000000000000000000000000000000..db2da0618218e044414bbd6fe30a34df9145f972 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/conversations/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCASiB;AAIjB,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiC3D,CAAC;IA/BC;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAlCD,sCAkCC;AAsUD,aAAa,CAAC,KAAK,GAAG,aAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs new file mode 100644 index 0000000000000000000000000000000000000000..98b3b13e77ef9c687e466783ceec6a8b19025a9d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as ItemsAPI from "./items.mjs"; +import { Items, } from "./items.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Conversations extends APIResource { + constructor() { + super(...arguments); + this.items = new ItemsAPI.Items(this._client); + } + /** + * Create a conversation. + */ + create(body, options) { + return this._client.post('/conversations', { body, ...options }); + } + /** + * Get a conversation with the given ID. + */ + retrieve(conversationID, options) { + return this._client.get(path `/conversations/${conversationID}`, options); + } + /** + * Update a conversation's metadata with the given ID. + */ + update(conversationID, body, options) { + return this._client.post(path `/conversations/${conversationID}`, { body, ...options }); + } + /** + * Delete a conversation with the given ID. + */ + delete(conversationID, options) { + return this._client.delete(path `/conversations/${conversationID}`, options); + } +} +Conversations.Items = Items; +//# sourceMappingURL=conversations.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..e56a319d1a00537ba65b7fa100fae62bd8f8779e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/conversations.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/conversations/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EAQL,KAAK,GACN;OAIM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiC3D,CAAC;IA/BC;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAsUD,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..71acb2e8f3ba5a040994b43af5ce93fe87ebc39c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts @@ -0,0 +1,3 @@ +export { Conversations } from "./conversations.mjs"; +export { Items, type ConversationItem, type ConversationItemList, type ItemCreateParams, type ItemRetrieveParams, type ItemListParams, type ItemDeleteParams, type ConversationItemsPage, } from "./items.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..8a13323571445badc6608aa1af157080349110ab --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/conversations/index.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE;OACjB,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ef75cb4858c1ad30173092dc8c0b581a38042b19 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts @@ -0,0 +1,3 @@ +export { Conversations } from "./conversations.js"; +export { Items, type ConversationItem, type ConversationItemList, type ItemCreateParams, type ItemRetrieveParams, type ItemListParams, type ItemDeleteParams, type ConversationItemsPage, } from "./items.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6cd1c46886a57333d591223a65b99700a951ba83 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/conversations/index.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE;OACjB,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js new file mode 100644 index 0000000000000000000000000000000000000000..ecd3e619e9536c907fe78f9c216c222c90d3a93b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Items = exports.Conversations = void 0; +var conversations_1 = require("./conversations.js"); +Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } }); +var items_1 = require("./items.js"); +Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..6b9c06709691202c80b9eff0bcd45184ab0d9dd6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/conversations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,oCASiB;AARf,8FAAA,KAAK,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..52fe5363dc8df9536b55ed8f6d31b4549310e064 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Conversations } from "./conversations.mjs"; +export { Items, } from "./items.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..da4bf82291b6ed0540e21db3f64c7f82180dced3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/conversations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,aAAa,EAAE;OACjB,EACL,KAAK,GAQN"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..090e44008d5c0b3b8bcb4a32a1aa457dd9a053f7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts @@ -0,0 +1,356 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as ConversationsAPI from "./conversations.mjs"; +import * as ResponsesAPI from "../responses/responses.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { ConversationCursorPage, type ConversationCursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Items extends APIResource { + /** + * Create items in a conversation with the given ID. + */ + create(conversationID: string, params: ItemCreateParams, options?: RequestOptions): APIPromise; + /** + * Get a single item from a conversation with the given IDs. + */ + retrieve(itemID: string, params: ItemRetrieveParams, options?: RequestOptions): APIPromise; + /** + * List all items for a conversation with the given ID. + */ + list(conversationID: string, query?: ItemListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an item from a conversation with the given IDs. + */ + delete(itemID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise; +} +export type ConversationItemsPage = ConversationCursorPage; +/** + * A single item within a conversation. The set of possible types are the same as + * the `output` type of a + * [Response object](https://platform.openai.com/docs/api-reference/responses/object#responses/object-output). + */ +export type ConversationItem = ConversationsAPI.Message | ResponsesAPI.ResponseFunctionToolCallItem | ResponsesAPI.ResponseFunctionToolCallOutputItem | ResponsesAPI.ResponseFileSearchToolCall | ResponsesAPI.ResponseFunctionWebSearch | ConversationItem.ImageGenerationCall | ResponsesAPI.ResponseComputerToolCall | ResponsesAPI.ResponseComputerToolCallOutputItem | ResponsesAPI.ResponseReasoningItem | ResponsesAPI.ResponseCodeInterpreterToolCall | ConversationItem.LocalShellCall | ConversationItem.LocalShellCallOutput | ConversationItem.McpListTools | ConversationItem.McpApprovalRequest | ConversationItem.McpApprovalResponse | ConversationItem.McpCall | ResponsesAPI.ResponseCustomToolCall | ResponsesAPI.ResponseCustomToolCallOutput; +export declare namespace ConversationItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The unique ID of the approval response + */ + id: string; + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } +} +/** + * A list of Conversation items. + */ +export interface ConversationItemList { + /** + * A list of conversation items. + */ + data: Array; + /** + * The ID of the first item in the list. + */ + first_id: string; + /** + * Whether there are more items available. + */ + has_more: boolean; + /** + * The ID of the last item in the list. + */ + last_id: string; + /** + * The type of object returned, must be `list`. + */ + object: 'list'; +} +export interface ItemCreateParams { + /** + * Body param: The items to add to the conversation. You may add up to 20 items at + * a time. + */ + items: Array; + /** + * Query param: Additional fields to include in the response. See the `include` + * parameter for + * [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include) + * for more information. + */ + include?: Array; +} +export interface ItemRetrieveParams { + /** + * Path param: The ID of the conversation that contains the item. + */ + conversation_id: string; + /** + * Query param: Additional fields to include in the response. See the `include` + * parameter for + * [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include) + * for more information. + */ + include?: Array; +} +export interface ItemListParams extends ConversationCursorPageParams { + /** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `message.output_text.logprobs`: Include logprobs with assistant messages. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + */ + include?: Array; + /** + * The order to return the input items in. Default is `desc`. + * + * - `asc`: Return the input items in ascending order. + * - `desc`: Return the input items in descending order. + */ + order?: 'asc' | 'desc'; +} +export interface ItemDeleteParams { + /** + * The ID of the conversation that contains the item. + */ + conversation_id: string; +} +export declare namespace Items { + export { type ConversationItem as ConversationItem, type ConversationItemList as ConversationItemList, type ConversationItemsPage as ConversationItemsPage, type ItemCreateParams as ItemCreateParams, type ItemRetrieveParams as ItemRetrieveParams, type ItemListParams as ItemListParams, type ItemDeleteParams as ItemDeleteParams, }; +} +//# sourceMappingURL=items.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..1fbab8f3f383229333b66229e823f8858ce8fb81 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../src/resources/conversations/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EACL,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACv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,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2b8b483fe172d4bc8b33affb3b2b4da441f5ef20 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts @@ -0,0 +1,356 @@ +import { APIResource } from "../../core/resource.js"; +import * as ConversationsAPI from "./conversations.js"; +import * as ResponsesAPI from "../responses/responses.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { ConversationCursorPage, type ConversationCursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Items extends APIResource { + /** + * Create items in a conversation with the given ID. + */ + create(conversationID: string, params: ItemCreateParams, options?: RequestOptions): APIPromise; + /** + * Get a single item from a conversation with the given IDs. + */ + retrieve(itemID: string, params: ItemRetrieveParams, options?: RequestOptions): APIPromise; + /** + * List all items for a conversation with the given ID. + */ + list(conversationID: string, query?: ItemListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an item from a conversation with the given IDs. + */ + delete(itemID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise; +} +export type ConversationItemsPage = ConversationCursorPage; +/** + * A single item within a conversation. The set of possible types are the same as + * the `output` type of a + * [Response object](https://platform.openai.com/docs/api-reference/responses/object#responses/object-output). + */ +export type ConversationItem = ConversationsAPI.Message | ResponsesAPI.ResponseFunctionToolCallItem | ResponsesAPI.ResponseFunctionToolCallOutputItem | ResponsesAPI.ResponseFileSearchToolCall | ResponsesAPI.ResponseFunctionWebSearch | ConversationItem.ImageGenerationCall | ResponsesAPI.ResponseComputerToolCall | ResponsesAPI.ResponseComputerToolCallOutputItem | ResponsesAPI.ResponseReasoningItem | ResponsesAPI.ResponseCodeInterpreterToolCall | ConversationItem.LocalShellCall | ConversationItem.LocalShellCallOutput | ConversationItem.McpListTools | ConversationItem.McpApprovalRequest | ConversationItem.McpApprovalResponse | ConversationItem.McpCall | ResponsesAPI.ResponseCustomToolCall | ResponsesAPI.ResponseCustomToolCallOutput; +export declare namespace ConversationItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The unique ID of the approval response + */ + id: string; + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } +} +/** + * A list of Conversation items. + */ +export interface ConversationItemList { + /** + * A list of conversation items. + */ + data: Array; + /** + * The ID of the first item in the list. + */ + first_id: string; + /** + * Whether there are more items available. + */ + has_more: boolean; + /** + * The ID of the last item in the list. + */ + last_id: string; + /** + * The type of object returned, must be `list`. + */ + object: 'list'; +} +export interface ItemCreateParams { + /** + * Body param: The items to add to the conversation. You may add up to 20 items at + * a time. + */ + items: Array; + /** + * Query param: Additional fields to include in the response. See the `include` + * parameter for + * [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include) + * for more information. + */ + include?: Array; +} +export interface ItemRetrieveParams { + /** + * Path param: The ID of the conversation that contains the item. + */ + conversation_id: string; + /** + * Query param: Additional fields to include in the response. See the `include` + * parameter for + * [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include) + * for more information. + */ + include?: Array; +} +export interface ItemListParams extends ConversationCursorPageParams { + /** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `message.output_text.logprobs`: Include logprobs with assistant messages. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + */ + include?: Array; + /** + * The order to return the input items in. Default is `desc`. + * + * - `asc`: Return the input items in ascending order. + * - `desc`: Return the input items in descending order. + */ + order?: 'asc' | 'desc'; +} +export interface ItemDeleteParams { + /** + * The ID of the conversation that contains the item. + */ + conversation_id: string; +} +export declare namespace Items { + export { type ConversationItem as ConversationItem, type ConversationItemList as ConversationItemList, type ConversationItemsPage as ConversationItemsPage, type ItemCreateParams as ItemCreateParams, type ItemRetrieveParams as ItemRetrieveParams, type ItemListParams as ItemListParams, type ItemDeleteParams as ItemDeleteParams, }; +} +//# sourceMappingURL=items.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..625bc2ccff75bdb2187fb2c500bd050f2e4e9ce6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/resources/conversations/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EACL,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IASnC;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAK/B;;OAEG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,gBAAgB,CAAC;IAQvD;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC,YAAY,CAAC;CAI7C;AAED,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;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;;;OAKG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,cAAe,SAAQ,4BAA4B;IAClE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js new file mode 100644 index 0000000000000000000000000000000000000000..126b35aa1986181deaca08b14dbfec96906f15ef --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js @@ -0,0 +1,42 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Items = void 0; +const resource_1 = require("../../core/resource.js"); +const pagination_1 = require("../../core/pagination.js"); +const path_1 = require("../../internal/utils/path.js"); +class Items extends resource_1.APIResource { + /** + * Create items in a conversation with the given ID. + */ + create(conversationID, params, options) { + const { include, ...body } = params; + return this._client.post((0, path_1.path) `/conversations/${conversationID}/items`, { + query: { include }, + body, + ...options, + }); + } + /** + * Get a single item from a conversation with the given IDs. + */ + retrieve(itemID, params, options) { + const { conversation_id, ...query } = params; + return this._client.get((0, path_1.path) `/conversations/${conversation_id}/items/${itemID}`, { query, ...options }); + } + /** + * List all items for a conversation with the given ID. + */ + list(conversationID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/conversations/${conversationID}/items`, (pagination_1.ConversationCursorPage), { query, ...options }); + } + /** + * Delete an item from a conversation with the given IDs. + */ + delete(itemID, params, options) { + const { conversation_id } = params; + return this._client.delete((0, path_1.path) `/conversations/${conversation_id}/items/${itemID}`, options); + } +} +exports.Items = Items; +//# sourceMappingURL=items.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js.map new file mode 100644 index 0000000000000000000000000000000000000000..832030c8e4a338cad0158138627226f950cb8486 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.js.map @@ -0,0 +1 @@ +{"version":3,"file":"items.js","sourceRoot":"","sources":["../../src/resources/conversations/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAI+B;AAE/B,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,cAAc,QAAQ,EAAE;YACrE,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,eAAe,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,IAAI,CACF,cAAsB,EACtB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,cAAc,QAAQ,EAC5C,CAAA,mCAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,eAAe,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF;AAvDD,sBAuDC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs new file mode 100644 index 0000000000000000000000000000000000000000..7311706a2660f063d50b9ebb31c72a90dcbac083 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { ConversationCursorPage, } from "../../core/pagination.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Items extends APIResource { + /** + * Create items in a conversation with the given ID. + */ + create(conversationID, params, options) { + const { include, ...body } = params; + return this._client.post(path `/conversations/${conversationID}/items`, { + query: { include }, + body, + ...options, + }); + } + /** + * Get a single item from a conversation with the given IDs. + */ + retrieve(itemID, params, options) { + const { conversation_id, ...query } = params; + return this._client.get(path `/conversations/${conversation_id}/items/${itemID}`, { query, ...options }); + } + /** + * List all items for a conversation with the given ID. + */ + list(conversationID, query = {}, options) { + return this._client.getAPIList(path `/conversations/${conversationID}/items`, (ConversationCursorPage), { query, ...options }); + } + /** + * Delete an item from a conversation with the given IDs. + */ + delete(itemID, params, options) { + const { conversation_id } = params; + return this._client.delete(path `/conversations/${conversation_id}/items/${itemID}`, options); + } +} +//# sourceMappingURL=items.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4d460eef8fb877d58b36afc7a7c22cdad2cce0b5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/conversations/items.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../src/resources/conversations/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EACL,sBAAsB,GAGvB;OAEM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,cAAc,QAAQ,EAAE;YACrE,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,eAAe,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,IAAI,CACF,cAAsB,EACtB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,cAAc,QAAQ,EAC5C,CAAA,sBAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,eAAe,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..85b347bb359326360197849cb13ba9b690684e02 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts @@ -0,0 +1,113 @@ +import { APIResource } from "../core/resource.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Embeddings extends APIResource { + /** + * Creates an embedding vector representing the input text. + * + * @example + * ```ts + * const createEmbeddingResponse = + * await client.embeddings.create({ + * input: 'The quick brown fox jumped over the lazy dog', + * model: 'text-embedding-3-small', + * }); + * ``` + */ + create(body: EmbeddingCreateParams, options?: RequestOptions): APIPromise; +} +export interface CreateEmbeddingResponse { + /** + * The list of embeddings generated by the model. + */ + data: Array; + /** + * The name of the model used to generate the embedding. + */ + model: string; + /** + * The object type, which is always "list". + */ + object: 'list'; + /** + * The usage information for the request. + */ + usage: CreateEmbeddingResponse.Usage; +} +export declare namespace CreateEmbeddingResponse { + /** + * The usage information for the request. + */ + interface Usage { + /** + * The number of tokens used by the prompt. + */ + prompt_tokens: number; + /** + * The total number of tokens used by the request. + */ + total_tokens: number; + } +} +/** + * Represents an embedding vector returned by embedding endpoint. + */ +export interface Embedding { + /** + * The embedding vector, which is a list of floats. The length of vector depends on + * the model as listed in the + * [embedding guide](https://platform.openai.com/docs/guides/embeddings). + */ + embedding: Array; + /** + * The index of the embedding in the list of embeddings. + */ + index: number; + /** + * The object type, which is always "embedding". + */ + object: 'embedding'; +} +export type EmbeddingModel = 'text-embedding-ada-002' | 'text-embedding-3-small' | 'text-embedding-3-large'; +export interface EmbeddingCreateParams { + /** + * Input text to embed, encoded as a string or array of tokens. To embed multiple + * inputs in a single request, pass an array of strings or array of token arrays. + * The input must not exceed the max input tokens for the model (8192 tokens for + * all embedding models), cannot be an empty string, and any array must be 2048 + * dimensions or less. + * [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) + * for counting tokens. In addition to the per-input token limit, all embedding + * models enforce a maximum of 300,000 tokens summed across all inputs in a single + * request. + */ + input: string | Array | Array | Array>; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | EmbeddingModel; + /** + * The number of dimensions the resulting output embeddings should have. Only + * supported in `text-embedding-3` and later models. + */ + dimensions?: number; + /** + * The format to return the embeddings in. Can be either `float` or + * [`base64`](https://pypi.org/project/pybase64/). + */ + encoding_format?: 'float' | 'base64'; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace Embeddings { + export { type CreateEmbeddingResponse as CreateEmbeddingResponse, type Embedding as Embedding, type EmbeddingModel as EmbeddingModel, type EmbeddingCreateParams as EmbeddingCreateParams, }; +} +//# sourceMappingURL=embeddings.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..336bd9d696b41209b90be49e62f2d4bcc5a576fe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"embeddings.d.mts","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAyCnG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC;CACtC;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,wBAAwB,CAAC;AAE5G,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;;OAUG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC;IAEtC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2073f91253ef7742f54b3c07ee67249d72d23d62 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts @@ -0,0 +1,113 @@ +import { APIResource } from "../core/resource.js"; +import { APIPromise } from "../core/api-promise.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Embeddings extends APIResource { + /** + * Creates an embedding vector representing the input text. + * + * @example + * ```ts + * const createEmbeddingResponse = + * await client.embeddings.create({ + * input: 'The quick brown fox jumped over the lazy dog', + * model: 'text-embedding-3-small', + * }); + * ``` + */ + create(body: EmbeddingCreateParams, options?: RequestOptions): APIPromise; +} +export interface CreateEmbeddingResponse { + /** + * The list of embeddings generated by the model. + */ + data: Array; + /** + * The name of the model used to generate the embedding. + */ + model: string; + /** + * The object type, which is always "list". + */ + object: 'list'; + /** + * The usage information for the request. + */ + usage: CreateEmbeddingResponse.Usage; +} +export declare namespace CreateEmbeddingResponse { + /** + * The usage information for the request. + */ + interface Usage { + /** + * The number of tokens used by the prompt. + */ + prompt_tokens: number; + /** + * The total number of tokens used by the request. + */ + total_tokens: number; + } +} +/** + * Represents an embedding vector returned by embedding endpoint. + */ +export interface Embedding { + /** + * The embedding vector, which is a list of floats. The length of vector depends on + * the model as listed in the + * [embedding guide](https://platform.openai.com/docs/guides/embeddings). + */ + embedding: Array; + /** + * The index of the embedding in the list of embeddings. + */ + index: number; + /** + * The object type, which is always "embedding". + */ + object: 'embedding'; +} +export type EmbeddingModel = 'text-embedding-ada-002' | 'text-embedding-3-small' | 'text-embedding-3-large'; +export interface EmbeddingCreateParams { + /** + * Input text to embed, encoded as a string or array of tokens. To embed multiple + * inputs in a single request, pass an array of strings or array of token arrays. + * The input must not exceed the max input tokens for the model (8192 tokens for + * all embedding models), cannot be an empty string, and any array must be 2048 + * dimensions or less. + * [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) + * for counting tokens. In addition to the per-input token limit, all embedding + * models enforce a maximum of 300,000 tokens summed across all inputs in a single + * request. + */ + input: string | Array | Array | Array>; + /** + * ID of the model to use. You can use the + * [List models](https://platform.openai.com/docs/api-reference/models/list) API to + * see all of your available models, or see our + * [Model overview](https://platform.openai.com/docs/models) for descriptions of + * them. + */ + model: (string & {}) | EmbeddingModel; + /** + * The number of dimensions the resulting output embeddings should have. Only + * supported in `text-embedding-3` and later models. + */ + dimensions?: number; + /** + * The format to return the embeddings in. Can be either `float` or + * [`base64`](https://pypi.org/project/pybase64/). + */ + encoding_format?: 'float' | 'base64'; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace Embeddings { + export { type CreateEmbeddingResponse as CreateEmbeddingResponse, type Embedding as Embedding, type EmbeddingModel as EmbeddingModel, type EmbeddingCreateParams as EmbeddingCreateParams, }; +} +//# sourceMappingURL=embeddings.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..54203ed2605806df380ca3944db7879a3ccc59a4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"embeddings.d.ts","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAyCnG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC;CACtC;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,wBAAwB,CAAC;AAE5G,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;;OAUG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC;IAEtC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js new file mode 100644 index 0000000000000000000000000000000000000000..2404264d4ba0204322548945ebb7eab3bea82173 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js @@ -0,0 +1,56 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Embeddings = void 0; +const resource_1 = require("../core/resource.js"); +const utils_1 = require("../internal/utils.js"); +class Embeddings extends resource_1.APIResource { + /** + * Creates an embedding vector representing the input text. + * + * @example + * ```ts + * const createEmbeddingResponse = + * await client.embeddings.create({ + * input: 'The quick brown fox jumped over the lazy dog', + * model: 'text-embedding-3-small', + * }); + * ``` + */ + create(body, options) { + const hasUserProvidedEncodingFormat = !!body.encoding_format; + // No encoding_format specified, defaulting to base64 for performance reasons + // See https://github.com/openai/openai-node/pull/1312 + let encoding_format = hasUserProvidedEncodingFormat ? body.encoding_format : 'base64'; + if (hasUserProvidedEncodingFormat) { + (0, utils_1.loggerFor)(this._client).debug('embeddings/user defined encoding_format:', body.encoding_format); + } + const response = this._client.post('/embeddings', { + body: { + ...body, + encoding_format: encoding_format, + }, + ...options, + }); + // if the user specified an encoding_format, return the response as-is + if (hasUserProvidedEncodingFormat) { + return response; + } + // in this stage, we are sure the user did not specify an encoding_format + // and we defaulted to base64 for performance reasons + // we are sure then that the response is base64 encoded, let's decode it + // the returned result will be a float32 array since this is OpenAI API's default encoding + (0, utils_1.loggerFor)(this._client).debug('embeddings/decoding base64 embeddings from base64'); + return response._thenUnwrap((response) => { + if (response && response.data) { + response.data.forEach((embeddingBase64Obj) => { + const embeddingBase64Str = embeddingBase64Obj.embedding; + embeddingBase64Obj.embedding = (0, utils_1.toFloat32Array)(embeddingBase64Str); + }); + } + return response; + }); + } +} +exports.Embeddings = Embeddings; +//# sourceMappingURL=embeddings.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js.map new file mode 100644 index 0000000000000000000000000000000000000000..df00deac462d7e65f98cda370c7e0d707041863f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.js.map @@ -0,0 +1 @@ +{"version":3,"file":"embeddings.js","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,gDAA8D;AAE9D,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QAC7D,6EAA6E;QAC7E,sDAAsD;QACtD,IAAI,eAAe,GACjB,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC;QAElE,IAAI,6BAA6B,EAAE,CAAC;YAClC,IAAA,iBAAS,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,0CAA0C,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAClG,CAAC;QAED,MAAM,QAAQ,GAAwC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE;YACrF,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,eAAe,EAAE,eAA2D;aAC7E;YACD,GAAG,OAAO;SACX,CAAC,CAAC;QAEH,sEAAsE;QACtE,IAAI,6BAA6B,EAAE,CAAC;YAClC,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,yEAAyE;QACzE,qDAAqD;QACrD,wEAAwE;QACxE,0FAA0F;QAC1F,IAAA,iBAAS,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;QAEnF,OAAQ,QAAgD,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChF,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAC9B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,EAAE;oBAC3C,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,SAA8B,CAAC;oBAC7E,kBAAkB,CAAC,SAAS,GAAG,IAAA,sBAAc,EAAC,kBAAkB,CAAC,CAAC;gBACpE,CAAC,CAAC,CAAC;YACL,CAAC;YAED,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAtDD,gCAsDC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs new file mode 100644 index 0000000000000000000000000000000000000000..19dcaef578c194a89759c4360073cfd4f7dd2cbf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +import { loggerFor, toFloat32Array } from "../internal/utils.mjs"; +export class Embeddings extends APIResource { + /** + * Creates an embedding vector representing the input text. + * + * @example + * ```ts + * const createEmbeddingResponse = + * await client.embeddings.create({ + * input: 'The quick brown fox jumped over the lazy dog', + * model: 'text-embedding-3-small', + * }); + * ``` + */ + create(body, options) { + const hasUserProvidedEncodingFormat = !!body.encoding_format; + // No encoding_format specified, defaulting to base64 for performance reasons + // See https://github.com/openai/openai-node/pull/1312 + let encoding_format = hasUserProvidedEncodingFormat ? body.encoding_format : 'base64'; + if (hasUserProvidedEncodingFormat) { + loggerFor(this._client).debug('embeddings/user defined encoding_format:', body.encoding_format); + } + const response = this._client.post('/embeddings', { + body: { + ...body, + encoding_format: encoding_format, + }, + ...options, + }); + // if the user specified an encoding_format, return the response as-is + if (hasUserProvidedEncodingFormat) { + return response; + } + // in this stage, we are sure the user did not specify an encoding_format + // and we defaulted to base64 for performance reasons + // we are sure then that the response is base64 encoded, let's decode it + // the returned result will be a float32 array since this is OpenAI API's default encoding + loggerFor(this._client).debug('embeddings/decoding base64 embeddings from base64'); + return response._thenUnwrap((response) => { + if (response && response.data) { + response.data.forEach((embeddingBase64Obj) => { + const embeddingBase64Str = embeddingBase64Obj.embedding; + embeddingBase64Obj.embedding = toFloat32Array(embeddingBase64Str); + }); + } + return response; + }); + } +} +//# sourceMappingURL=embeddings.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..f6ee1d860d2133e6c834e3ac9eaf80022b478b04 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/embeddings.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"embeddings.mjs","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAE,cAAc,EAAE;AAEpC,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QAC7D,6EAA6E;QAC7E,sDAAsD;QACtD,IAAI,eAAe,GACjB,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC;QAElE,IAAI,6BAA6B,EAAE,CAAC;YAClC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,0CAA0C,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAClG,CAAC;QAED,MAAM,QAAQ,GAAwC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE;YACrF,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,eAAe,EAAE,eAA2D;aAC7E;YACD,GAAG,OAAO;SACX,CAAC,CAAC;QAEH,sEAAsE;QACtE,IAAI,6BAA6B,EAAE,CAAC;YAClC,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,yEAAyE;QACzE,qDAAqD;QACrD,wEAAwE;QACxE,0FAA0F;QAC1F,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;QAEnF,OAAQ,QAAgD,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChF,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAC9B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,EAAE;oBAC3C,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,SAA8B,CAAC;oBAC7E,kBAAkB,CAAC,SAAS,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;gBACpE,CAAC,CAAC,CAAC;YACL,CAAC;YAED,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..854c35a191589bd689742ffc41510e45345d896f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts @@ -0,0 +1,2 @@ +export * from "./evals/index.mjs"; +//# sourceMappingURL=evals.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..26429956f0f60bb848fb36df8b115f852f926a1a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.d.mts","sourceRoot":"","sources":["../src/resources/evals.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f829713bf442e3bcc783a0b753a92e21b9f4cdea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts @@ -0,0 +1,2 @@ +export * from "./evals/index.js"; +//# sourceMappingURL=evals.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7dd97b26fcad75f509e3d375357fb3deedf02b7f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.d.ts","sourceRoot":"","sources":["../src/resources/evals.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js new file mode 100644 index 0000000000000000000000000000000000000000..1562b7c2f3cdc7db0f4f79de308381f336c312c4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./evals/index.js"), exports); +//# sourceMappingURL=evals.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js.map new file mode 100644 index 0000000000000000000000000000000000000000..519584971b15fb64a689f92af1499331ee3fb5cb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.js.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.js","sourceRoot":"","sources":["../src/resources/evals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs new file mode 100644 index 0000000000000000000000000000000000000000..36a3307c0baf80565d94be49f6e34e28a0ce3e2f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./evals/index.mjs"; +//# sourceMappingURL=evals.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..63f2096cd7b17ddc65ba151991fa82224493213f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.mjs","sourceRoot":"","sources":["../src/resources/evals.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..60ddf4a5c56c6f21c1440d58f7180fe4b31027c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts @@ -0,0 +1,735 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as Shared from "../shared.mjs"; +import * as GraderModelsAPI from "../graders/grader-models.mjs"; +import * as ResponsesAPI from "../responses/responses.mjs"; +import * as RunsAPI from "./runs/runs.mjs"; +import { CreateEvalCompletionsRunDataSource, CreateEvalJSONLRunDataSource, EvalAPIError, RunCancelParams, RunCancelResponse, RunCreateParams, RunCreateResponse, RunDeleteParams, RunDeleteResponse, RunListParams, RunListResponse, RunListResponsesPage, RunRetrieveParams, RunRetrieveResponse, Runs } from "./runs/runs.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Evals extends APIResource { + runs: RunsAPI.Runs; + /** + * Create the structure of an evaluation that can be used to test a model's + * performance. An evaluation is a set of testing criteria and the config for a + * data source, which dictates the schema of the data used in the evaluation. After + * creating an evaluation, you can run it on different models and model parameters. + * We support several types of graders and datasources. For more information, see + * the [Evals guide](https://platform.openai.com/docs/guides/evals). + */ + create(body: EvalCreateParams, options?: RequestOptions): APIPromise; + /** + * Get an evaluation by ID. + */ + retrieve(evalID: string, options?: RequestOptions): APIPromise; + /** + * Update certain properties of an evaluation. + */ + update(evalID: string, body: EvalUpdateParams, options?: RequestOptions): APIPromise; + /** + * List evaluations for a project. + */ + list(query?: EvalListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an evaluation. + */ + delete(evalID: string, options?: RequestOptions): APIPromise; +} +export type EvalListResponsesPage = CursorPage; +/** + * A CustomDataSourceConfig which specifies the schema of your `item` and + * optionally `sample` namespaces. The response schema defines the shape of the + * data that will be: + * + * - Used to define your testing criteria and + * - What data is required when creating a run + */ +export interface EvalCustomDataSourceConfig { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `custom`. + */ + type: 'custom'; +} +/** + * @deprecated Deprecated in favor of LogsDataSourceConfig. + */ +export interface EvalStoredCompletionsDataSourceConfig { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalCreateResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalCreateResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalCreateResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalRetrieveResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalRetrieveResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalRetrieveResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalUpdateResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalUpdateResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalUpdateResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalListResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalListResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalListResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +export interface EvalDeleteResponse { + deleted: boolean; + eval_id: string; + object: string; +} +export interface EvalCreateParams { + /** + * The configuration for the data source used for the evaluation runs. Dictates the + * schema of the data used in the evaluation. + */ + data_source_config: EvalCreateParams.Custom | EvalCreateParams.Logs | EvalCreateParams.StoredCompletions; + /** + * A list of graders for all eval runs in this group. Graders can reference + * variables in the data source using double curly braces notation, like + * `{{item.variable_name}}`. To reference the model's output, use the `sample` + * namespace (ie, `{{sample.output_text}}`). + */ + testing_criteria: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name?: string; +} +export declare namespace EvalCreateParams { + /** + * A CustomDataSourceConfig object that defines the schema for the data source used + * for the evaluation runs. This schema is used to define the shape of the data + * that will be: + * + * - Used to define your testing criteria and + * - What data is required when creating a run + */ + interface Custom { + /** + * The json schema for each row in the data source. + */ + item_schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `custom`. + */ + type: 'custom'; + /** + * Whether the eval should expect you to populate the sample namespace (ie, by + * generating responses off of your data source) + */ + include_sample_schema?: boolean; + } + /** + * A data source config which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. + */ + interface Logs { + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Metadata filters for the logs data source. + */ + metadata?: { + [key: string]: unknown; + }; + } + /** + * @deprecated Deprecated in favor of LogsDataSourceConfig. + */ + interface StoredCompletions { + /** + * The type of data source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * Metadata filters for the stored completions data source. + */ + metadata?: { + [key: string]: unknown; + }; + } + /** + * A LabelModelGrader object which uses a model to assign labels to each item in + * the evaluation. + */ + interface LabelModel { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + input: Array; + /** + * The labels to classify to each item in the evaluation. + */ + labels: Array; + /** + * The model to use for the evaluation. Must support structured outputs. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The labels that indicate a passing result. Must be a subset of labels. + */ + passing_labels: Array; + /** + * The object type, which is always `label_model`. + */ + type: 'label_model'; + } + namespace LabelModel { + interface SimpleInputMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface TextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface Python extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface ScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +export interface EvalUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Rename the evaluation. + */ + name?: string; +} +export interface EvalListParams extends CursorPageParams { + /** + * Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for + * descending order. + */ + order?: 'asc' | 'desc'; + /** + * Evals can be ordered by creation time or last updated time. Use `created_at` for + * creation time or `updated_at` for last updated time. + */ + order_by?: 'created_at' | 'updated_at'; +} +export declare namespace Evals { + export { type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse as EvalCreateResponse, type EvalRetrieveResponse as EvalRetrieveResponse, type EvalUpdateResponse as EvalUpdateResponse, type EvalListResponse as EvalListResponse, type EvalDeleteResponse as EvalDeleteResponse, type EvalListResponsesPage as EvalListResponsesPage, type EvalCreateParams as EvalCreateParams, type EvalUpdateParams as EvalUpdateParams, type EvalListParams as EvalListParams, }; + export { Runs as Runs, type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, }; +} +//# sourceMappingURL=evals.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f383a80443fc9ad30dd610e0fba2a57f677d360d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.d.mts","sourceRoot":"","sources":["../../src/resources/evals/evals.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,KAAK,YAAY;OACjB,KAAK,OAAO;OACZ,EACL,kCAAkC,EAClC,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACL;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;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AAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..41df2f9094d9c05439619aa7f83846e3c825a5b1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts @@ -0,0 +1,735 @@ +import { APIResource } from "../../core/resource.js"; +import * as Shared from "../shared.js"; +import * as GraderModelsAPI from "../graders/grader-models.js"; +import * as ResponsesAPI from "../responses/responses.js"; +import * as RunsAPI from "./runs/runs.js"; +import { CreateEvalCompletionsRunDataSource, CreateEvalJSONLRunDataSource, EvalAPIError, RunCancelParams, RunCancelResponse, RunCreateParams, RunCreateResponse, RunDeleteParams, RunDeleteResponse, RunListParams, RunListResponse, RunListResponsesPage, RunRetrieveParams, RunRetrieveResponse, Runs } from "./runs/runs.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Evals extends APIResource { + runs: RunsAPI.Runs; + /** + * Create the structure of an evaluation that can be used to test a model's + * performance. An evaluation is a set of testing criteria and the config for a + * data source, which dictates the schema of the data used in the evaluation. After + * creating an evaluation, you can run it on different models and model parameters. + * We support several types of graders and datasources. For more information, see + * the [Evals guide](https://platform.openai.com/docs/guides/evals). + */ + create(body: EvalCreateParams, options?: RequestOptions): APIPromise; + /** + * Get an evaluation by ID. + */ + retrieve(evalID: string, options?: RequestOptions): APIPromise; + /** + * Update certain properties of an evaluation. + */ + update(evalID: string, body: EvalUpdateParams, options?: RequestOptions): APIPromise; + /** + * List evaluations for a project. + */ + list(query?: EvalListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an evaluation. + */ + delete(evalID: string, options?: RequestOptions): APIPromise; +} +export type EvalListResponsesPage = CursorPage; +/** + * A CustomDataSourceConfig which specifies the schema of your `item` and + * optionally `sample` namespaces. The response schema defines the shape of the + * data that will be: + * + * - Used to define your testing criteria and + * - What data is required when creating a run + */ +export interface EvalCustomDataSourceConfig { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `custom`. + */ + type: 'custom'; +} +/** + * @deprecated Deprecated in favor of LogsDataSourceConfig. + */ +export interface EvalStoredCompletionsDataSourceConfig { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalCreateResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalCreateResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalCreateResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalRetrieveResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalRetrieveResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalRetrieveResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalUpdateResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalUpdateResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalUpdateResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +/** + * An Eval object with a data source config and testing criteria. An Eval + * represents a task to be done for your LLM integration. Like: + * + * - Improve the quality of my chatbot + * - See how well my chatbot handles customer support + * - Check if o4-mini is better at my usecase than gpt-4o + */ +export interface EvalListResponse { + /** + * Unique identifier for the evaluation. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the eval was created. + */ + created_at: number; + /** + * Configuration of data sources used in runs of the evaluation. + */ + data_source_config: EvalCustomDataSourceConfig | EvalListResponse.Logs | EvalStoredCompletionsDataSourceConfig; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name: string; + /** + * The object type. + */ + object: 'eval'; + /** + * A list of testing criteria. + */ + testing_criteria: Array; +} +export declare namespace EvalListResponse { + /** + * A LogsDataSourceConfig which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The + * schema returned by this data source config is used to defined what variables are + * available in your evals. `item` and `sample` are both defined when using this + * data source config. + */ + interface Logs { + /** + * The json schema for the run data source items. Learn how to build JSON schemas + * [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface EvalGraderPython extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +export interface EvalDeleteResponse { + deleted: boolean; + eval_id: string; + object: string; +} +export interface EvalCreateParams { + /** + * The configuration for the data source used for the evaluation runs. Dictates the + * schema of the data used in the evaluation. + */ + data_source_config: EvalCreateParams.Custom | EvalCreateParams.Logs | EvalCreateParams.StoredCompletions; + /** + * A list of graders for all eval runs in this group. Graders can reference + * variables in the data source using double curly braces notation, like + * `{{item.variable_name}}`. To reference the model's output, use the `sample` + * namespace (ie, `{{sample.output_text}}`). + */ + testing_criteria: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the evaluation. + */ + name?: string; +} +export declare namespace EvalCreateParams { + /** + * A CustomDataSourceConfig object that defines the schema for the data source used + * for the evaluation runs. This schema is used to define the shape of the data + * that will be: + * + * - Used to define your testing criteria and + * - What data is required when creating a run + */ + interface Custom { + /** + * The json schema for each row in the data source. + */ + item_schema: { + [key: string]: unknown; + }; + /** + * The type of data source. Always `custom`. + */ + type: 'custom'; + /** + * Whether the eval should expect you to populate the sample namespace (ie, by + * generating responses off of your data source) + */ + include_sample_schema?: boolean; + } + /** + * A data source config which specifies the metadata property of your logs query. + * This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. + */ + interface Logs { + /** + * The type of data source. Always `logs`. + */ + type: 'logs'; + /** + * Metadata filters for the logs data source. + */ + metadata?: { + [key: string]: unknown; + }; + } + /** + * @deprecated Deprecated in favor of LogsDataSourceConfig. + */ + interface StoredCompletions { + /** + * The type of data source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * Metadata filters for the stored completions data source. + */ + metadata?: { + [key: string]: unknown; + }; + } + /** + * A LabelModelGrader object which uses a model to assign labels to each item in + * the evaluation. + */ + interface LabelModel { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + input: Array; + /** + * The labels to classify to each item in the evaluation. + */ + labels: Array; + /** + * The model to use for the evaluation. Must support structured outputs. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The labels that indicate a passing result. Must be a subset of labels. + */ + passing_labels: Array; + /** + * The object type, which is always `label_model`. + */ + type: 'label_model'; + } + namespace LabelModel { + interface SimpleInputMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + /** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ + interface TextSimilarity extends GraderModelsAPI.TextSimilarityGrader { + /** + * The threshold for the score. + */ + pass_threshold: number; + } + /** + * A PythonGrader object that runs a python script on the input. + */ + interface Python extends GraderModelsAPI.PythonGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } + /** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ + interface ScoreModel extends GraderModelsAPI.ScoreModelGrader { + /** + * The threshold for the score. + */ + pass_threshold?: number; + } +} +export interface EvalUpdateParams { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Rename the evaluation. + */ + name?: string; +} +export interface EvalListParams extends CursorPageParams { + /** + * Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for + * descending order. + */ + order?: 'asc' | 'desc'; + /** + * Evals can be ordered by creation time or last updated time. Use `created_at` for + * creation time or `updated_at` for last updated time. + */ + order_by?: 'created_at' | 'updated_at'; +} +export declare namespace Evals { + export { type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse as EvalCreateResponse, type EvalRetrieveResponse as EvalRetrieveResponse, type EvalUpdateResponse as EvalUpdateResponse, type EvalListResponse as EvalListResponse, type EvalDeleteResponse as EvalDeleteResponse, type EvalListResponsesPage as EvalListResponsesPage, type EvalCreateParams as EvalCreateParams, type EvalUpdateParams as EvalUpdateParams, type EvalListParams as EvalListParams, }; + export { Runs as Runs, type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, }; +} +//# sourceMappingURL=evals.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..4ed4f83333b26cb9d2afe28799c5119fe36e69ab --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.d.ts","sourceRoot":"","sources":["../../src/resources/evals/evals.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,KAAK,YAAY;OACjB,KAAK,OAAO;OACZ,EACL,kCAAkC,EAClC,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACL;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIpF;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EA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AAI,qCAAqC,EACnF,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js new file mode 100644 index 0000000000000000000000000000000000000000..7f8390fd785e9bdc435633db43a84bb0abbd86e0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js @@ -0,0 +1,54 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Evals = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const RunsAPI = tslib_1.__importStar(require("./runs/runs.js")); +const runs_1 = require("./runs/runs.js"); +const pagination_1 = require("../../core/pagination.js"); +const path_1 = require("../../internal/utils/path.js"); +class Evals extends resource_1.APIResource { + constructor() { + super(...arguments); + this.runs = new RunsAPI.Runs(this._client); + } + /** + * Create the structure of an evaluation that can be used to test a model's + * performance. An evaluation is a set of testing criteria and the config for a + * data source, which dictates the schema of the data used in the evaluation. After + * creating an evaluation, you can run it on different models and model parameters. + * We support several types of graders and datasources. For more information, see + * the [Evals guide](https://platform.openai.com/docs/guides/evals). + */ + create(body, options) { + return this._client.post('/evals', { body, ...options }); + } + /** + * Get an evaluation by ID. + */ + retrieve(evalID, options) { + return this._client.get((0, path_1.path) `/evals/${evalID}`, options); + } + /** + * Update certain properties of an evaluation. + */ + update(evalID, body, options) { + return this._client.post((0, path_1.path) `/evals/${evalID}`, { body, ...options }); + } + /** + * List evaluations for a project. + */ + list(query = {}, options) { + return this._client.getAPIList('/evals', (pagination_1.CursorPage), { query, ...options }); + } + /** + * Delete an evaluation. + */ + delete(evalID, options) { + return this._client.delete((0, path_1.path) `/evals/${evalID}`, options); + } +} +exports.Evals = Evals; +Evals.Runs = runs_1.Runs; +//# sourceMappingURL=evals.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js.map new file mode 100644 index 0000000000000000000000000000000000000000..25143cc67781b0438c56f9194b857cc436668fbf --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.js.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.js","sourceRoot":"","sources":["../../src/resources/evals/evals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAIlD,gEAAuC;AACvC,yCAgBqB;AAErB,yDAAuF;AAEvF,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4CtD,CAAC;IA1CC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,uBAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AA7CD,sBA6CC;AAmzBD,KAAK,CAAC,IAAI,GAAG,WAAI,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs new file mode 100644 index 0000000000000000000000000000000000000000..cc89ea39e3f28f1d44f4db87486fa880ca5242ac --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as RunsAPI from "./runs/runs.mjs"; +import { Runs, } from "./runs/runs.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Evals extends APIResource { + constructor() { + super(...arguments); + this.runs = new RunsAPI.Runs(this._client); + } + /** + * Create the structure of an evaluation that can be used to test a model's + * performance. An evaluation is a set of testing criteria and the config for a + * data source, which dictates the schema of the data used in the evaluation. After + * creating an evaluation, you can run it on different models and model parameters. + * We support several types of graders and datasources. For more information, see + * the [Evals guide](https://platform.openai.com/docs/guides/evals). + */ + create(body, options) { + return this._client.post('/evals', { body, ...options }); + } + /** + * Get an evaluation by ID. + */ + retrieve(evalID, options) { + return this._client.get(path `/evals/${evalID}`, options); + } + /** + * Update certain properties of an evaluation. + */ + update(evalID, body, options) { + return this._client.post(path `/evals/${evalID}`, { body, ...options }); + } + /** + * List evaluations for a project. + */ + list(query = {}, options) { + return this._client.getAPIList('/evals', (CursorPage), { query, ...options }); + } + /** + * Delete an evaluation. + */ + delete(evalID, options) { + return this._client.delete(path `/evals/${evalID}`, options); + } +} +Evals.Runs = Runs; +//# sourceMappingURL=evals.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ee931b2831f4aa35b22a92c7d35cbb6f161185e4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/evals.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"evals.mjs","sourceRoot":"","sources":["../../src/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AK,CAAC,IAAI,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a2919763be02dc1b944e9e628b197e975a884c45 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts @@ -0,0 +1,3 @@ +export { Evals, type EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse, type EvalRetrieveResponse, type EvalUpdateResponse, type EvalListResponse, type EvalDeleteResponse, type EvalCreateParams, type EvalUpdateParams, type EvalListParams, type EvalListResponsesPage, } from "./evals.mjs"; +export { Runs, type CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource, type EvalAPIError, type RunCreateResponse, type RunRetrieveResponse, type RunListResponse, type RunDeleteResponse, type RunCancelResponse, type RunCreateParams, type RunRetrieveParams, type RunListParams, type RunDeleteParams, type RunCancelParams, type RunListResponsesPage, } from "./runs/index.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..5559f7dc27a43be492f8b11e1c36ec6ae6353ac0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/evals/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,0BAA0B,EAC/B,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,IAAI,EACJ,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..d6fbeab4ab89ffd2f9913947ac111858aa8f7a0f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts @@ -0,0 +1,3 @@ +export { Evals, type EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse, type EvalRetrieveResponse, type EvalUpdateResponse, type EvalListResponse, type EvalDeleteResponse, type EvalCreateParams, type EvalUpdateParams, type EvalListParams, type EvalListResponsesPage, } from "./evals.js"; +export { Runs, type CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource, type EvalAPIError, type RunCreateResponse, type RunRetrieveResponse, type RunListResponse, type RunDeleteResponse, type RunCancelResponse, type RunCreateParams, type RunRetrieveParams, type RunListParams, type RunDeleteParams, type RunCancelParams, type RunListResponsesPage, } from "./runs/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..86880f40ab0fbc000e43c9780f2631f43a898f26 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/evals/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,0BAA0B,EAC/B,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,IAAI,EACJ,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fdb440d8d70b3d6326316468457a879b829a9d3d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Runs = exports.Evals = void 0; +var evals_1 = require("./evals.js"); +Object.defineProperty(exports, "Evals", { enumerable: true, get: function () { return evals_1.Evals; } }); +var index_1 = require("./runs/index.js"); +Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return index_1.Runs; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a93a3202dcc23e3be47ab9ee69c2ad5851b9270a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/evals/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAaiB;AAZf,8FAAA,KAAK,OAAA;AAaP,yCAgBsB;AAfpB,6FAAA,IAAI,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..3611911ddcb95594bc76922d12e6885dc6dd7776 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Evals, } from "./evals.mjs"; +export { Runs, } from "./runs/index.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..80b47e5974ff84cdb27ca1f452bda70d259b9afc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/evals/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAYN;OACM,EACL,IAAI,GAeL"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..57b66725a392c4f0e4adf8202808d5e737b33e7c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts @@ -0,0 +1,2 @@ +export * from "./runs/index.mjs"; +//# sourceMappingURL=runs.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..39d1465cacf1fa6c715a0e1b181319be996d04aa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../src/resources/evals/runs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0d50499c2deb266906ba85f0a239350d9a6827a5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts @@ -0,0 +1,2 @@ +export * from "./runs/index.js"; +//# sourceMappingURL=runs.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..b1ab27190cf5853eff53d472c88c94008833f097 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/resources/evals/runs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js new file mode 100644 index 0000000000000000000000000000000000000000..8da6dc531d8a4f0604586f5e043cc74fabb5ee62 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./runs/index.js"), exports); +//# sourceMappingURL=runs.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js.map new file mode 100644 index 0000000000000000000000000000000000000000..80fdd9abdc3e76b5414b5309676babe14302430b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/evals/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs new file mode 100644 index 0000000000000000000000000000000000000000..02d03b3d35c7c6d2bd273c88bb7f0a5c82274e9f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./runs/index.mjs"; +//# sourceMappingURL=runs.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9a60d93f87dcd9cf004294aa9faf870416ecd139 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../src/resources/evals/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..cc9e5bf7bbfe97098142af351e73b500a770a4a7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts @@ -0,0 +1,3 @@ +export { OutputItems, type OutputItemRetrieveResponse, type OutputItemListResponse, type OutputItemRetrieveParams, type OutputItemListParams, type OutputItemListResponsesPage, } from "./output-items.mjs"; +export { Runs, type CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource, type EvalAPIError, type RunCreateResponse, type RunRetrieveResponse, type RunListResponse, type RunDeleteResponse, type RunCancelResponse, type RunCreateParams, type RunRetrieveParams, type RunListParams, type RunDeleteParams, type RunCancelParams, type RunListResponsesPage, } from "./runs.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..1170b0f6180da7cc8130204e879f34d1d99e16d3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/evals/runs/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a091ac5b1a1c5d0f2b5c18354c92fd862ec1890e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts @@ -0,0 +1,3 @@ +export { OutputItems, type OutputItemRetrieveResponse, type OutputItemListResponse, type OutputItemRetrieveParams, type OutputItemListParams, type OutputItemListResponsesPage, } from "./output-items.js"; +export { Runs, type CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource, type EvalAPIError, type RunCreateResponse, type RunRetrieveResponse, type RunListResponse, type RunDeleteResponse, type RunCancelResponse, type RunCreateParams, type RunRetrieveParams, type RunListParams, type RunDeleteParams, type RunCancelParams, type RunListResponsesPage, } from "./runs.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..353487e8ab32102a9dbb49a2aba05e1c00576722 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/evals/runs/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js new file mode 100644 index 0000000000000000000000000000000000000000..26ad581e3972cef9dbebc1b7da635b438f0ea2d8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Runs = exports.OutputItems = void 0; +var output_items_1 = require("./output-items.js"); +Object.defineProperty(exports, "OutputItems", { enumerable: true, get: function () { return output_items_1.OutputItems; } }); +var runs_1 = require("./runs.js"); +Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_1.Runs; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..40d1af1266698b72509c1073aecc1bf209f22430 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/evals/runs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,kCAgBgB;AAfd,4FAAA,IAAI,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e96b970987221a9946bb5f04f7abba7b946ff073 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { OutputItems, } from "./output-items.mjs"; +export { Runs, } from "./runs.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..dbccad7fea13fbf8e6f146b614a64252e0952e11 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/evals/runs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAMZ;OACM,EACL,IAAI,GAeL"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a46fbce19ac4bce72363a2c3df1a0350d87b81bc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts @@ -0,0 +1,330 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as RunsAPI from "./runs.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class OutputItems extends APIResource { + /** + * Get an evaluation run output item by ID. + */ + retrieve(outputItemID: string, params: OutputItemRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Get a list of output items for an evaluation run. + */ + list(runID: string, params: OutputItemListParams, options?: RequestOptions): PagePromise; +} +export type OutputItemListResponsesPage = CursorPage; +/** + * A schema representing an evaluation run output item. + */ +export interface OutputItemRetrieveResponse { + /** + * Unique identifier for the evaluation run output item. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Details of the input data source item. + */ + datasource_item: { + [key: string]: unknown; + }; + /** + * The identifier for the data source item. + */ + datasource_item_id: number; + /** + * The identifier of the evaluation group. + */ + eval_id: string; + /** + * The type of the object. Always "eval.run.output_item". + */ + object: 'eval.run.output_item'; + /** + * A list of results from the evaluation run. + */ + results: Array<{ + [key: string]: unknown; + }>; + /** + * The identifier of the evaluation run associated with this output item. + */ + run_id: string; + /** + * A sample containing the input and output of the evaluation run. + */ + sample: OutputItemRetrieveResponse.Sample; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace OutputItemRetrieveResponse { + /** + * A sample containing the input and output of the evaluation run. + */ + interface Sample { + /** + * An object representing an error response from the Eval API. + */ + error: RunsAPI.EvalAPIError; + /** + * The reason why the sample generation was finished. + */ + finish_reason: string; + /** + * An array of input messages. + */ + input: Array; + /** + * The maximum number of tokens allowed for completion. + */ + max_completion_tokens: number; + /** + * The model used for generating the sample. + */ + model: string; + /** + * An array of output messages. + */ + output: Array; + /** + * The seed used for generating the sample. + */ + seed: number; + /** + * The sampling temperature used. + */ + temperature: number; + /** + * The top_p value used for sampling. + */ + top_p: number; + /** + * Token usage details for the sample. + */ + usage: Sample.Usage; + } + namespace Sample { + /** + * An input message. + */ + interface Input { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message sender (e.g., system, user, developer). + */ + role: string; + } + interface Output { + /** + * The content of the message. + */ + content?: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role?: string; + } + /** + * Token usage details for the sample. + */ + interface Usage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + } +} +/** + * A schema representing an evaluation run output item. + */ +export interface OutputItemListResponse { + /** + * Unique identifier for the evaluation run output item. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Details of the input data source item. + */ + datasource_item: { + [key: string]: unknown; + }; + /** + * The identifier for the data source item. + */ + datasource_item_id: number; + /** + * The identifier of the evaluation group. + */ + eval_id: string; + /** + * The type of the object. Always "eval.run.output_item". + */ + object: 'eval.run.output_item'; + /** + * A list of results from the evaluation run. + */ + results: Array<{ + [key: string]: unknown; + }>; + /** + * The identifier of the evaluation run associated with this output item. + */ + run_id: string; + /** + * A sample containing the input and output of the evaluation run. + */ + sample: OutputItemListResponse.Sample; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace OutputItemListResponse { + /** + * A sample containing the input and output of the evaluation run. + */ + interface Sample { + /** + * An object representing an error response from the Eval API. + */ + error: RunsAPI.EvalAPIError; + /** + * The reason why the sample generation was finished. + */ + finish_reason: string; + /** + * An array of input messages. + */ + input: Array; + /** + * The maximum number of tokens allowed for completion. + */ + max_completion_tokens: number; + /** + * The model used for generating the sample. + */ + model: string; + /** + * An array of output messages. + */ + output: Array; + /** + * The seed used for generating the sample. + */ + seed: number; + /** + * The sampling temperature used. + */ + temperature: number; + /** + * The top_p value used for sampling. + */ + top_p: number; + /** + * Token usage details for the sample. + */ + usage: Sample.Usage; + } + namespace Sample { + /** + * An input message. + */ + interface Input { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message sender (e.g., system, user, developer). + */ + role: string; + } + interface Output { + /** + * The content of the message. + */ + content?: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role?: string; + } + /** + * Token usage details for the sample. + */ + interface Usage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + } +} +export interface OutputItemRetrieveParams { + /** + * The ID of the evaluation to retrieve runs for. + */ + eval_id: string; + /** + * The ID of the run to retrieve. + */ + run_id: string; +} +export interface OutputItemListParams extends CursorPageParams { + /** + * Path param: The ID of the evaluation to retrieve runs for. + */ + eval_id: string; + /** + * Query param: Sort order for output items by timestamp. Use `asc` for ascending + * order or `desc` for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; + /** + * Query param: Filter output items by status. Use `failed` to filter by failed + * output items or `pass` to filter by passed output items. + */ + status?: 'fail' | 'pass'; +} +export declare namespace OutputItems { + export { type OutputItemRetrieveResponse as OutputItemRetrieveResponse, type OutputItemListResponse as OutputItemListResponse, type OutputItemListResponsesPage as OutputItemListResponsesPage, type OutputItemRetrieveParams as OutputItemRetrieveParams, type OutputItemListParams as OutputItemListParams, }; +} +//# sourceMappingURL=output-items.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..36259e953175e8cfbbdb9e93163154a016ab49ed --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"output-items.d.mts","sourceRoot":"","sources":["../../../src/resources/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;QAED;;WAEG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,iBAAiB,EAAE,MAAM,CAAC;YAE1B;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;SACtB;KACF;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3e59d06d6826828d86e75f8922ff96c37173c24b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts @@ -0,0 +1,330 @@ +import { APIResource } from "../../../core/resource.js"; +import * as RunsAPI from "./runs.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class OutputItems extends APIResource { + /** + * Get an evaluation run output item by ID. + */ + retrieve(outputItemID: string, params: OutputItemRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Get a list of output items for an evaluation run. + */ + list(runID: string, params: OutputItemListParams, options?: RequestOptions): PagePromise; +} +export type OutputItemListResponsesPage = CursorPage; +/** + * A schema representing an evaluation run output item. + */ +export interface OutputItemRetrieveResponse { + /** + * Unique identifier for the evaluation run output item. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Details of the input data source item. + */ + datasource_item: { + [key: string]: unknown; + }; + /** + * The identifier for the data source item. + */ + datasource_item_id: number; + /** + * The identifier of the evaluation group. + */ + eval_id: string; + /** + * The type of the object. Always "eval.run.output_item". + */ + object: 'eval.run.output_item'; + /** + * A list of results from the evaluation run. + */ + results: Array<{ + [key: string]: unknown; + }>; + /** + * The identifier of the evaluation run associated with this output item. + */ + run_id: string; + /** + * A sample containing the input and output of the evaluation run. + */ + sample: OutputItemRetrieveResponse.Sample; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace OutputItemRetrieveResponse { + /** + * A sample containing the input and output of the evaluation run. + */ + interface Sample { + /** + * An object representing an error response from the Eval API. + */ + error: RunsAPI.EvalAPIError; + /** + * The reason why the sample generation was finished. + */ + finish_reason: string; + /** + * An array of input messages. + */ + input: Array; + /** + * The maximum number of tokens allowed for completion. + */ + max_completion_tokens: number; + /** + * The model used for generating the sample. + */ + model: string; + /** + * An array of output messages. + */ + output: Array; + /** + * The seed used for generating the sample. + */ + seed: number; + /** + * The sampling temperature used. + */ + temperature: number; + /** + * The top_p value used for sampling. + */ + top_p: number; + /** + * Token usage details for the sample. + */ + usage: Sample.Usage; + } + namespace Sample { + /** + * An input message. + */ + interface Input { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message sender (e.g., system, user, developer). + */ + role: string; + } + interface Output { + /** + * The content of the message. + */ + content?: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role?: string; + } + /** + * Token usage details for the sample. + */ + interface Usage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + } +} +/** + * A schema representing an evaluation run output item. + */ +export interface OutputItemListResponse { + /** + * Unique identifier for the evaluation run output item. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Details of the input data source item. + */ + datasource_item: { + [key: string]: unknown; + }; + /** + * The identifier for the data source item. + */ + datasource_item_id: number; + /** + * The identifier of the evaluation group. + */ + eval_id: string; + /** + * The type of the object. Always "eval.run.output_item". + */ + object: 'eval.run.output_item'; + /** + * A list of results from the evaluation run. + */ + results: Array<{ + [key: string]: unknown; + }>; + /** + * The identifier of the evaluation run associated with this output item. + */ + run_id: string; + /** + * A sample containing the input and output of the evaluation run. + */ + sample: OutputItemListResponse.Sample; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace OutputItemListResponse { + /** + * A sample containing the input and output of the evaluation run. + */ + interface Sample { + /** + * An object representing an error response from the Eval API. + */ + error: RunsAPI.EvalAPIError; + /** + * The reason why the sample generation was finished. + */ + finish_reason: string; + /** + * An array of input messages. + */ + input: Array; + /** + * The maximum number of tokens allowed for completion. + */ + max_completion_tokens: number; + /** + * The model used for generating the sample. + */ + model: string; + /** + * An array of output messages. + */ + output: Array; + /** + * The seed used for generating the sample. + */ + seed: number; + /** + * The sampling temperature used. + */ + temperature: number; + /** + * The top_p value used for sampling. + */ + top_p: number; + /** + * Token usage details for the sample. + */ + usage: Sample.Usage; + } + namespace Sample { + /** + * An input message. + */ + interface Input { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message sender (e.g., system, user, developer). + */ + role: string; + } + interface Output { + /** + * The content of the message. + */ + content?: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role?: string; + } + /** + * Token usage details for the sample. + */ + interface Usage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + } +} +export interface OutputItemRetrieveParams { + /** + * The ID of the evaluation to retrieve runs for. + */ + eval_id: string; + /** + * The ID of the run to retrieve. + */ + run_id: string; +} +export interface OutputItemListParams extends CursorPageParams { + /** + * Path param: The ID of the evaluation to retrieve runs for. + */ + eval_id: string; + /** + * Query param: Sort order for output items by timestamp. Use `asc` for ascending + * order or `desc` for descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; + /** + * Query param: Filter output items by status. Use `failed` to filter by failed + * output items or `pass` to filter by passed output items. + */ + status?: 'fail' | 'pass'; +} +export declare namespace OutputItems { + export { type OutputItemRetrieveResponse as OutputItemRetrieveResponse, type OutputItemListResponse as OutputItemListResponse, type OutputItemListResponsesPage as OutputItemListResponsesPage, type OutputItemRetrieveParams as OutputItemRetrieveParams, type OutputItemListParams as OutputItemListParams, }; +} +//# sourceMappingURL=output-items.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ee2cc9835fb7b0d5eddb6b1b31c3aeae2b82f1ae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"output-items.d.ts","sourceRoot":"","sources":["../../../src/resources/evals/runs/output-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ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CAAC;SACtB;KACF;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js new file mode 100644 index 0000000000000000000000000000000000000000..457186de4801ec54e18adc01a8da2347c0e982b3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js @@ -0,0 +1,25 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OutputItems = void 0; +const resource_1 = require("../../../core/resource.js"); +const pagination_1 = require("../../../core/pagination.js"); +const path_1 = require("../../../internal/utils/path.js"); +class OutputItems extends resource_1.APIResource { + /** + * Get an evaluation run output item by ID. + */ + retrieve(outputItemID, params, options) { + const { eval_id, run_id } = params; + return this._client.get((0, path_1.path) `/evals/${eval_id}/runs/${run_id}/output_items/${outputItemID}`, options); + } + /** + * Get a list of output items for an evaluation run. + */ + list(runID, params, options) { + const { eval_id, ...query } = params; + return this._client.getAPIList((0, path_1.path) `/evals/${eval_id}/runs/${runID}/output_items`, (pagination_1.CursorPage), { query, ...options }); + } +} +exports.OutputItems = OutputItems; +//# sourceMappingURL=output-items.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7291898d3ad563f679ac73b85805c6b5e233c978 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.js.map @@ -0,0 +1 @@ +{"version":3,"file":"output-items.js","sourceRoot":"","sources":["../../../src/resources/evals/runs/output-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAA0F;AAE1F,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,MAAM,iBAAiB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAa,EACb,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,KAAK,eAAe,EAClD,CAAA,uBAAkC,CAAA,EAClC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AA5BD,kCA4BC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs new file mode 100644 index 0000000000000000000000000000000000000000..ed950a78c0deb9261e7da8e501ed442648233432 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +export class OutputItems extends APIResource { + /** + * Get an evaluation run output item by ID. + */ + retrieve(outputItemID, params, options) { + const { eval_id, run_id } = params; + return this._client.get(path `/evals/${eval_id}/runs/${run_id}/output_items/${outputItemID}`, options); + } + /** + * Get a list of output items for an evaluation run. + */ + list(runID, params, options) { + const { eval_id, ...query } = params; + return this._client.getAPIList(path `/evals/${eval_id}/runs/${runID}/output_items`, (CursorPage), { query, ...options }); + } +} +//# sourceMappingURL=output-items.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6d1d4b561a82e1d90eab3f7b9205c9552dd03412 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/output-items.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"output-items.mjs","sourceRoot":"","sources":["../../../src/resources/evals/runs/output-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,SAAS,MAAM,iBAAiB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAa,EACb,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,UAAU,OAAO,SAAS,KAAK,eAAe,EAClD,CAAA,UAAkC,CAAA,EAClC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..096ae87e8b6dd90d75b43fdacd4a1d20b744f0fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts @@ -0,0 +1,2227 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as Shared from "../../shared.mjs"; +import * as ResponsesAPI from "../../responses/responses.mjs"; +import * as CompletionsAPI from "../../chat/completions/completions.mjs"; +import * as OutputItemsAPI from "./output-items.mjs"; +import { OutputItemListParams, OutputItemListResponse, OutputItemListResponsesPage, OutputItemRetrieveParams, OutputItemRetrieveResponse, OutputItems } from "./output-items.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Runs extends APIResource { + outputItems: OutputItemsAPI.OutputItems; + /** + * Kicks off a new run for a given evaluation, specifying the data source, and what + * model configuration to use to test. The datasource will be validated against the + * schema specified in the config of the evaluation. + */ + create(evalID: string, body: RunCreateParams, options?: RequestOptions): APIPromise; + /** + * Get an evaluation run by ID. + */ + retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Get a list of runs for an evaluation. + */ + list(evalID: string, query?: RunListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an eval run. + */ + delete(runID: string, params: RunDeleteParams, options?: RequestOptions): APIPromise; + /** + * Cancel an ongoing evaluation run. + */ + cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise; +} +export type RunListResponsesPage = CursorPage; +/** + * A CompletionsRunDataSource object describing a model sampling configuration. + */ +export interface CreateEvalCompletionsRunDataSource { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: CreateEvalCompletionsRunDataSource.FileContent | CreateEvalCompletionsRunDataSource.FileID | CreateEvalCompletionsRunDataSource.StoredCompletions; + /** + * The type of run data source. Always `completions`. + */ + type: 'completions'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: CreateEvalCompletionsRunDataSource.Template | CreateEvalCompletionsRunDataSource.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: CreateEvalCompletionsRunDataSource.SamplingParams; +} +export declare namespace CreateEvalCompletionsRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A StoredCompletionsRunDataSource configuration describing a set of filters + */ + interface StoredCompletions { + /** + * The type of source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * An optional Unix timestamp to filter items created after this time. + */ + created_after?: number | null; + /** + * An optional Unix timestamp to filter items created before this time. + */ + created_before?: number | null; + /** + * An optional maximum number of items to return. + */ + limit?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * An optional model to filter by (e.g., 'gpt-4o'). + */ + model?: string | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.input_trajectory" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * An object specifying the format that the model must output. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + response_format?: Shared.ResponseFormatText | Shared.ResponseFormatJSONSchema | Shared.ResponseFormatJSONObject; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * A list of tools the model may call. Currently, only functions are supported as a + * tool. Use this to provide a list of functions the model may generate JSON inputs + * for. A max of 128 functions are supported. + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } +} +/** + * A JsonlRunDataSource object with that specifies a JSONL file that matches the + * eval + */ +export interface CreateEvalJSONLRunDataSource { + /** + * Determines what populates the `item` namespace in the data source. + */ + source: CreateEvalJSONLRunDataSource.FileContent | CreateEvalJSONLRunDataSource.FileID; + /** + * The type of data source. Always `jsonl`. + */ + type: 'jsonl'; +} +export declare namespace CreateEvalJSONLRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } +} +/** + * An object representing an error response from the Eval API. + */ +export interface EvalAPIError { + /** + * The error code. + */ + code: string; + /** + * The error message. + */ + message: string; +} +/** + * A schema representing an evaluation run. + */ +export interface RunCreateResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunCreateResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunCreateResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +/** + * A schema representing an evaluation run. + */ +export interface RunRetrieveResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunRetrieveResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunRetrieveResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunRetrieveResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +/** + * A schema representing an evaluation run. + */ +export interface RunListResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunListResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunListResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunListResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +export interface RunDeleteResponse { + deleted?: boolean; + object?: string; + run_id?: string; +} +/** + * A schema representing an evaluation run. + */ +export interface RunCancelResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCancelResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunCancelResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunCancelResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +export interface RunCreateParams { + /** + * Details about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateParams.CreateEvalResponsesRunDataSource; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the run. + */ + name?: string; +} +export declare namespace RunCreateParams { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface CreateEvalResponsesRunDataSource { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: CreateEvalResponsesRunDataSource.FileContent | CreateEvalResponsesRunDataSource.FileID | CreateEvalResponsesRunDataSource.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: CreateEvalResponsesRunDataSource.Template | CreateEvalResponsesRunDataSource.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: CreateEvalResponsesRunDataSource.SamplingParams; + } + namespace CreateEvalResponsesRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } +} +export interface RunRetrieveParams { + /** + * The ID of the evaluation to retrieve runs for. + */ + eval_id: string; +} +export interface RunListParams extends CursorPageParams { + /** + * Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for + * descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; + /** + * Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed` + * | `canceled`. + */ + status?: 'queued' | 'in_progress' | 'completed' | 'canceled' | 'failed'; +} +export interface RunDeleteParams { + /** + * The ID of the evaluation to delete the run from. + */ + eval_id: string; +} +export interface RunCancelParams { + /** + * The ID of the evaluation whose run you want to cancel. + */ + eval_id: string; +} +export declare namespace Runs { + export { type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, }; + export { OutputItems as OutputItems, type OutputItemRetrieveResponse as OutputItemRetrieveResponse, type OutputItemListResponse as OutputItemListResponse, type OutputItemListResponsesPage as OutputItemListResponsesPage, type OutputItemRetrieveParams as OutputItemRetrieveParams, type OutputItemListParams as OutputItemListParams, }; +} +//# sourceMappingURL=runs.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..2c95d69b4afc5797c1874e661c6c4da93fba6537 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../../src/resources/evals/runs/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,KAAK,cAAc;OACnB,KAAK,cAAc;OACnB,EACL,oBAAoB,EACpB,sBAAsB,EACtB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EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4bde4e48e50183fa8aab94bb075f21f9abd813b3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts @@ -0,0 +1,2227 @@ +import { APIResource } from "../../../core/resource.js"; +import * as Shared from "../../shared.js"; +import * as ResponsesAPI from "../../responses/responses.js"; +import * as CompletionsAPI from "../../chat/completions/completions.js"; +import * as OutputItemsAPI from "./output-items.js"; +import { OutputItemListParams, OutputItemListResponse, OutputItemListResponsesPage, OutputItemRetrieveParams, OutputItemRetrieveResponse, OutputItems } from "./output-items.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Runs extends APIResource { + outputItems: OutputItemsAPI.OutputItems; + /** + * Kicks off a new run for a given evaluation, specifying the data source, and what + * model configuration to use to test. The datasource will be validated against the + * schema specified in the config of the evaluation. + */ + create(evalID: string, body: RunCreateParams, options?: RequestOptions): APIPromise; + /** + * Get an evaluation run by ID. + */ + retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Get a list of runs for an evaluation. + */ + list(evalID: string, query?: RunListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete an eval run. + */ + delete(runID: string, params: RunDeleteParams, options?: RequestOptions): APIPromise; + /** + * Cancel an ongoing evaluation run. + */ + cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise; +} +export type RunListResponsesPage = CursorPage; +/** + * A CompletionsRunDataSource object describing a model sampling configuration. + */ +export interface CreateEvalCompletionsRunDataSource { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: CreateEvalCompletionsRunDataSource.FileContent | CreateEvalCompletionsRunDataSource.FileID | CreateEvalCompletionsRunDataSource.StoredCompletions; + /** + * The type of run data source. Always `completions`. + */ + type: 'completions'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: CreateEvalCompletionsRunDataSource.Template | CreateEvalCompletionsRunDataSource.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: CreateEvalCompletionsRunDataSource.SamplingParams; +} +export declare namespace CreateEvalCompletionsRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A StoredCompletionsRunDataSource configuration describing a set of filters + */ + interface StoredCompletions { + /** + * The type of source. Always `stored_completions`. + */ + type: 'stored_completions'; + /** + * An optional Unix timestamp to filter items created after this time. + */ + created_after?: number | null; + /** + * An optional Unix timestamp to filter items created before this time. + */ + created_before?: number | null; + /** + * An optional maximum number of items to return. + */ + limit?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * An optional model to filter by (e.g., 'gpt-4o'). + */ + model?: string | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.input_trajectory" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * An object specifying the format that the model must output. + * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which ensures the model will match your supplied JSON schema. Learn more + * in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + response_format?: Shared.ResponseFormatText | Shared.ResponseFormatJSONSchema | Shared.ResponseFormatJSONObject; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * A list of tools the model may call. Currently, only functions are supported as a + * tool. Use this to provide a list of functions the model may generate JSON inputs + * for. A max of 128 functions are supported. + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } +} +/** + * A JsonlRunDataSource object with that specifies a JSONL file that matches the + * eval + */ +export interface CreateEvalJSONLRunDataSource { + /** + * Determines what populates the `item` namespace in the data source. + */ + source: CreateEvalJSONLRunDataSource.FileContent | CreateEvalJSONLRunDataSource.FileID; + /** + * The type of data source. Always `jsonl`. + */ + type: 'jsonl'; +} +export declare namespace CreateEvalJSONLRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } +} +/** + * An object representing an error response from the Eval API. + */ +export interface EvalAPIError { + /** + * The error code. + */ + code: string; + /** + * The error message. + */ + message: string; +} +/** + * A schema representing an evaluation run. + */ +export interface RunCreateResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunCreateResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunCreateResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +/** + * A schema representing an evaluation run. + */ +export interface RunRetrieveResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunRetrieveResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunRetrieveResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunRetrieveResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +/** + * A schema representing an evaluation run. + */ +export interface RunListResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunListResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunListResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunListResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +export interface RunDeleteResponse { + deleted?: boolean; + object?: string; + run_id?: string; +} +/** + * A schema representing an evaluation run. + */ +export interface RunCancelResponse { + /** + * Unique identifier for the evaluation run. + */ + id: string; + /** + * Unix timestamp (in seconds) when the evaluation run was created. + */ + created_at: number; + /** + * Information about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCancelResponse.Responses; + /** + * An object representing an error response from the Eval API. + */ + error: EvalAPIError; + /** + * The identifier of the associated evaluation. + */ + eval_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The model that is evaluated, if applicable. + */ + model: string; + /** + * The name of the evaluation run. + */ + name: string; + /** + * The type of the object. Always "eval.run". + */ + object: 'eval.run'; + /** + * Usage statistics for each model during the evaluation run. + */ + per_model_usage: Array; + /** + * Results per testing criteria applied during the evaluation run. + */ + per_testing_criteria_results: Array; + /** + * The URL to the rendered evaluation run report on the UI dashboard. + */ + report_url: string; + /** + * Counters summarizing the outcomes of the evaluation run. + */ + result_counts: RunCancelResponse.ResultCounts; + /** + * The status of the evaluation run. + */ + status: string; +} +export declare namespace RunCancelResponse { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface Responses { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: Responses.FileContent | Responses.FileID | Responses.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: Responses.Template | Responses.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: Responses.SamplingParams; + } + namespace Responses { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } + interface PerModelUsage { + /** + * The number of tokens retrieved from cache. + */ + cached_tokens: number; + /** + * The number of completion tokens generated. + */ + completion_tokens: number; + /** + * The number of invocations. + */ + invocation_count: number; + /** + * The name of the model. + */ + model_name: string; + /** + * The number of prompt tokens used. + */ + prompt_tokens: number; + /** + * The total number of tokens used. + */ + total_tokens: number; + } + interface PerTestingCriteriaResult { + /** + * Number of tests failed for this criteria. + */ + failed: number; + /** + * Number of tests passed for this criteria. + */ + passed: number; + /** + * A description of the testing criteria. + */ + testing_criteria: string; + } + /** + * Counters summarizing the outcomes of the evaluation run. + */ + interface ResultCounts { + /** + * Number of output items that resulted in an error. + */ + errored: number; + /** + * Number of output items that failed to pass the evaluation. + */ + failed: number; + /** + * Number of output items that passed the evaluation. + */ + passed: number; + /** + * Total number of executed output items. + */ + total: number; + } +} +export interface RunCreateParams { + /** + * Details about the run's data source. + */ + data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateParams.CreateEvalResponsesRunDataSource; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the run. + */ + name?: string; +} +export declare namespace RunCreateParams { + /** + * A ResponsesRunDataSource object describing a model sampling configuration. + */ + interface CreateEvalResponsesRunDataSource { + /** + * Determines what populates the `item` namespace in this run's data source. + */ + source: CreateEvalResponsesRunDataSource.FileContent | CreateEvalResponsesRunDataSource.FileID | CreateEvalResponsesRunDataSource.Responses; + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Used when sampling from a model. Dictates the structure of the messages passed + * into the model. Can either be a reference to a prebuilt trajectory (ie, + * `item.input_trajectory`), or a template with variable references to the `item` + * namespace. + */ + input_messages?: CreateEvalResponsesRunDataSource.Template | CreateEvalResponsesRunDataSource.ItemReference; + /** + * The name of the model to use for generating completions (e.g. "o3-mini"). + */ + model?: string; + sampling_params?: CreateEvalResponsesRunDataSource.SamplingParams; + } + namespace CreateEvalResponsesRunDataSource { + interface FileContent { + /** + * The content of the jsonl file. + */ + content: Array; + /** + * The type of jsonl source. Always `file_content`. + */ + type: 'file_content'; + } + namespace FileContent { + interface Content { + item: { + [key: string]: unknown; + }; + sample?: { + [key: string]: unknown; + }; + } + } + interface FileID { + /** + * The identifier of the file. + */ + id: string; + /** + * The type of jsonl source. Always `file_id`. + */ + type: 'file_id'; + } + /** + * A EvalResponsesSource object describing a run data source configuration. + */ + interface Responses { + /** + * The type of run data source. Always `responses`. + */ + type: 'responses'; + /** + * Only include items created after this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_after?: number | null; + /** + * Only include items created before this timestamp (inclusive). This is a query + * parameter used to select responses. + */ + created_before?: number | null; + /** + * Optional string to search the 'instructions' field. This is a query parameter + * used to select responses. + */ + instructions_search?: string | null; + /** + * Metadata filter for the responses. This is a query parameter used to select + * responses. + */ + metadata?: unknown | null; + /** + * The name of the model to find responses for. This is a query parameter used to + * select responses. + */ + model?: string | null; + /** + * Optional reasoning effort parameter. This is a query parameter used to select + * responses. + */ + reasoning_effort?: Shared.ReasoningEffort | null; + /** + * Sampling temperature. This is a query parameter used to select responses. + */ + temperature?: number | null; + /** + * List of tool names. This is a query parameter used to select responses. + */ + tools?: Array | null; + /** + * Nucleus sampling parameter. This is a query parameter used to select responses. + */ + top_p?: number | null; + /** + * List of user identifiers. This is a query parameter used to select responses. + */ + users?: Array | null; + } + interface Template { + /** + * A list of chat messages forming the prompt or context. May include variable + * references to the `item` namespace, ie {{item.name}}. + */ + template: Array; + /** + * The type of input messages. Always `template`. + */ + type: 'template'; + } + namespace Template { + interface ChatMessage { + /** + * The content of the message. + */ + content: string; + /** + * The role of the message (e.g. "system", "assistant", "user"). + */ + role: string; + } + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface EvalItem { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace EvalItem { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } + } + interface ItemReference { + /** + * A reference to a variable in the `item` namespace. Ie, "item.name" + */ + item_reference: string; + /** + * The type of input messages. Always `item_reference`. + */ + type: 'item_reference'; + } + interface SamplingParams { + /** + * The maximum number of tokens in the generated output. + */ + max_completion_tokens?: number; + /** + * A seed value to initialize the randomness, during sampling. + */ + seed?: number; + /** + * A higher temperature increases randomness in the outputs. + */ + temperature?: number; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: SamplingParams.Text; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code. Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ + tools?: Array; + /** + * An alternative to temperature for nucleus sampling; 1.0 includes all tokens. + */ + top_p?: number; + } + namespace SamplingParams { + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + interface Text { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponsesAPI.ResponseFormatTextConfig; + } + } + } +} +export interface RunRetrieveParams { + /** + * The ID of the evaluation to retrieve runs for. + */ + eval_id: string; +} +export interface RunListParams extends CursorPageParams { + /** + * Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for + * descending order. Defaults to `asc`. + */ + order?: 'asc' | 'desc'; + /** + * Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed` + * | `canceled`. + */ + status?: 'queued' | 'in_progress' | 'completed' | 'canceled' | 'failed'; +} +export interface RunDeleteParams { + /** + * The ID of the evaluation to delete the run from. + */ + eval_id: string; +} +export interface RunCancelParams { + /** + * The ID of the evaluation whose run you want to cancel. + */ + eval_id: string; +} +export declare namespace Runs { + export { type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, }; + export { OutputItems as OutputItems, type OutputItemRetrieveResponse as OutputItemRetrieveResponse, type OutputItemListResponse as OutputItemListResponse, type OutputItemListResponsesPage as OutputItemListResponsesPage, type OutputItemRetrieveParams as OutputItemRetrieveParams, type OutputItemListParams as OutputItemListParams, }; +} +//# sourceMappingURL=runs.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d1dd17c700560ce17a47cbe44e165f12f308b03a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../src/resources/evals/runs/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,KAAK,cAAc;OACnB,KAAK,cAAc;OACnB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU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AAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;CACzE;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js new file mode 100644 index 0000000000000000000000000000000000000000..9c495e1a7040963baf9566d82a16e7279b1fd9d4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js @@ -0,0 +1,57 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Runs = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const OutputItemsAPI = tslib_1.__importStar(require("./output-items.js")); +const output_items_1 = require("./output-items.js"); +const pagination_1 = require("../../../core/pagination.js"); +const path_1 = require("../../../internal/utils/path.js"); +class Runs extends resource_1.APIResource { + constructor() { + super(...arguments); + this.outputItems = new OutputItemsAPI.OutputItems(this._client); + } + /** + * Kicks off a new run for a given evaluation, specifying the data source, and what + * model configuration to use to test. The datasource will be validated against the + * schema specified in the config of the evaluation. + */ + create(evalID, body, options) { + return this._client.post((0, path_1.path) `/evals/${evalID}/runs`, { body, ...options }); + } + /** + * Get an evaluation run by ID. + */ + retrieve(runID, params, options) { + const { eval_id } = params; + return this._client.get((0, path_1.path) `/evals/${eval_id}/runs/${runID}`, options); + } + /** + * Get a list of runs for an evaluation. + */ + list(evalID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/evals/${evalID}/runs`, (pagination_1.CursorPage), { + query, + ...options, + }); + } + /** + * Delete an eval run. + */ + delete(runID, params, options) { + const { eval_id } = params; + return this._client.delete((0, path_1.path) `/evals/${eval_id}/runs/${runID}`, options); + } + /** + * Cancel an ongoing evaluation run. + */ + cancel(runID, params, options) { + const { eval_id } = params; + return this._client.post((0, path_1.path) `/evals/${eval_id}/runs/${runID}`, options); + } +} +exports.Runs = Runs; +Runs.OutputItems = output_items_1.OutputItems; +//# sourceMappingURL=runs.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f728122a8c9029a5cdeb7dd94298bd782e1d4280 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/resources/evals/runs/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,0EAAiD;AACjD,oDAOwB;AAExB,4DAA0F;AAE1F,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoDzF,CAAC;IAlDC;;;;OAIG;IACH,MAAM,CAAC,MAAc,EAAE,IAAqB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,MAAc,EACd,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,OAAO,EAAE,CAAA,uBAA2B,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AArDD,oBAqDC;AAqiFD,IAAI,CAAC,WAAW,GAAG,0BAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs new file mode 100644 index 0000000000000000000000000000000000000000..83b4b63e954050bf3e3484c6251ba8398e463b2c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as OutputItemsAPI from "./output-items.mjs"; +import { OutputItems, } from "./output-items.mjs"; +import { CursorPage } from "../../../core/pagination.mjs"; +import { path } from "../../../internal/utils/path.mjs"; +export class Runs extends APIResource { + constructor() { + super(...arguments); + this.outputItems = new OutputItemsAPI.OutputItems(this._client); + } + /** + * Kicks off a new run for a given evaluation, specifying the data source, and what + * model configuration to use to test. The datasource will be validated against the + * schema specified in the config of the evaluation. + */ + create(evalID, body, options) { + return this._client.post(path `/evals/${evalID}/runs`, { body, ...options }); + } + /** + * Get an evaluation run by ID. + */ + retrieve(runID, params, options) { + const { eval_id } = params; + return this._client.get(path `/evals/${eval_id}/runs/${runID}`, options); + } + /** + * Get a list of runs for an evaluation. + */ + list(evalID, query = {}, options) { + return this._client.getAPIList(path `/evals/${evalID}/runs`, (CursorPage), { + query, + ...options, + }); + } + /** + * Delete an eval run. + */ + delete(runID, params, options) { + const { eval_id } = params; + return this._client.delete(path `/evals/${eval_id}/runs/${runID}`, options); + } + /** + * Cancel an ongoing evaluation run. + */ + cancel(runID, params, options) { + const { eval_id } = params; + return this._client.post(path `/evals/${eval_id}/runs/${runID}`, options); + } +} +Runs.OutputItems = OutputItems; +//# sourceMappingURL=runs.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..a2804322acf6fe11d4c635b797130957b40cbd09 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/evals/runs/runs.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../../src/resources/evals/runs/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,cAAc;OACnB,EAML,WAAW,GACZ;OAEM,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoDzF,CAAC;IAlDC;;;;OAIG;IACH,MAAM,CAAC,MAAc,EAAE,IAAqB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,MAAc,EACd,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,UAAU,MAAM,OAAO,EAAE,CAAA,UAA2B,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,OAAO,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAqiFD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..3abea0069221b3a5fa24275ba7e78bbebe917efe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts @@ -0,0 +1,164 @@ +import { APIResource } from "../core/resource.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs"; +import { type Uploadable } from "../core/uploads.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Files extends APIResource { + /** + * Upload a file that can be used across various endpoints. Individual files can be + * up to 512 MB, and the size of all files uploaded by one organization can be up + * to 1 TB. + * + * The Assistants API supports files up to 2 million tokens and of specific file + * types. See the + * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for + * details. + * + * The Fine-tuning API only supports `.jsonl` files. The input also has certain + * required formats for fine-tuning + * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or + * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) + * models. + * + * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also + * has a specific required + * [format](https://platform.openai.com/docs/api-reference/batch/request-input). + * + * Please [contact us](https://help.openai.com/) if you need to increase these + * storage limits. + */ + create(body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Returns information about a specific file. + */ + retrieve(fileID: string, options?: RequestOptions): APIPromise; + /** + * Returns a list of files. + */ + list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a file. + */ + delete(fileID: string, options?: RequestOptions): APIPromise; + /** + * Returns the contents of the specified file. + */ + content(fileID: string, options?: RequestOptions): APIPromise; + /** + * Waits for the given file to be processed, default timeout is 30 mins. + */ + waitForProcessing(id: string, { pollInterval, maxWait }?: { + pollInterval?: number; + maxWait?: number; + }): Promise; +} +export type FileObjectsPage = CursorPage; +export type FileContent = string; +export interface FileDeleted { + id: string; + deleted: boolean; + object: 'file'; +} +/** + * The `File` object represents a document that has been uploaded to OpenAI. + */ +export interface FileObject { + /** + * The file identifier, which can be referenced in the API endpoints. + */ + id: string; + /** + * The size of the file, in bytes. + */ + bytes: number; + /** + * The Unix timestamp (in seconds) for when the file was created. + */ + created_at: number; + /** + * The name of the file. + */ + filename: string; + /** + * The object type, which is always `file`. + */ + object: 'file'; + /** + * The intended purpose of the file. Supported values are `assistants`, + * `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results`, + * `vision`, and `user_data`. + */ + purpose: 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'fine-tune' | 'fine-tune-results' | 'vision' | 'user_data'; + /** + * @deprecated Deprecated. The current status of the file, which can be either + * `uploaded`, `processed`, or `error`. + */ + status: 'uploaded' | 'processed' | 'error'; + /** + * The Unix timestamp (in seconds) for when the file will expire. + */ + expires_at?: number; + /** + * @deprecated Deprecated. For details on why a fine-tuning training file failed + * validation, see the `error` field on `fine_tuning.job`. + */ + status_details?: string; +} +/** + * The intended purpose of the uploaded file. One of: - `assistants`: Used in the + * Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for + * fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: + * Flexible file type for any purpose - `evals`: Used for eval data sets + */ +export type FilePurpose = 'assistants' | 'batch' | 'fine-tune' | 'vision' | 'user_data' | 'evals'; +export interface FileCreateParams { + /** + * The File object (not file name) to be uploaded. + */ + file: Uploadable; + /** + * The intended purpose of the uploaded file. One of: - `assistants`: Used in the + * Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for + * fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: + * Flexible file type for any purpose - `evals`: Used for eval data sets + */ + purpose: FilePurpose; + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + expires_after?: FileCreateParams.ExpiresAfter; +} +export declare namespace FileCreateParams { + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface FileListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; + /** + * Only return files with the given purpose. + */ + purpose?: string; +} +export declare namespace Files { + export { type FileContent as FileContent, type FileDeleted as FileDeleted, type FileObject as FileObject, type FilePurpose as FilePurpose, type FileObjectsPage as FileObjectsPage, type FileCreateParams as FileCreateParams, type FileListParams as FileListParams, }; +} +//# sourceMappingURL=files.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6fc4d063efb3d496ce509f31057b8952ba6dfa7a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAMzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIhF;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI1E;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,UAAU,CAAC;IAI3C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIzE;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC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;OAKG;IACH,OAAO,EAAE,WAAW,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC;CAC/C;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;;OAGG;IACH,UAAiB,YAAY;QAC3B;;;WAGG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..aeb3cc221974851f666807cdcf6574adca442da1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts @@ -0,0 +1,164 @@ +import { APIResource } from "../core/resource.js"; +import { APIPromise } from "../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js"; +import { type Uploadable } from "../core/uploads.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Files extends APIResource { + /** + * Upload a file that can be used across various endpoints. Individual files can be + * up to 512 MB, and the size of all files uploaded by one organization can be up + * to 1 TB. + * + * The Assistants API supports files up to 2 million tokens and of specific file + * types. See the + * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for + * details. + * + * The Fine-tuning API only supports `.jsonl` files. The input also has certain + * required formats for fine-tuning + * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or + * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) + * models. + * + * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also + * has a specific required + * [format](https://platform.openai.com/docs/api-reference/batch/request-input). + * + * Please [contact us](https://help.openai.com/) if you need to increase these + * storage limits. + */ + create(body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Returns information about a specific file. + */ + retrieve(fileID: string, options?: RequestOptions): APIPromise; + /** + * Returns a list of files. + */ + list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a file. + */ + delete(fileID: string, options?: RequestOptions): APIPromise; + /** + * Returns the contents of the specified file. + */ + content(fileID: string, options?: RequestOptions): APIPromise; + /** + * Waits for the given file to be processed, default timeout is 30 mins. + */ + waitForProcessing(id: string, { pollInterval, maxWait }?: { + pollInterval?: number; + maxWait?: number; + }): Promise; +} +export type FileObjectsPage = CursorPage; +export type FileContent = string; +export interface FileDeleted { + id: string; + deleted: boolean; + object: 'file'; +} +/** + * The `File` object represents a document that has been uploaded to OpenAI. + */ +export interface FileObject { + /** + * The file identifier, which can be referenced in the API endpoints. + */ + id: string; + /** + * The size of the file, in bytes. + */ + bytes: number; + /** + * The Unix timestamp (in seconds) for when the file was created. + */ + created_at: number; + /** + * The name of the file. + */ + filename: string; + /** + * The object type, which is always `file`. + */ + object: 'file'; + /** + * The intended purpose of the file. Supported values are `assistants`, + * `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results`, + * `vision`, and `user_data`. + */ + purpose: 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'fine-tune' | 'fine-tune-results' | 'vision' | 'user_data'; + /** + * @deprecated Deprecated. The current status of the file, which can be either + * `uploaded`, `processed`, or `error`. + */ + status: 'uploaded' | 'processed' | 'error'; + /** + * The Unix timestamp (in seconds) for when the file will expire. + */ + expires_at?: number; + /** + * @deprecated Deprecated. For details on why a fine-tuning training file failed + * validation, see the `error` field on `fine_tuning.job`. + */ + status_details?: string; +} +/** + * The intended purpose of the uploaded file. One of: - `assistants`: Used in the + * Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for + * fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: + * Flexible file type for any purpose - `evals`: Used for eval data sets + */ +export type FilePurpose = 'assistants' | 'batch' | 'fine-tune' | 'vision' | 'user_data' | 'evals'; +export interface FileCreateParams { + /** + * The File object (not file name) to be uploaded. + */ + file: Uploadable; + /** + * The intended purpose of the uploaded file. One of: - `assistants`: Used in the + * Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for + * fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: + * Flexible file type for any purpose - `evals`: Used for eval data sets + */ + purpose: FilePurpose; + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + expires_after?: FileCreateParams.ExpiresAfter; +} +export declare namespace FileCreateParams { + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface FileListParams extends CursorPageParams { + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; + /** + * Only return files with the given purpose. + */ + purpose?: string; +} +export declare namespace Files { + export { type FileContent as FileContent, type FileDeleted as FileDeleted, type FileObject as FileObject, type FilePurpose as FilePurpose, type FileObjectsPage as FileObjectsPage, type FileCreateParams as FileCreateParams, type FileListParams as FileListParams, }; +} +//# sourceMappingURL=files.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7ecef52e30c4cfcbf6ca4d15e9afc5bb9916345c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAMzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIhF;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI1E;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,UAAU,CAAC;IAI3C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIzE;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQvE;;OAEG;IACG,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,EAAE,YAAmB,EAAE,OAAwB,EAAE,GAAE;QAAE,YAAY,CAAC,EAA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YAAY;QAC3B;;;WAGG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js new file mode 100644 index 0000000000000000000000000000000000000000..fb7f1477a40bb1db6188e6e676d4748fb57e953b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js @@ -0,0 +1,87 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Files = void 0; +const resource_1 = require("../core/resource.js"); +const pagination_1 = require("../core/pagination.js"); +const headers_1 = require("../internal/headers.js"); +const sleep_1 = require("../internal/utils/sleep.js"); +const error_1 = require("../error.js"); +const uploads_1 = require("../internal/uploads.js"); +const path_1 = require("../internal/utils/path.js"); +class Files extends resource_1.APIResource { + /** + * Upload a file that can be used across various endpoints. Individual files can be + * up to 512 MB, and the size of all files uploaded by one organization can be up + * to 1 TB. + * + * The Assistants API supports files up to 2 million tokens and of specific file + * types. See the + * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for + * details. + * + * The Fine-tuning API only supports `.jsonl` files. The input also has certain + * required formats for fine-tuning + * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or + * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) + * models. + * + * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also + * has a specific required + * [format](https://platform.openai.com/docs/api-reference/batch/request-input). + * + * Please [contact us](https://help.openai.com/) if you need to increase these + * storage limits. + */ + create(body, options) { + return this._client.post('/files', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client)); + } + /** + * Returns information about a specific file. + */ + retrieve(fileID, options) { + return this._client.get((0, path_1.path) `/files/${fileID}`, options); + } + /** + * Returns a list of files. + */ + list(query = {}, options) { + return this._client.getAPIList('/files', (pagination_1.CursorPage), { query, ...options }); + } + /** + * Delete a file. + */ + delete(fileID, options) { + return this._client.delete((0, path_1.path) `/files/${fileID}`, options); + } + /** + * Returns the contents of the specified file. + */ + content(fileID, options) { + return this._client.get((0, path_1.path) `/files/${fileID}/content`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: 'application/binary' }, options?.headers]), + __binaryResponse: true, + }); + } + /** + * Waits for the given file to be processed, default timeout is 30 mins. + */ + async waitForProcessing(id, { pollInterval = 5000, maxWait = 30 * 60 * 1000 } = {}) { + const TERMINAL_STATES = new Set(['processed', 'error', 'deleted']); + const start = Date.now(); + let file = await this.retrieve(id); + while (!file.status || !TERMINAL_STATES.has(file.status)) { + await (0, sleep_1.sleep)(pollInterval); + file = await this.retrieve(id); + if (Date.now() - start > maxWait) { + throw new error_1.APIConnectionTimeoutError({ + message: `Giving up on waiting for file ${id} to finish processing after ${maxWait} milliseconds.`, + }); + } + } + return file; + } +} +exports.Files = Files; +//# sourceMappingURL=files.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js.map new file mode 100644 index 0000000000000000000000000000000000000000..89d132adda899349174d97bed8cece6f550cb3cd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAAmD;AAEnD,sDAAgD;AAChD,uCAAqD;AACrD,oDAAkE;AAClE,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,uBAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,UAAU,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC3E,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,EAAE,YAAY,GAAG,IAAI,EAAE,OAAO,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,KAAkD,EAAE;QAEnG,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;QAEnE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACzB,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAEnC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACzD,MAAM,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC;YAE1B,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC/B,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,OAAO,EAAE,CAAC;gBACjC,MAAM,IAAI,iCAAyB,CAAC;oBAClC,OAAO,EAAE,iCAAiC,EAAE,+BAA+B,OAAO,gBAAgB;iBACnG,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAxFD,sBAwFC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f151e19374bc030ad7d1eb50b9967da401da80ee --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs @@ -0,0 +1,83 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +import { CursorPage } from "../core/pagination.mjs"; +import { buildHeaders } from "../internal/headers.mjs"; +import { sleep } from "../internal/utils/sleep.mjs"; +import { APIConnectionTimeoutError } from "../error.mjs"; +import { multipartFormRequestOptions } from "../internal/uploads.mjs"; +import { path } from "../internal/utils/path.mjs"; +export class Files extends APIResource { + /** + * Upload a file that can be used across various endpoints. Individual files can be + * up to 512 MB, and the size of all files uploaded by one organization can be up + * to 1 TB. + * + * The Assistants API supports files up to 2 million tokens and of specific file + * types. See the + * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for + * details. + * + * The Fine-tuning API only supports `.jsonl` files. The input also has certain + * required formats for fine-tuning + * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or + * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) + * models. + * + * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also + * has a specific required + * [format](https://platform.openai.com/docs/api-reference/batch/request-input). + * + * Please [contact us](https://help.openai.com/) if you need to increase these + * storage limits. + */ + create(body, options) { + return this._client.post('/files', multipartFormRequestOptions({ body, ...options }, this._client)); + } + /** + * Returns information about a specific file. + */ + retrieve(fileID, options) { + return this._client.get(path `/files/${fileID}`, options); + } + /** + * Returns a list of files. + */ + list(query = {}, options) { + return this._client.getAPIList('/files', (CursorPage), { query, ...options }); + } + /** + * Delete a file. + */ + delete(fileID, options) { + return this._client.delete(path `/files/${fileID}`, options); + } + /** + * Returns the contents of the specified file. + */ + content(fileID, options) { + return this._client.get(path `/files/${fileID}/content`, { + ...options, + headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]), + __binaryResponse: true, + }); + } + /** + * Waits for the given file to be processed, default timeout is 30 mins. + */ + async waitForProcessing(id, { pollInterval = 5000, maxWait = 30 * 60 * 1000 } = {}) { + const TERMINAL_STATES = new Set(['processed', 'error', 'deleted']); + const start = Date.now(); + let file = await this.retrieve(id); + while (!file.status || !TERMINAL_STATES.has(file.status)) { + await sleep(pollInterval); + file = await this.retrieve(id); + if (Date.now() - start > maxWait) { + throw new APIConnectionTimeoutError({ + message: `Giving up on waiting for file ${id} to finish processing after ${maxWait} milliseconds.`, + }); + } + } + return file; + } +} +//# sourceMappingURL=files.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2d7362ddd9cd7ad2ac21d7ca68fe43b05246a4d1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/files.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,YAAY,EAAE;OAEhB,EAAE,KAAK,EAAE;OACT,EAAE,yBAAyB,EAAE;OAC7B,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG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AAC,EAAE,CAAC,CAAC;YAC/B,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,OAAO,EAAE,CAAC;gBACjC,MAAM,IAAI,yBAAyB,CAAC;oBAClC,OAAO,EAAE,iCAAiC,EAAE,+BAA+B,OAAO,gBAAgB;iBACnG,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..42012eac56708c890c2b899cd58abca779bfc8f5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts @@ -0,0 +1,2 @@ +export * from "./fine-tuning/index.mjs"; +//# sourceMappingURL=fine-tuning.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..281a985059ae6f353369ffde65da23eb8691ae3a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.d.mts","sourceRoot":"","sources":["../src/resources/fine-tuning.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4969cbbc2f7c723c0ac68af70079d8e523b91bc2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts @@ -0,0 +1,2 @@ +export * from "./fine-tuning/index.js"; +//# sourceMappingURL=fine-tuning.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2b5e2ee66bcc241bde577e65d7580e12de88df89 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.d.ts","sourceRoot":"","sources":["../src/resources/fine-tuning.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js new file mode 100644 index 0000000000000000000000000000000000000000..0b6be152a689f03b67ba6f46fa03640635a42361 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./fine-tuning/index.js"), exports); +//# sourceMappingURL=fine-tuning.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c7b9ac927262121693ffaea8f0c6382e517b6d7e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.js","sourceRoot":"","sources":["../src/resources/fine-tuning.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs new file mode 100644 index 0000000000000000000000000000000000000000..609367fc9f4eb9df0d2fb9866985062b5581199e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./fine-tuning/index.mjs"; +//# sourceMappingURL=fine-tuning.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9eb21547ad7cce31bc30ea1d3b6256e2e3a4fc97 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.mjs","sourceRoot":"","sources":["../src/resources/fine-tuning.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..84440b6c7daa039e954e0c00a1a54b1929864c9f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts @@ -0,0 +1,2 @@ +export * from "./alpha/index.mjs"; +//# sourceMappingURL=alpha.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..591344bab87994d692886f2740455459be41936b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/alpha.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e5f704bf62561202f4352a605b24ca6a1298e8a0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts @@ -0,0 +1,2 @@ +export * from "./alpha/index.js"; +//# sourceMappingURL=alpha.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2b011b38c565aa194e900a2d2f7f9b44c08d85aa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/alpha.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js new file mode 100644 index 0000000000000000000000000000000000000000..81c0768ead7f068cdb2f71479fc5d1893d487374 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./alpha/index.js"), exports); +//# sourceMappingURL=alpha.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js.map new file mode 100644 index 0000000000000000000000000000000000000000..8410d2b886b92ab059647f4465c185f853e5ad4d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.js.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/alpha.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs new file mode 100644 index 0000000000000000000000000000000000000000..2f0f4e065df8ca02af0b1a3448a654c10deb5cad --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./alpha/index.mjs"; +//# sourceMappingURL=alpha.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..d4a82125984848d73a735935c98e7ed1ad58192c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/alpha.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a4f3e7936401ba289364e1369c50770bfff92fb7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts @@ -0,0 +1,10 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as GradersAPI from "./graders.mjs"; +import { GraderRunParams, GraderRunResponse, GraderValidateParams, GraderValidateResponse, Graders } from "./graders.mjs"; +export declare class Alpha extends APIResource { + graders: GradersAPI.Graders; +} +export declare namespace Alpha { + export { Graders as Graders, type GraderRunResponse as GraderRunResponse, type GraderValidateResponse as GraderValidateResponse, type GraderRunParams as GraderRunParams, type GraderValidateParams as GraderValidateParams, }; +} +//# sourceMappingURL=alpha.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..dbc83ecbf91e79e34dbd2441a70721fe4374397b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.d.mts","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/alpha.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..de804b9a1e8c8f0a2fca426b203e2363d32e0d85 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts @@ -0,0 +1,10 @@ +import { APIResource } from "../../../core/resource.js"; +import * as GradersAPI from "./graders.js"; +import { GraderRunParams, GraderRunResponse, GraderValidateParams, GraderValidateResponse, Graders } from "./graders.js"; +export declare class Alpha extends APIResource { + graders: GradersAPI.Graders; +} +export declare namespace Alpha { + export { Graders as Graders, type GraderRunResponse as GraderRunResponse, type GraderValidateResponse as GraderValidateResponse, type GraderRunParams as GraderRunParams, type GraderValidateParams as GraderValidateParams, }; +} +//# sourceMappingURL=alpha.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..3273580643885956dae4f96dadd0b93f3e2b1b05 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.d.ts","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/alpha.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js new file mode 100644 index 0000000000000000000000000000000000000000..6ad09668381dd682ca7b102d0ad8805af5ecd5f2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js @@ -0,0 +1,17 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Alpha = void 0; +const tslib_1 = require("../../../internal/tslib.js"); +const resource_1 = require("../../../core/resource.js"); +const GradersAPI = tslib_1.__importStar(require("./graders.js")); +const graders_1 = require("./graders.js"); +class Alpha extends resource_1.APIResource { + constructor() { + super(...arguments); + this.graders = new GradersAPI.Graders(this._client); + } +} +exports.Alpha = Alpha; +Alpha.Graders = graders_1.Graders; +//# sourceMappingURL=alpha.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f12a386a742467f19ed32d9608a87d6398e2426f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.js.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.js","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/alpha.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAMmB;AAEnB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAFD,sBAEC;AAED,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f7394b58f9dc1aee0621d8d85f07eb6e91b2ec50 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +import * as GradersAPI from "./graders.mjs"; +import { Graders, } from "./graders.mjs"; +export class Alpha extends APIResource { + constructor() { + super(...arguments); + this.graders = new GradersAPI.Graders(this._client); + } +} +Alpha.Graders = Graders; +//# sourceMappingURL=alpha.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..37871c39458c7b2b74ff81b1b2a8097549fccf6c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"alpha.mjs","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/alpha.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAKL,OAAO,GACR;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..e995748a47086ac3e55242a999f1ebf20f4cc2f1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts @@ -0,0 +1,119 @@ +import { APIResource } from "../../../core/resource.mjs"; +import * as GraderModelsAPI from "../../graders/grader-models.mjs"; +import { APIPromise } from "../../../core/api-promise.mjs"; +import { RequestOptions } from "../../../internal/request-options.mjs"; +export declare class Graders extends APIResource { + /** + * Run a grader. + * + * @example + * ```ts + * const response = await client.fineTuning.alpha.graders.run({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * model_sample: 'model_sample', + * }); + * ``` + */ + run(body: GraderRunParams, options?: RequestOptions): APIPromise; + /** + * Validate a grader. + * + * @example + * ```ts + * const response = + * await client.fineTuning.alpha.graders.validate({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * }); + * ``` + */ + validate(body: GraderValidateParams, options?: RequestOptions): APIPromise; +} +export interface GraderRunResponse { + metadata: GraderRunResponse.Metadata; + model_grader_token_usage_per_model: { + [key: string]: unknown; + }; + reward: number; + sub_rewards: { + [key: string]: unknown; + }; +} +export declare namespace GraderRunResponse { + interface Metadata { + errors: Metadata.Errors; + execution_time: number; + name: string; + sampled_model_name: string | null; + scores: { + [key: string]: unknown; + }; + token_usage: number | null; + type: string; + } + namespace Metadata { + interface Errors { + formula_parse_error: boolean; + invalid_variable_error: boolean; + model_grader_parse_error: boolean; + model_grader_refusal_error: boolean; + model_grader_server_error: boolean; + model_grader_server_error_details: string | null; + other_error: boolean; + python_grader_runtime_error: boolean; + python_grader_runtime_error_details: string | null; + python_grader_server_error: boolean; + python_grader_server_error_type: string | null; + sample_parse_error: boolean; + truncated_observation_error: boolean; + unresponsive_reward_error: boolean; + } + } +} +export interface GraderValidateResponse { + /** + * The grader used for the fine-tuning job. + */ + grader?: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; +} +export interface GraderRunParams { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; + /** + * The model sample to be evaluated. This value will be used to populate the + * `sample` namespace. See + * [the guide](https://platform.openai.com/docs/guides/graders) for more details. + * The `output_json` variable will be populated if the model sample is a valid JSON + * string. + */ + model_sample: string; + /** + * The dataset item provided to the grader. This will be used to populate the + * `item` namespace. See + * [the guide](https://platform.openai.com/docs/guides/graders) for more details. + */ + item?: unknown; +} +export interface GraderValidateParams { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; +} +export declare namespace Graders { + export { type GraderRunResponse as GraderRunResponse, type GraderValidateResponse as GraderValidateResponse, type GraderRunParams as GraderRunParams, type GraderValidateParams as GraderValidateParams, }; +} +//# sourceMappingURL=graders.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c19ce8c0fab86ed3a8549771217474bce4de76b0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.mts","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/graders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAInF;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnG;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC;IAErC,kCAAkC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE/D,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,QAAQ;QACvB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;QAExB,cAAc,EAAE,MAAM,CAAC;QAEvB,IAAI,EAAE,MAAM,CAAC;QAEb,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEnC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,EAAE,MAA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AAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..259268ce12cc2e5f51ebcf5a77b096dfce12ecf1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts @@ -0,0 +1,119 @@ +import { APIResource } from "../../../core/resource.js"; +import * as GraderModelsAPI from "../../graders/grader-models.js"; +import { APIPromise } from "../../../core/api-promise.js"; +import { RequestOptions } from "../../../internal/request-options.js"; +export declare class Graders extends APIResource { + /** + * Run a grader. + * + * @example + * ```ts + * const response = await client.fineTuning.alpha.graders.run({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * model_sample: 'model_sample', + * }); + * ``` + */ + run(body: GraderRunParams, options?: RequestOptions): APIPromise; + /** + * Validate a grader. + * + * @example + * ```ts + * const response = + * await client.fineTuning.alpha.graders.validate({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * }); + * ``` + */ + validate(body: GraderValidateParams, options?: RequestOptions): APIPromise; +} +export interface GraderRunResponse { + metadata: GraderRunResponse.Metadata; + model_grader_token_usage_per_model: { + [key: string]: unknown; + }; + reward: number; + sub_rewards: { + [key: string]: unknown; + }; +} +export declare namespace GraderRunResponse { + interface Metadata { + errors: Metadata.Errors; + execution_time: number; + name: string; + sampled_model_name: string | null; + scores: { + [key: string]: unknown; + }; + token_usage: number | null; + type: string; + } + namespace Metadata { + interface Errors { + formula_parse_error: boolean; + invalid_variable_error: boolean; + model_grader_parse_error: boolean; + model_grader_refusal_error: boolean; + model_grader_server_error: boolean; + model_grader_server_error_details: string | null; + other_error: boolean; + python_grader_runtime_error: boolean; + python_grader_runtime_error_details: string | null; + python_grader_server_error: boolean; + python_grader_server_error_type: string | null; + sample_parse_error: boolean; + truncated_observation_error: boolean; + unresponsive_reward_error: boolean; + } + } +} +export interface GraderValidateResponse { + /** + * The grader used for the fine-tuning job. + */ + grader?: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; +} +export interface GraderRunParams { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; + /** + * The model sample to be evaluated. This value will be used to populate the + * `sample` namespace. See + * [the guide](https://platform.openai.com/docs/guides/graders) for more details. + * The `output_json` variable will be populated if the model sample is a valid JSON + * string. + */ + model_sample: string; + /** + * The dataset item provided to the grader. This will be used to populate the + * `item` namespace. See + * [the guide](https://platform.openai.com/docs/guides/graders) for more details. + */ + item?: unknown; +} +export interface GraderValidateParams { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; +} +export declare namespace Graders { + export { type GraderRunResponse as GraderRunResponse, type GraderValidateResponse as GraderValidateResponse, type GraderRunParams as GraderRunParams, type GraderValidateParams as GraderValidateParams, }; +} +//# sourceMappingURL=graders.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..f7628abd7aba17c900c8ed5855f8ed3728925200 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/graders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAInF;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnG;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC;IAErC,kCAAkC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE/D,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,QAAQ;QACvB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;QAExB,cAAc,EAAE,MAAM,CAAC;QAEvB,IAAI,EAAE,MAAM,CAAC;QAEb,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEnC,WAAW,E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AC5B,eAAe,CAAC,gBAAgB,GAChC,eAAe,CAAC,WAAW,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js new file mode 100644 index 0000000000000000000000000000000000000000..326e786e84e6fe804b6fcf83f493965156ef65b5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js @@ -0,0 +1,49 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Graders = void 0; +const resource_1 = require("../../../core/resource.js"); +class Graders extends resource_1.APIResource { + /** + * Run a grader. + * + * @example + * ```ts + * const response = await client.fineTuning.alpha.graders.run({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * model_sample: 'model_sample', + * }); + * ``` + */ + run(body, options) { + return this._client.post('/fine_tuning/alpha/graders/run', { body, ...options }); + } + /** + * Validate a grader. + * + * @example + * ```ts + * const response = + * await client.fineTuning.alpha.graders.validate({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * }); + * ``` + */ + validate(body, options) { + return this._client.post('/fine_tuning/alpha/graders/validate', { body, ...options }); + } +} +exports.Graders = Graders; +//# sourceMappingURL=graders.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js.map new file mode 100644 index 0000000000000000000000000000000000000000..2177f8367399cc705f9e41d93c6045557a45cd48 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.js.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.js","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/graders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,IAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AA1CD,0BA0CC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs new file mode 100644 index 0000000000000000000000000000000000000000..51e52fba4e7716ff8e76e95d9df5c78d48c4cf18 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs @@ -0,0 +1,45 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../../core/resource.mjs"; +export class Graders extends APIResource { + /** + * Run a grader. + * + * @example + * ```ts + * const response = await client.fineTuning.alpha.graders.run({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * model_sample: 'model_sample', + * }); + * ``` + */ + run(body, options) { + return this._client.post('/fine_tuning/alpha/graders/run', { body, ...options }); + } + /** + * Validate a grader. + * + * @example + * ```ts + * const response = + * await client.fineTuning.alpha.graders.validate({ + * grader: { + * input: 'input', + * name: 'name', + * operation: 'eq', + * reference: 'reference', + * type: 'string_check', + * }, + * }); + * ``` + */ + validate(body, options) { + return this._client.post('/fine_tuning/alpha/graders/validate', { body, ...options }); + } +} +//# sourceMappingURL=graders.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..aaa935354db04c57b508020f14bdf5210d390a38 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/graders.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.mjs","sourceRoot":"","sources":["../../../src/resources/fine-tuning/alpha/graders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,IAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a05c08208d32c35d914d21789ff2d81a1d3dc0eb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/alpha/index.d.mts @@ -0,0 +1,3 @@ +export { Alpha } from "./alpha.mjs"; +export { Graders, type GraderRunResponse, type GraderValidateResponse, type GraderRunParams, type GraderValidateParams, } from "./graders.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..029fc793003dd743e4f04277c052cdee2641a4bd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts @@ -0,0 +1,2 @@ +export * from "./checkpoints/index.mjs"; +//# sourceMappingURL=checkpoints.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..8cbb3bf9842aa2b7edcbb240e5da578d72a3d1b7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"checkpoints.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/checkpoints.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9ea8fbb14ab0acbf3dff45a0e61d505542cb311f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts @@ -0,0 +1,2 @@ +export * from "./checkpoints/index.js"; +//# sourceMappingURL=checkpoints.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..3a1f9b71148484a713be2bf7e3b9abd237d05e34 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"checkpoints.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/checkpoints.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js new file mode 100644 index 0000000000000000000000000000000000000000..537389b53f1c69fb21c83c0cdda7b45831c98350 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./checkpoints/index.js"), exports); +//# sourceMappingURL=checkpoints.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js.map new file mode 100644 index 0000000000000000000000000000000000000000..895e50a520a4651dff000b2c37e919a46afab0d3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.js.map @@ -0,0 +1 @@ +{"version":3,"file":"checkpoints.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/checkpoints.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs new file mode 100644 index 0000000000000000000000000000000000000000..666e0190b27d7343b1f11fe3bf8385bbe52b065e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./checkpoints/index.mjs"; +//# sourceMappingURL=checkpoints.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2c9deeb216b1d7958b10ec33954d5b3418bf0dc5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/checkpoints.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"checkpoints.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/checkpoints.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..293c6ad4962bf485027fab5f8c8b2044d117dec4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts @@ -0,0 +1,22 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as MethodsAPI from "./methods.mjs"; +import { DpoHyperparameters, DpoMethod, Methods, ReinforcementHyperparameters, ReinforcementMethod, SupervisedHyperparameters, SupervisedMethod } from "./methods.mjs"; +import * as AlphaAPI from "./alpha/alpha.mjs"; +import { Alpha } from "./alpha/alpha.mjs"; +import * as CheckpointsAPI from "./checkpoints/checkpoints.mjs"; +import { Checkpoints } from "./checkpoints/checkpoints.mjs"; +import * as JobsAPI from "./jobs/jobs.mjs"; +import { FineTuningJob, FineTuningJobEvent, FineTuningJobEventsPage, FineTuningJobIntegration, FineTuningJobWandbIntegration, FineTuningJobWandbIntegrationObject, FineTuningJobsPage, JobCreateParams, JobListEventsParams, JobListParams, Jobs } from "./jobs/jobs.mjs"; +export declare class FineTuning extends APIResource { + methods: MethodsAPI.Methods; + jobs: JobsAPI.Jobs; + checkpoints: CheckpointsAPI.Checkpoints; + alpha: AlphaAPI.Alpha; +} +export declare namespace FineTuning { + export { Methods as Methods, type DpoHyperparameters as DpoHyperparameters, type DpoMethod as DpoMethod, type ReinforcementHyperparameters as ReinforcementHyperparameters, type ReinforcementMethod as ReinforcementMethod, type SupervisedHyperparameters as SupervisedHyperparameters, type SupervisedMethod as SupervisedMethod, }; + export { Jobs as Jobs, type FineTuningJob as FineTuningJob, type FineTuningJobEvent as FineTuningJobEvent, type FineTuningJobWandbIntegration as FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject as FineTuningJobWandbIntegrationObject, type FineTuningJobIntegration as FineTuningJobIntegration, type FineTuningJobsPage as FineTuningJobsPage, type FineTuningJobEventsPage as FineTuningJobEventsPage, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, type JobListEventsParams as JobListEventsParams, }; + export { Checkpoints as Checkpoints }; + export { Alpha as Alpha }; +} +//# sourceMappingURL=fine-tuning.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6c3674aa7343bda091ede0a78ab9e611b6354cb1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/fine-tuning.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EACjB;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC7B,mCAAmC,EACnC,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,IAAI,EACL;AAED,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAOD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,CAAC;IAEtC,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;CAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8b99907c4c0e43f642914af141c733b503c83832 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts @@ -0,0 +1,22 @@ +import { APIResource } from "../../core/resource.js"; +import * as MethodsAPI from "./methods.js"; +import { DpoHyperparameters, DpoMethod, Methods, ReinforcementHyperparameters, ReinforcementMethod, SupervisedHyperparameters, SupervisedMethod } from "./methods.js"; +import * as AlphaAPI from "./alpha/alpha.js"; +import { Alpha } from "./alpha/alpha.js"; +import * as CheckpointsAPI from "./checkpoints/checkpoints.js"; +import { Checkpoints } from "./checkpoints/checkpoints.js"; +import * as JobsAPI from "./jobs/jobs.js"; +import { FineTuningJob, FineTuningJobEvent, FineTuningJobEventsPage, FineTuningJobIntegration, FineTuningJobWandbIntegration, FineTuningJobWandbIntegrationObject, FineTuningJobsPage, JobCreateParams, JobListEventsParams, JobListParams, Jobs } from "./jobs/jobs.js"; +export declare class FineTuning extends APIResource { + methods: MethodsAPI.Methods; + jobs: JobsAPI.Jobs; + checkpoints: CheckpointsAPI.Checkpoints; + alpha: AlphaAPI.Alpha; +} +export declare namespace FineTuning { + export { Methods as Methods, type DpoHyperparameters as DpoHyperparameters, type DpoMethod as DpoMethod, type ReinforcementHyperparameters as ReinforcementHyperparameters, type ReinforcementMethod as ReinforcementMethod, type SupervisedHyperparameters as SupervisedHyperparameters, type SupervisedMethod as SupervisedMethod, }; + export { Jobs as Jobs, type FineTuningJob as FineTuningJob, type FineTuningJobEvent as FineTuningJobEvent, type FineTuningJobWandbIntegration as FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject as FineTuningJobWandbIntegrationObject, type FineTuningJobIntegration as FineTuningJobIntegration, type FineTuningJobsPage as FineTuningJobsPage, type FineTuningJobEventsPage as FineTuningJobEventsPage, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, type JobListEventsParams as JobListEventsParams, }; + export { Checkpoints as Checkpoints }; + export { Alpha as Alpha }; +} +//# sourceMappingURL=fine-tuning.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..e830e1d2236fadc3d38a6450d3dd936766dd8aba --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/fine-tuning.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EACjB;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC7B,mCAAmC,EACnC,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,IAAI,EACL;AAED,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAOD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,CAAC;IAEtC,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;CAC3B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js new file mode 100644 index 0000000000000000000000000000000000000000..d18287d586bedecedb046304927b362e0a47e59d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js @@ -0,0 +1,29 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FineTuning = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const MethodsAPI = tslib_1.__importStar(require("./methods.js")); +const methods_1 = require("./methods.js"); +const AlphaAPI = tslib_1.__importStar(require("./alpha/alpha.js")); +const alpha_1 = require("./alpha/alpha.js"); +const CheckpointsAPI = tslib_1.__importStar(require("./checkpoints/checkpoints.js")); +const checkpoints_1 = require("./checkpoints/checkpoints.js"); +const JobsAPI = tslib_1.__importStar(require("./jobs/jobs.js")); +const jobs_1 = require("./jobs/jobs.js"); +class FineTuning extends resource_1.APIResource { + constructor() { + super(...arguments); + this.methods = new MethodsAPI.Methods(this._client); + this.jobs = new JobsAPI.Jobs(this._client); + this.checkpoints = new CheckpointsAPI.Checkpoints(this._client); + this.alpha = new AlphaAPI.Alpha(this._client); + } +} +exports.FineTuning = FineTuning; +FineTuning.Methods = methods_1.Methods; +FineTuning.Jobs = jobs_1.Jobs; +FineTuning.Checkpoints = checkpoints_1.Checkpoints; +FineTuning.Alpha = alpha_1.Alpha; +//# sourceMappingURL=fine-tuning.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js.map new file mode 100644 index 0000000000000000000000000000000000000000..17e5476e06b026a03744d62e24bc877adb7e336f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/fine-tuning.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAQmB;AACnB,mEAA0C;AAC1C,4CAAsC;AACtC,qFAA4D;AAC5D,8DAAwD;AACxD,gEAAuC;AACvC,yCAYqB;AAErB,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AALD,gCAKC;AAED,UAAU,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC7B,UAAU,CAAC,IAAI,GAAG,WAAI,CAAC;AACvB,UAAU,CAAC,WAAW,GAAG,yBAAW,CAAC;AACrC,UAAU,CAAC,KAAK,GAAG,aAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs new file mode 100644 index 0000000000000000000000000000000000000000..8b3abe8f093e8da868e5e0a92ca6e0eea6b3aff8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs @@ -0,0 +1,24 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as MethodsAPI from "./methods.mjs"; +import { Methods, } from "./methods.mjs"; +import * as AlphaAPI from "./alpha/alpha.mjs"; +import { Alpha } from "./alpha/alpha.mjs"; +import * as CheckpointsAPI from "./checkpoints/checkpoints.mjs"; +import { Checkpoints } from "./checkpoints/checkpoints.mjs"; +import * as JobsAPI from "./jobs/jobs.mjs"; +import { Jobs, } from "./jobs/jobs.mjs"; +export class FineTuning extends APIResource { + constructor() { + super(...arguments); + this.methods = new MethodsAPI.Methods(this._client); + this.jobs = new JobsAPI.Jobs(this._client); + this.checkpoints = new CheckpointsAPI.Checkpoints(this._client); + this.alpha = new AlphaAPI.Alpha(this._client); + } +} +FineTuning.Methods = Methods; +FineTuning.Jobs = Jobs; +FineTuning.Checkpoints = Checkpoints; +FineTuning.Alpha = Alpha; +//# sourceMappingURL=fine-tuning.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2c7d2897b54392d224860e826fc88da9113723f7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"fine-tuning.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/fine-tuning.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAGL,OAAO,GAKR;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAWL,IAAI,GACL;AAED,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7B,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;AACvB,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;AACrC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..c5edd4452fbc4ba68a2a9329fcb879cd74f32813 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts @@ -0,0 +1,6 @@ +export { Alpha } from "./alpha/index.mjs"; +export { Checkpoints } from "./checkpoints/index.mjs"; +export { FineTuning } from "./fine-tuning.mjs"; +export { Jobs, type FineTuningJob, type FineTuningJobEvent, type FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject, type FineTuningJobIntegration, type JobCreateParams, type JobListParams, type JobListEventsParams, type FineTuningJobsPage, type FineTuningJobEventsPage, } from "./jobs/index.mjs"; +export { Methods, type DpoHyperparameters, type DpoMethod, type ReinforcementHyperparameters, type ReinforcementMethod, type SupervisedHyperparameters, type SupervisedMethod, } from "./methods.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..b69e9dc4f5bfd294953ab34c77188c5d03b92b44 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,GACtB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..723ce9637c42def45dfad3841d499278c3b3c1e4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts @@ -0,0 +1,6 @@ +export { Alpha } from "./alpha/index.js"; +export { Checkpoints } from "./checkpoints/index.js"; +export { FineTuning } from "./fine-tuning.js"; +export { Jobs, type FineTuningJob, type FineTuningJobEvent, type FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject, type FineTuningJobIntegration, type JobCreateParams, type JobListParams, type JobListEventsParams, type FineTuningJobsPage, type FineTuningJobEventsPage, } from "./jobs/index.js"; +export { Methods, type DpoHyperparameters, type DpoMethod, type ReinforcementHyperparameters, type ReinforcementMethod, type SupervisedHyperparameters, type SupervisedMethod, } from "./methods.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..64c1480d12601ee23e6e2c1510c372368b0439e6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,GACtB"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e165c20dbad78fc7edefcf41800fccc66d536a6c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js @@ -0,0 +1,15 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Methods = exports.Jobs = exports.FineTuning = exports.Checkpoints = exports.Alpha = void 0; +var index_1 = require("./alpha/index.js"); +Object.defineProperty(exports, "Alpha", { enumerable: true, get: function () { return index_1.Alpha; } }); +var index_2 = require("./checkpoints/index.js"); +Object.defineProperty(exports, "Checkpoints", { enumerable: true, get: function () { return index_2.Checkpoints; } }); +var fine_tuning_1 = require("./fine-tuning.js"); +Object.defineProperty(exports, "FineTuning", { enumerable: true, get: function () { return fine_tuning_1.FineTuning; } }); +var index_3 = require("./jobs/index.js"); +Object.defineProperty(exports, "Jobs", { enumerable: true, get: function () { return index_3.Jobs; } }); +var methods_1 = require("./methods.js"); +Object.defineProperty(exports, "Methods", { enumerable: true, get: function () { return methods_1.Methods; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f5eeb352bc8c072692d1b1bf6b30506e159eb836 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,gDAAkD;AAAzC,oGAAA,WAAW,OAAA;AACpB,gDAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,yCAYsB;AAXpB,6FAAA,IAAI,OAAA;AAYN,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d24f9143e98c69a4c288e6dfb92d2e673d106115 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Alpha } from "./alpha/index.mjs"; +export { Checkpoints } from "./checkpoints/index.mjs"; +export { FineTuning } from "./fine-tuning.mjs"; +export { Jobs, } from "./jobs/index.mjs"; +export { Methods, } from "./methods.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1663c3dc2196c82bbdb08ed5ac6b7ba0e1699a77 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAE;OACT,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,IAAI,GAWL;OACM,EACL,OAAO,GAOR"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..0751c9b4d61ce087fbed07b3bb836344c02be8a6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts @@ -0,0 +1,2 @@ +export * from "./jobs/index.mjs"; +//# sourceMappingURL=jobs.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..8b31551605bf7f93509e6518996e40a204286a87 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"jobs.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/jobs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8d7cad795c657ff01d047f86d38814629af71b7a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts @@ -0,0 +1,2 @@ +export * from "./jobs/index.js"; +//# sourceMappingURL=jobs.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..251067ae2c8e15b2d948b4431082521623ce549c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/jobs.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js new file mode 100644 index 0000000000000000000000000000000000000000..66a19c255135f675c777557b8ae83f34d65a1a4b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../../internal/tslib.js"); +tslib_1.__exportStar(require("./jobs/index.js"), exports); +//# sourceMappingURL=jobs.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js.map new file mode 100644 index 0000000000000000000000000000000000000000..78a0dfbe6bd653ac31715cd863b94cab662e181d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs new file mode 100644 index 0000000000000000000000000000000000000000..922a17ba45068ec2b8057914ba0a56df4d1f1da5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./jobs/index.mjs"; +//# sourceMappingURL=jobs.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2b9691a38a69686228edbd479f7c107e449771b6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/jobs.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..98885930dd2275b8d280960dba8393557f45d5d4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts @@ -0,0 +1,120 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as GraderModelsAPI from "../graders/grader-models.mjs"; +export declare class Methods extends APIResource { +} +/** + * The hyperparameters used for the DPO fine-tuning job. + */ +export interface DpoHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * The beta value for the DPO method. A higher beta value will increase the weight + * of the penalty between the policy and reference model. + */ + beta?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; +} +/** + * Configuration for the DPO fine-tuning method. + */ +export interface DpoMethod { + /** + * The hyperparameters used for the DPO fine-tuning job. + */ + hyperparameters?: DpoHyperparameters; +} +/** + * The hyperparameters used for the reinforcement fine-tuning job. + */ +export interface ReinforcementHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * Multiplier on amount of compute used for exploring search space during training. + */ + compute_multiplier?: 'auto' | number; + /** + * The number of training steps between evaluation runs. + */ + eval_interval?: 'auto' | number; + /** + * Number of evaluation samples to generate per training step. + */ + eval_samples?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; + /** + * Level of reasoning effort. + */ + reasoning_effort?: 'default' | 'low' | 'medium' | 'high'; +} +/** + * Configuration for the reinforcement fine-tuning method. + */ +export interface ReinforcementMethod { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; + /** + * The hyperparameters used for the reinforcement fine-tuning job. + */ + hyperparameters?: ReinforcementHyperparameters; +} +/** + * The hyperparameters used for the fine-tuning job. + */ +export interface SupervisedHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; +} +/** + * Configuration for the supervised fine-tuning method. + */ +export interface SupervisedMethod { + /** + * The hyperparameters used for the fine-tuning job. + */ + hyperparameters?: SupervisedHyperparameters; +} +export declare namespace Methods { + export { type DpoHyperparameters as DpoHyperparameters, type DpoMethod as DpoMethod, type ReinforcementHyperparameters as ReinforcementHyperparameters, type ReinforcementMethod as ReinforcementMethod, type SupervisedHyperparameters as SupervisedHyperparameters, type SupervisedMethod as SupervisedMethod, }; +} +//# sourceMappingURL=methods.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..40f842da76b1edacbaa7fa0a68b95df72455b9c5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"methods.d.mts","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;AAE3B,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,WAAW,kBA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;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e93242e3de894fc32eca0b871bff325abb21e3f5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts @@ -0,0 +1,120 @@ +import { APIResource } from "../../core/resource.js"; +import * as GraderModelsAPI from "../graders/grader-models.js"; +export declare class Methods extends APIResource { +} +/** + * The hyperparameters used for the DPO fine-tuning job. + */ +export interface DpoHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * The beta value for the DPO method. A higher beta value will increase the weight + * of the penalty between the policy and reference model. + */ + beta?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; +} +/** + * Configuration for the DPO fine-tuning method. + */ +export interface DpoMethod { + /** + * The hyperparameters used for the DPO fine-tuning job. + */ + hyperparameters?: DpoHyperparameters; +} +/** + * The hyperparameters used for the reinforcement fine-tuning job. + */ +export interface ReinforcementHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * Multiplier on amount of compute used for exploring search space during training. + */ + compute_multiplier?: 'auto' | number; + /** + * The number of training steps between evaluation runs. + */ + eval_interval?: 'auto' | number; + /** + * Number of evaluation samples to generate per training step. + */ + eval_samples?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; + /** + * Level of reasoning effort. + */ + reasoning_effort?: 'default' | 'low' | 'medium' | 'high'; +} +/** + * Configuration for the reinforcement fine-tuning method. + */ +export interface ReinforcementMethod { + /** + * The grader used for the fine-tuning job. + */ + grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader; + /** + * The hyperparameters used for the reinforcement fine-tuning job. + */ + hyperparameters?: ReinforcementHyperparameters; +} +/** + * The hyperparameters used for the fine-tuning job. + */ +export interface SupervisedHyperparameters { + /** + * Number of examples in each batch. A larger batch size means that model + * parameters are updated less frequently, but with lower variance. + */ + batch_size?: 'auto' | number; + /** + * Scaling factor for the learning rate. A smaller learning rate may be useful to + * avoid overfitting. + */ + learning_rate_multiplier?: 'auto' | number; + /** + * The number of epochs to train the model for. An epoch refers to one full cycle + * through the training dataset. + */ + n_epochs?: 'auto' | number; +} +/** + * Configuration for the supervised fine-tuning method. + */ +export interface SupervisedMethod { + /** + * The hyperparameters used for the fine-tuning job. + */ + hyperparameters?: SupervisedHyperparameters; +} +export declare namespace Methods { + export { type DpoHyperparameters as DpoHyperparameters, type DpoMethod as DpoMethod, type ReinforcementHyperparameters as ReinforcementHyperparameters, type ReinforcementMethod as ReinforcementMethod, type SupervisedHyperparameters as SupervisedHyperparameters, type SupervisedMethod as SupervisedMethod, }; +} +//# sourceMappingURL=methods.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..cb629b213ad73ad816cb39f2d55c748675ac282f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;AAE3B,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EACF,eAAe,CAAC,iBAAiB,GACjC,eAAe,CAAC,oBAAoB,GACpC,eAAe,CAAC,YAAY,GAC5B,eAAe,CAAC,gBAAgB,GAChC,eAAe,CAAC,WAAW,CAAC;IAEhC;;OAEG;IACH,eAAe,CAAC,EAAE,4BAA4B,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js new file mode 100644 index 0000000000000000000000000000000000000000..6ec53d7ffca6130d32c5026d93f5a7bf359c1b10 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Methods = void 0; +const resource_1 = require("../../core/resource.js"); +class Methods extends resource_1.APIResource { +} +exports.Methods = Methods; +//# sourceMappingURL=methods.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js.map new file mode 100644 index 0000000000000000000000000000000000000000..11c82e19b86e2b2cf56f81e5a15620cdafc2ec40 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.js.map @@ -0,0 +1 @@ +{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs new file mode 100644 index 0000000000000000000000000000000000000000..00eeb19767e80a7461d173c274dea8548320159c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +export class Methods extends APIResource { +} +//# sourceMappingURL=methods.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c21f700fdd43886b7569b2169d553dc0b29ccf77 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/fine-tuning/methods.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"methods.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..139c57ee8dec12bee958160a75bc3666565d99f1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts @@ -0,0 +1,2 @@ +export * from "./graders/index.mjs"; +//# sourceMappingURL=graders.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6c1465dd195daa0b60d77d74841d28d48584ef15 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.mts","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c3cbd869600eb2d18b91daeb458a29472494fa78 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts @@ -0,0 +1,2 @@ +export * from "./graders/index.js"; +//# sourceMappingURL=graders.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..bb2ab9c0a72629ad009ec80ed593ce1b3a17754e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js new file mode 100644 index 0000000000000000000000000000000000000000..457bbebefbe289b89a7dea1f815d069c31e527a0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./graders/index.js"), exports); +//# sourceMappingURL=graders.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js.map new file mode 100644 index 0000000000000000000000000000000000000000..bb6877720556f06dd73660302283e1b8ea98a2a0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.js.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.js","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs new file mode 100644 index 0000000000000000000000000000000000000000..38452ea3d7b6aff855240158b875b7d50d7984a1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./graders/index.mjs"; +//# sourceMappingURL=graders.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b2d52118dae0dd1593932a241abfa0cc1d814998 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.mjs","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..9ceb4102770a0320b97a6cc3b19635dedb4e322a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts @@ -0,0 +1,274 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as ResponsesAPI from "../responses/responses.mjs"; +export declare class GraderModels extends APIResource { +} +/** + * A LabelModelGrader object which uses a model to assign labels to each item in + * the evaluation. + */ +export interface LabelModelGrader { + input: Array; + /** + * The labels to assign to each item in the evaluation. + */ + labels: Array; + /** + * The model to use for the evaluation. Must support structured outputs. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The labels that indicate a passing result. Must be a subset of labels. + */ + passing_labels: Array; + /** + * The object type, which is always `label_model`. + */ + type: 'label_model'; +} +export declare namespace LabelModelGrader { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface Input { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | Input.OutputText | Input.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace Input { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } +} +/** + * A MultiGrader object combines the output of multiple graders to produce a single + * score. + */ +export interface MultiGrader { + /** + * A formula to calculate the output based on grader results. + */ + calculate_output: string; + /** + * A StringCheckGrader object that performs a string comparison between input and + * reference using a specified operation. + */ + graders: StringCheckGrader | TextSimilarityGrader | PythonGrader | ScoreModelGrader | LabelModelGrader; + /** + * The name of the grader. + */ + name: string; + /** + * The object type, which is always `multi`. + */ + type: 'multi'; +} +/** + * A PythonGrader object that runs a python script on the input. + */ +export interface PythonGrader { + /** + * The name of the grader. + */ + name: string; + /** + * The source code of the python script. + */ + source: string; + /** + * The object type, which is always `python`. + */ + type: 'python'; + /** + * The image tag to use for the python script. + */ + image_tag?: string; +} +/** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ +export interface ScoreModelGrader { + /** + * The input text. This may include template strings. + */ + input: Array; + /** + * The model to use for the evaluation. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The object type, which is always `score_model`. + */ + type: 'score_model'; + /** + * The range of the score. Defaults to `[0, 1]`. + */ + range?: Array; + /** + * The sampling parameters for the model. + */ + sampling_params?: unknown; +} +export declare namespace ScoreModelGrader { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface Input { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | Input.OutputText | Input.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace Input { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } +} +/** + * A StringCheckGrader object that performs a string comparison between input and + * reference using a specified operation. + */ +export interface StringCheckGrader { + /** + * The input text. This may include template strings. + */ + input: string; + /** + * The name of the grader. + */ + name: string; + /** + * The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`. + */ + operation: 'eq' | 'ne' | 'like' | 'ilike'; + /** + * The reference text. This may include template strings. + */ + reference: string; + /** + * The object type, which is always `string_check`. + */ + type: 'string_check'; +} +/** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ +export interface TextSimilarityGrader { + /** + * The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, + * `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`. + */ + evaluation_metric: 'cosine' | 'fuzzy_match' | 'bleu' | 'gleu' | 'meteor' | 'rouge_1' | 'rouge_2' | 'rouge_3' | 'rouge_4' | 'rouge_5' | 'rouge_l'; + /** + * The text being graded. + */ + input: string; + /** + * The name of the grader. + */ + name: string; + /** + * The text being graded against. + */ + reference: string; + /** + * The type of grader. + */ + type: 'text_similarity'; +} +export declare namespace GraderModels { + export { type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, }; +} +//# sourceMappingURL=grader-models.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..f983b3a9388537cd5ce1c334b2c2d7eb616427fe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"grader-models.d.mts","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;AAExB,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAErC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;;;;;OAMG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,OA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ACT,SAAS,GACT,SAAS,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5ae10ed3ba36b41f3c415a1f73951a88093904fe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts @@ -0,0 +1,274 @@ +import { APIResource } from "../../core/resource.js"; +import * as ResponsesAPI from "../responses/responses.js"; +export declare class GraderModels extends APIResource { +} +/** + * A LabelModelGrader object which uses a model to assign labels to each item in + * the evaluation. + */ +export interface LabelModelGrader { + input: Array; + /** + * The labels to assign to each item in the evaluation. + */ + labels: Array; + /** + * The model to use for the evaluation. Must support structured outputs. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The labels that indicate a passing result. Must be a subset of labels. + */ + passing_labels: Array; + /** + * The object type, which is always `label_model`. + */ + type: 'label_model'; +} +export declare namespace LabelModelGrader { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface Input { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | Input.OutputText | Input.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace Input { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } +} +/** + * A MultiGrader object combines the output of multiple graders to produce a single + * score. + */ +export interface MultiGrader { + /** + * A formula to calculate the output based on grader results. + */ + calculate_output: string; + /** + * A StringCheckGrader object that performs a string comparison between input and + * reference using a specified operation. + */ + graders: StringCheckGrader | TextSimilarityGrader | PythonGrader | ScoreModelGrader | LabelModelGrader; + /** + * The name of the grader. + */ + name: string; + /** + * The object type, which is always `multi`. + */ + type: 'multi'; +} +/** + * A PythonGrader object that runs a python script on the input. + */ +export interface PythonGrader { + /** + * The name of the grader. + */ + name: string; + /** + * The source code of the python script. + */ + source: string; + /** + * The object type, which is always `python`. + */ + type: 'python'; + /** + * The image tag to use for the python script. + */ + image_tag?: string; +} +/** + * A ScoreModelGrader object that uses a model to assign a score to the input. + */ +export interface ScoreModelGrader { + /** + * The input text. This may include template strings. + */ + input: Array; + /** + * The model to use for the evaluation. + */ + model: string; + /** + * The name of the grader. + */ + name: string; + /** + * The object type, which is always `score_model`. + */ + type: 'score_model'; + /** + * The range of the score. Defaults to `[0, 1]`. + */ + range?: Array; + /** + * The sampling parameters for the model. + */ + sampling_params?: unknown; +} +export declare namespace ScoreModelGrader { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ + interface Input { + /** + * Inputs to the model - can contain template strings. + */ + content: string | ResponsesAPI.ResponseInputText | Input.OutputText | Input.InputImage | Array; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; + } + namespace Input { + /** + * A text output from the model. + */ + interface OutputText { + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + } + /** + * An image input to the model. + */ + interface InputImage { + /** + * The URL of the image input. + */ + image_url: string; + /** + * The type of the image input. Always `input_image`. + */ + type: 'input_image'; + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail?: string; + } + } +} +/** + * A StringCheckGrader object that performs a string comparison between input and + * reference using a specified operation. + */ +export interface StringCheckGrader { + /** + * The input text. This may include template strings. + */ + input: string; + /** + * The name of the grader. + */ + name: string; + /** + * The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`. + */ + operation: 'eq' | 'ne' | 'like' | 'ilike'; + /** + * The reference text. This may include template strings. + */ + reference: string; + /** + * The object type, which is always `string_check`. + */ + type: 'string_check'; +} +/** + * A TextSimilarityGrader object which grades text based on similarity metrics. + */ +export interface TextSimilarityGrader { + /** + * The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, + * `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`. + */ + evaluation_metric: 'cosine' | 'fuzzy_match' | 'bleu' | 'gleu' | 'meteor' | 'rouge_1' | 'rouge_2' | 'rouge_3' | 'rouge_4' | 'rouge_5' | 'rouge_l'; + /** + * The text being graded. + */ + input: string; + /** + * The name of the grader. + */ + name: string; + /** + * The text being graded against. + */ + reference: string; + /** + * The type of grader. + */ + type: 'text_similarity'; +} +export declare namespace GraderModels { + export { type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, }; +} +//# sourceMappingURL=grader-models.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d923607b54992af3e77eb8f8a66b6a50f471a728 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"grader-models.d.ts","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;AAExB,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAErC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;;;;;OAMG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QAExG;;;WAGG;QACH,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,GAA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IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js new file mode 100644 index 0000000000000000000000000000000000000000..d538547adfffe11e79477e0df22429f8e7ead597 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GraderModels = void 0; +const resource_1 = require("../../core/resource.js"); +class GraderModels extends resource_1.APIResource { +} +exports.GraderModels = GraderModels; +//# sourceMappingURL=grader-models.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js.map new file mode 100644 index 0000000000000000000000000000000000000000..41933c3d6b1ea8b5a79944c54cb406d919235ee7 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"grader-models.js","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,MAAa,YAAa,SAAQ,sBAAW;CAAG;AAAhD,oCAAgD"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f262b55bb075a1d7f51e0c6a3829a2f26f80e96b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +export class GraderModels extends APIResource { +} +//# sourceMappingURL=grader-models.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..4c79137d7d1ef4fffe3e55632411510dd39f94a9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/grader-models.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"grader-models.mjs","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,YAAa,SAAQ,WAAW;CAAG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..973fad7edc3114a5b54cf76ad558e18c43fc0a83 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts @@ -0,0 +1,10 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as GraderModelsAPI from "./grader-models.mjs"; +import { GraderModels, LabelModelGrader, MultiGrader, PythonGrader, ScoreModelGrader, StringCheckGrader, TextSimilarityGrader } from "./grader-models.mjs"; +export declare class Graders extends APIResource { + graderModels: GraderModelsAPI.GraderModels; +} +export declare namespace Graders { + export { GraderModels as GraderModels, type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, }; +} +//# sourceMappingURL=graders.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..e579e2aab7c026337ccd2475a773d09a73b22adc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.mts","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c329b7840819a8412ddaab9c6664caa32041ed3b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts @@ -0,0 +1,10 @@ +import { APIResource } from "../../core/resource.js"; +import * as GraderModelsAPI from "./grader-models.js"; +import { GraderModels, LabelModelGrader, MultiGrader, PythonGrader, ScoreModelGrader, StringCheckGrader, TextSimilarityGrader } from "./grader-models.js"; +export declare class Graders extends APIResource { + graderModels: GraderModelsAPI.GraderModels; +} +export declare namespace Graders { + export { GraderModels as GraderModels, type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, }; +} +//# sourceMappingURL=graders.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..66bb1bd43a0d99cadfcaebb735c4343cbf83b7d5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js new file mode 100644 index 0000000000000000000000000000000000000000..9352fb58abb8ba645d8ca933ce971305a89c6f61 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js @@ -0,0 +1,17 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Graders = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const GraderModelsAPI = tslib_1.__importStar(require("./grader-models.js")); +const grader_models_1 = require("./grader-models.js"); +class Graders extends resource_1.APIResource { + constructor() { + super(...arguments); + this.graderModels = new GraderModelsAPI.GraderModels(this._client); + } +} +exports.Graders = Graders; +Graders.GraderModels = grader_models_1.GraderModels; +//# sourceMappingURL=graders.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5945ec5cef47f425666fbfa665cb46775509c04f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.js.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.js","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,4EAAmD;AACnD,sDAQyB;AAEzB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,YAAY,GAAG,4BAAY,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs new file mode 100644 index 0000000000000000000000000000000000000000..46eafceab3428e56e4477a1b3e9fc65dc6c2154f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as GraderModelsAPI from "./grader-models.mjs"; +import { GraderModels, } from "./grader-models.mjs"; +export class Graders extends APIResource { + constructor() { + super(...arguments); + this.graderModels = new GraderModelsAPI.GraderModels(this._client); + } +} +Graders.GraderModels = GraderModels; +//# sourceMappingURL=graders.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c0342efdb4fc17cfe332feb3eca09b2771df941e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/graders.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"graders.mjs","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,GAOb;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..82481a4d5100af7dca08cf44492af3d69936aa04 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts @@ -0,0 +1,3 @@ +export { GraderModels, type LabelModelGrader, type MultiGrader, type PythonGrader, type ScoreModelGrader, type StringCheckGrader, type TextSimilarityGrader, } from "./grader-models.mjs"; +export { Graders } from "./graders.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..782280949f13bc95757cf8101b85dcbc161622a3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EAAE,OAAO,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0e4992683bd0dbe0460b56d93cc83eeb5c868a74 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts @@ -0,0 +1,3 @@ +export { GraderModels, type LabelModelGrader, type MultiGrader, type PythonGrader, type ScoreModelGrader, type StringCheckGrader, type TextSimilarityGrader, } from "./grader-models.js"; +export { Graders } from "./graders.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..6d6ac72c8661694e387ae456bb3fbad0d069cfbb --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EAAE,OAAO,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js new file mode 100644 index 0000000000000000000000000000000000000000..cd5fb698435a1e0606e0b08d1f9a3d0878c0e73a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Graders = exports.GraderModels = void 0; +var grader_models_1 = require("./grader-models.js"); +Object.defineProperty(exports, "GraderModels", { enumerable: true, get: function () { return grader_models_1.GraderModels; } }); +var graders_1 = require("./graders.js"); +Object.defineProperty(exports, "Graders", { enumerable: true, get: function () { return graders_1.Graders; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d791dca59f4b73c6b62f0dd41edad5e4d5ba2d92 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..9e4fa8001a3286d539e58763893b1af774347447 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { GraderModels, } from "./grader-models.mjs"; +export { Graders } from "./graders.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..9f5930a7835e32464232c67dfa2d19d81623abc1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/graders/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EAAE,OAAO,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..12f939ab4a95ba86d1f2d394d24fa0762f8c705b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts @@ -0,0 +1,653 @@ +import { APIResource } from "../core/resource.mjs"; +import * as ImagesAPI from "./images.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { Stream } from "../core/streaming.mjs"; +import { type Uploadable } from "../core/uploads.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Images extends APIResource { + /** + * Creates a variation of a given image. This endpoint only supports `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.createVariation({ + * image: fs.createReadStream('otter.png'), + * }); + * ``` + */ + createVariation(body: ImageCreateVariationParams, options?: RequestOptions): APIPromise; + /** + * Creates an edited or extended image given one or more source images and a + * prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.edit({ + * image: fs.createReadStream('path/to/file'), + * prompt: 'A cute baby sea otter wearing a beret', + * }); + * ``` + */ + edit(body: ImageEditParamsNonStreaming, options?: RequestOptions): APIPromise; + edit(body: ImageEditParamsStreaming, options?: RequestOptions): APIPromise>; + edit(body: ImageEditParamsBase, options?: RequestOptions): APIPromise | ImagesResponse>; + /** + * Creates an image given a prompt. + * [Learn more](https://platform.openai.com/docs/guides/images). + * + * @example + * ```ts + * const imagesResponse = await client.images.generate({ + * prompt: 'A cute baby sea otter', + * }); + * ``` + */ + generate(body: ImageGenerateParamsNonStreaming, options?: RequestOptions): APIPromise; + generate(body: ImageGenerateParamsStreaming, options?: RequestOptions): APIPromise>; + generate(body: ImageGenerateParamsBase, options?: RequestOptions): APIPromise | ImagesResponse>; +} +/** + * Represents the content or the URL of an image generated by the OpenAI API. + */ +export interface Image { + /** + * The base64-encoded JSON of the generated image. Default value for `gpt-image-1`, + * and only present if `response_format` is set to `b64_json` for `dall-e-2` and + * `dall-e-3`. + */ + b64_json?: string; + /** + * For `dall-e-3` only, the revised prompt that was used to generate the image. + */ + revised_prompt?: string; + /** + * When using `dall-e-2` or `dall-e-3`, the URL of the generated image if + * `response_format` is set to `url` (default value). Unsupported for + * `gpt-image-1`. + */ + url?: string; +} +/** + * Emitted when image editing has completed and the final image is available. + */ +export interface ImageEditCompletedEvent { + /** + * Base64-encoded final edited image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the edited image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the edited image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * The quality setting for the edited image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the edited image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_edit.completed`. + */ + type: 'image_edit.completed'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage: ImageEditCompletedEvent.Usage; +} +export declare namespace ImageEditCompletedEvent { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of image tokens in the output image. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +/** + * Emitted when a partial image is available during image editing streaming. + */ +export interface ImageEditPartialImageEvent { + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the requested edited image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the requested edited image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * 0-based index for the partial image (streaming). + */ + partial_image_index: number; + /** + * The quality setting for the requested edited image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the requested edited image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_edit.partial_image`. + */ + type: 'image_edit.partial_image'; +} +/** + * Emitted when a partial image is available during image editing streaming. + */ +export type ImageEditStreamEvent = ImageEditPartialImageEvent | ImageEditCompletedEvent; +/** + * Emitted when image generation has completed and the final image is available. + */ +export interface ImageGenCompletedEvent { + /** + * Base64-encoded image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the generated image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the generated image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * The quality setting for the generated image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the generated image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_generation.completed`. + */ + type: 'image_generation.completed'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage: ImageGenCompletedEvent.Usage; +} +export declare namespace ImageGenCompletedEvent { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of image tokens in the output image. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export interface ImageGenPartialImageEvent { + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the requested image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the requested image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * 0-based index for the partial image (streaming). + */ + partial_image_index: number; + /** + * The quality setting for the requested image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the requested image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_generation.partial_image`. + */ + type: 'image_generation.partial_image'; +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export type ImageGenStreamEvent = ImageGenPartialImageEvent | ImageGenCompletedEvent; +export type ImageModel = 'dall-e-2' | 'dall-e-3' | 'gpt-image-1'; +/** + * The response from the image generation endpoint. + */ +export interface ImagesResponse { + /** + * The Unix timestamp (in seconds) of when the image was created. + */ + created: number; + /** + * The background parameter used for the image generation. Either `transparent` or + * `opaque`. + */ + background?: 'transparent' | 'opaque'; + /** + * The list of generated images. + */ + data?: Array; + /** + * The output format of the image generation. Either `png`, `webp`, or `jpeg`. + */ + output_format?: 'png' | 'webp' | 'jpeg'; + /** + * The quality of the image generated. Either `low`, `medium`, or `high`. + */ + quality?: 'low' | 'medium' | 'high'; + /** + * The size of the image generated. Either `1024x1024`, `1024x1536`, or + * `1536x1024`. + */ + size?: '1024x1024' | '1024x1536' | '1536x1024'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage?: ImagesResponse.Usage; +} +export declare namespace ImagesResponse { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of output tokens generated by the model. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +export interface ImageCreateVariationParams { + /** + * The image to use as the basis for the variation(s). Must be a valid PNG file, + * less than 4MB, and square. + */ + image: Uploadable; + /** + * The model to use for image generation. Only `dall-e-2` is supported at this + * time. + */ + model?: (string & {}) | ImageModel | null; + /** + * The number of images to generate. Must be between 1 and 10. + */ + n?: number | null; + /** + * The format in which the generated images are returned. Must be one of `url` or + * `b64_json`. URLs are only valid for 60 minutes after the image has been + * generated. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `256x256`, `512x512`, or + * `1024x1024`. + */ + size?: '256x256' | '512x512' | '1024x1024' | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export type ImageEditParams = ImageEditParamsNonStreaming | ImageEditParamsStreaming; +export interface ImageEditParamsBase { + /** + * The image(s) to edit. Must be a supported image file or an array of images. + * + * For `gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less than + * 50MB. You can provide up to 16 images. + * + * For `dall-e-2`, you can only provide one image, and it should be a square `png` + * file less than 4MB. + */ + image: Uploadable | Array; + /** + * A text description of the desired image(s). The maximum length is 1000 + * characters for `dall-e-2`, and 32000 characters for `gpt-image-1`. + */ + prompt: string; + /** + * Allows to set transparency for the background of the generated image(s). This + * parameter is only supported for `gpt-image-1`. Must be one of `transparent`, + * `opaque` or `auto` (default value). When `auto` is used, the model will + * automatically determine the best background for the image. + * + * If `transparent`, the output format needs to support transparency, so it should + * be set to either `png` (default value) or `webp`. + */ + background?: 'transparent' | 'opaque' | 'auto' | null; + /** + * Control how much effort the model will exert to match the style and features, + * especially facial features, of input images. This parameter is only supported + * for `gpt-image-1`. Supports `high` and `low`. Defaults to `low`. + */ + input_fidelity?: 'high' | 'low' | null; + /** + * An additional image whose fully transparent areas (e.g. where alpha is zero) + * indicate where `image` should be edited. If there are multiple images provided, + * the mask will be applied on the first image. Must be a valid PNG file, less than + * 4MB, and have the same dimensions as `image`. + */ + mask?: Uploadable; + /** + * The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are + * supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` + * is used. + */ + model?: (string & {}) | ImageModel | null; + /** + * The number of images to generate. Must be between 1 and 10. + */ + n?: number | null; + /** + * The compression level (0-100%) for the generated images. This parameter is only + * supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and + * defaults to 100. + */ + output_compression?: number | null; + /** + * The format in which the generated images are returned. This parameter is only + * supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`. The + * default value is `png`. + */ + output_format?: 'png' | 'jpeg' | 'webp' | null; + /** + * The number of partial images to generate. This parameter is used for streaming + * responses that return partial images. Value must be between 0 and 3. When set to + * 0, the response will be a single image sent in one streaming event. + * + * Note that the final image may be sent before the full number of partial images + * are generated if the full image is generated more quickly. + */ + partial_images?: number | null; + /** + * The quality of the image that will be generated. `high`, `medium` and `low` are + * only supported for `gpt-image-1`. `dall-e-2` only supports `standard` quality. + * Defaults to `auto`. + */ + quality?: 'standard' | 'low' | 'medium' | 'high' | 'auto' | null; + /** + * The format in which the generated images are returned. Must be one of `url` or + * `b64_json`. URLs are only valid for 60 minutes after the image has been + * generated. This parameter is only supported for `dall-e-2`, as `gpt-image-1` + * will always return base64-encoded images. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `1024x1024`, `1536x1024` + * (landscape), `1024x1536` (portrait), or `auto` (default value) for + * `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`. + */ + size?: '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null; + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream?: boolean | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace ImageEditParams { + type ImageEditParamsNonStreaming = ImagesAPI.ImageEditParamsNonStreaming; + type ImageEditParamsStreaming = ImagesAPI.ImageEditParamsStreaming; +} +export interface ImageEditParamsNonStreaming extends ImageEditParamsBase { + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream?: false | null; +} +export interface ImageEditParamsStreaming extends ImageEditParamsBase { + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream: true; +} +export type ImageGenerateParams = ImageGenerateParamsNonStreaming | ImageGenerateParamsStreaming; +export interface ImageGenerateParamsBase { + /** + * A text description of the desired image(s). The maximum length is 32000 + * characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters + * for `dall-e-3`. + */ + prompt: string; + /** + * Allows to set transparency for the background of the generated image(s). This + * parameter is only supported for `gpt-image-1`. Must be one of `transparent`, + * `opaque` or `auto` (default value). When `auto` is used, the model will + * automatically determine the best background for the image. + * + * If `transparent`, the output format needs to support transparency, so it should + * be set to either `png` (default value) or `webp`. + */ + background?: 'transparent' | 'opaque' | 'auto' | null; + /** + * The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or + * `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to + * `gpt-image-1` is used. + */ + model?: (string & {}) | ImageModel | null; + /** + * Control the content-moderation level for images generated by `gpt-image-1`. Must + * be either `low` for less restrictive filtering or `auto` (default value). + */ + moderation?: 'low' | 'auto' | null; + /** + * The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only + * `n=1` is supported. + */ + n?: number | null; + /** + * The compression level (0-100%) for the generated images. This parameter is only + * supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and + * defaults to 100. + */ + output_compression?: number | null; + /** + * The format in which the generated images are returned. This parameter is only + * supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`. + */ + output_format?: 'png' | 'jpeg' | 'webp' | null; + /** + * The number of partial images to generate. This parameter is used for streaming + * responses that return partial images. Value must be between 0 and 3. When set to + * 0, the response will be a single image sent in one streaming event. + * + * Note that the final image may be sent before the full number of partial images + * are generated if the full image is generated more quickly. + */ + partial_images?: number | null; + /** + * The quality of the image that will be generated. + * + * - `auto` (default value) will automatically select the best quality for the + * given model. + * - `high`, `medium` and `low` are supported for `gpt-image-1`. + * - `hd` and `standard` are supported for `dall-e-3`. + * - `standard` is the only option for `dall-e-2`. + */ + quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null; + /** + * The format in which generated images with `dall-e-2` and `dall-e-3` are + * returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes + * after the image has been generated. This parameter isn't supported for + * `gpt-image-1` which will always return base64-encoded images. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `1024x1024`, `1536x1024` + * (landscape), `1024x1536` (portrait), or `auto` (default value) for + * `gpt-image-1`, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and + * one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`. + */ + size?: 'auto' | '1024x1024' | '1536x1024' | '1024x1536' | '256x256' | '512x512' | '1792x1024' | '1024x1792' | null; + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream?: boolean | null; + /** + * The style of the generated images. This parameter is only supported for + * `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean + * towards generating hyper-real and dramatic images. Natural causes the model to + * produce more natural, less hyper-real looking images. + */ + style?: 'vivid' | 'natural' | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace ImageGenerateParams { + type ImageGenerateParamsNonStreaming = ImagesAPI.ImageGenerateParamsNonStreaming; + type ImageGenerateParamsStreaming = ImagesAPI.ImageGenerateParamsStreaming; +} +export interface ImageGenerateParamsNonStreaming extends ImageGenerateParamsBase { + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream?: false | null; +} +export interface ImageGenerateParamsStreaming extends ImageGenerateParamsBase { + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream: true; +} +export declare namespace Images { + export { type Image as Image, type ImageEditCompletedEvent as ImageEditCompletedEvent, type ImageEditPartialImageEvent as ImageEditPartialImageEvent, type ImageEditStreamEvent as ImageEditStreamEvent, type ImageGenCompletedEvent as ImageGenCompletedEvent, type ImageGenPartialImageEvent as ImageGenPartialImageEvent, type ImageGenStreamEvent as ImageGenStreamEvent, type ImageModel as ImageModel, type ImagesResponse as ImagesResponse, type ImageCreateVariationParams as ImageCreateVariationParams, type ImageEditParams as ImageEditParams, type ImageEditParamsNonStreaming as ImageEditParamsNonStreaming, type ImageEditParamsStreaming as ImageEditParamsStreaming, type ImageGenerateParams as ImageGenerateParams, type ImageGenerateParamsNonStreaming as ImageGenerateParamsNonStreaming, type ImageGenerateParamsStreaming as ImageGenerateParamsStreaming, }; +} +//# sourceMappingURL=images.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..3001843a168bfe504d7286eb23e55d73d3320f15 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"images.d.mts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;O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,uBAAuB;IAC9E;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..eef634e64d1657fd883f218f13863ad57624f924 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts @@ -0,0 +1,653 @@ +import { APIResource } from "../core/resource.js"; +import * as ImagesAPI from "./images.js"; +import { APIPromise } from "../core/api-promise.js"; +import { Stream } from "../core/streaming.js"; +import { type Uploadable } from "../core/uploads.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Images extends APIResource { + /** + * Creates a variation of a given image. This endpoint only supports `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.createVariation({ + * image: fs.createReadStream('otter.png'), + * }); + * ``` + */ + createVariation(body: ImageCreateVariationParams, options?: RequestOptions): APIPromise; + /** + * Creates an edited or extended image given one or more source images and a + * prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.edit({ + * image: fs.createReadStream('path/to/file'), + * prompt: 'A cute baby sea otter wearing a beret', + * }); + * ``` + */ + edit(body: ImageEditParamsNonStreaming, options?: RequestOptions): APIPromise; + edit(body: ImageEditParamsStreaming, options?: RequestOptions): APIPromise>; + edit(body: ImageEditParamsBase, options?: RequestOptions): APIPromise | ImagesResponse>; + /** + * Creates an image given a prompt. + * [Learn more](https://platform.openai.com/docs/guides/images). + * + * @example + * ```ts + * const imagesResponse = await client.images.generate({ + * prompt: 'A cute baby sea otter', + * }); + * ``` + */ + generate(body: ImageGenerateParamsNonStreaming, options?: RequestOptions): APIPromise; + generate(body: ImageGenerateParamsStreaming, options?: RequestOptions): APIPromise>; + generate(body: ImageGenerateParamsBase, options?: RequestOptions): APIPromise | ImagesResponse>; +} +/** + * Represents the content or the URL of an image generated by the OpenAI API. + */ +export interface Image { + /** + * The base64-encoded JSON of the generated image. Default value for `gpt-image-1`, + * and only present if `response_format` is set to `b64_json` for `dall-e-2` and + * `dall-e-3`. + */ + b64_json?: string; + /** + * For `dall-e-3` only, the revised prompt that was used to generate the image. + */ + revised_prompt?: string; + /** + * When using `dall-e-2` or `dall-e-3`, the URL of the generated image if + * `response_format` is set to `url` (default value). Unsupported for + * `gpt-image-1`. + */ + url?: string; +} +/** + * Emitted when image editing has completed and the final image is available. + */ +export interface ImageEditCompletedEvent { + /** + * Base64-encoded final edited image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the edited image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the edited image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * The quality setting for the edited image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the edited image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_edit.completed`. + */ + type: 'image_edit.completed'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage: ImageEditCompletedEvent.Usage; +} +export declare namespace ImageEditCompletedEvent { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of image tokens in the output image. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +/** + * Emitted when a partial image is available during image editing streaming. + */ +export interface ImageEditPartialImageEvent { + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the requested edited image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the requested edited image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * 0-based index for the partial image (streaming). + */ + partial_image_index: number; + /** + * The quality setting for the requested edited image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the requested edited image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_edit.partial_image`. + */ + type: 'image_edit.partial_image'; +} +/** + * Emitted when a partial image is available during image editing streaming. + */ +export type ImageEditStreamEvent = ImageEditPartialImageEvent | ImageEditCompletedEvent; +/** + * Emitted when image generation has completed and the final image is available. + */ +export interface ImageGenCompletedEvent { + /** + * Base64-encoded image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the generated image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the generated image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * The quality setting for the generated image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the generated image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_generation.completed`. + */ + type: 'image_generation.completed'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage: ImageGenCompletedEvent.Usage; +} +export declare namespace ImageGenCompletedEvent { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of image tokens in the output image. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export interface ImageGenPartialImageEvent { + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + b64_json: string; + /** + * The background setting for the requested image. + */ + background: 'transparent' | 'opaque' | 'auto'; + /** + * The Unix timestamp when the event was created. + */ + created_at: number; + /** + * The output format for the requested image. + */ + output_format: 'png' | 'webp' | 'jpeg'; + /** + * 0-based index for the partial image (streaming). + */ + partial_image_index: number; + /** + * The quality setting for the requested image. + */ + quality: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the requested image. + */ + size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + /** + * The type of the event. Always `image_generation.partial_image`. + */ + type: 'image_generation.partial_image'; +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export type ImageGenStreamEvent = ImageGenPartialImageEvent | ImageGenCompletedEvent; +export type ImageModel = 'dall-e-2' | 'dall-e-3' | 'gpt-image-1'; +/** + * The response from the image generation endpoint. + */ +export interface ImagesResponse { + /** + * The Unix timestamp (in seconds) of when the image was created. + */ + created: number; + /** + * The background parameter used for the image generation. Either `transparent` or + * `opaque`. + */ + background?: 'transparent' | 'opaque'; + /** + * The list of generated images. + */ + data?: Array; + /** + * The output format of the image generation. Either `png`, `webp`, or `jpeg`. + */ + output_format?: 'png' | 'webp' | 'jpeg'; + /** + * The quality of the image generated. Either `low`, `medium`, or `high`. + */ + quality?: 'low' | 'medium' | 'high'; + /** + * The size of the image generated. Either `1024x1024`, `1024x1536`, or + * `1536x1024`. + */ + size?: '1024x1024' | '1024x1536' | '1536x1024'; + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + usage?: ImagesResponse.Usage; +} +export declare namespace ImagesResponse { + /** + * For `gpt-image-1` only, the token usage information for the image generation. + */ + interface Usage { + /** + * The number of tokens (images and text) in the input prompt. + */ + input_tokens: number; + /** + * The input tokens detailed information for the image generation. + */ + input_tokens_details: Usage.InputTokensDetails; + /** + * The number of output tokens generated by the model. + */ + output_tokens: number; + /** + * The total number of tokens (images and text) used for the image generation. + */ + total_tokens: number; + } + namespace Usage { + /** + * The input tokens detailed information for the image generation. + */ + interface InputTokensDetails { + /** + * The number of image tokens in the input prompt. + */ + image_tokens: number; + /** + * The number of text tokens in the input prompt. + */ + text_tokens: number; + } + } +} +export interface ImageCreateVariationParams { + /** + * The image to use as the basis for the variation(s). Must be a valid PNG file, + * less than 4MB, and square. + */ + image: Uploadable; + /** + * The model to use for image generation. Only `dall-e-2` is supported at this + * time. + */ + model?: (string & {}) | ImageModel | null; + /** + * The number of images to generate. Must be between 1 and 10. + */ + n?: number | null; + /** + * The format in which the generated images are returned. Must be one of `url` or + * `b64_json`. URLs are only valid for 60 minutes after the image has been + * generated. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `256x256`, `512x512`, or + * `1024x1024`. + */ + size?: '256x256' | '512x512' | '1024x1024' | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export type ImageEditParams = ImageEditParamsNonStreaming | ImageEditParamsStreaming; +export interface ImageEditParamsBase { + /** + * The image(s) to edit. Must be a supported image file or an array of images. + * + * For `gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less than + * 50MB. You can provide up to 16 images. + * + * For `dall-e-2`, you can only provide one image, and it should be a square `png` + * file less than 4MB. + */ + image: Uploadable | Array; + /** + * A text description of the desired image(s). The maximum length is 1000 + * characters for `dall-e-2`, and 32000 characters for `gpt-image-1`. + */ + prompt: string; + /** + * Allows to set transparency for the background of the generated image(s). This + * parameter is only supported for `gpt-image-1`. Must be one of `transparent`, + * `opaque` or `auto` (default value). When `auto` is used, the model will + * automatically determine the best background for the image. + * + * If `transparent`, the output format needs to support transparency, so it should + * be set to either `png` (default value) or `webp`. + */ + background?: 'transparent' | 'opaque' | 'auto' | null; + /** + * Control how much effort the model will exert to match the style and features, + * especially facial features, of input images. This parameter is only supported + * for `gpt-image-1`. Supports `high` and `low`. Defaults to `low`. + */ + input_fidelity?: 'high' | 'low' | null; + /** + * An additional image whose fully transparent areas (e.g. where alpha is zero) + * indicate where `image` should be edited. If there are multiple images provided, + * the mask will be applied on the first image. Must be a valid PNG file, less than + * 4MB, and have the same dimensions as `image`. + */ + mask?: Uploadable; + /** + * The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are + * supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` + * is used. + */ + model?: (string & {}) | ImageModel | null; + /** + * The number of images to generate. Must be between 1 and 10. + */ + n?: number | null; + /** + * The compression level (0-100%) for the generated images. This parameter is only + * supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and + * defaults to 100. + */ + output_compression?: number | null; + /** + * The format in which the generated images are returned. This parameter is only + * supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`. The + * default value is `png`. + */ + output_format?: 'png' | 'jpeg' | 'webp' | null; + /** + * The number of partial images to generate. This parameter is used for streaming + * responses that return partial images. Value must be between 0 and 3. When set to + * 0, the response will be a single image sent in one streaming event. + * + * Note that the final image may be sent before the full number of partial images + * are generated if the full image is generated more quickly. + */ + partial_images?: number | null; + /** + * The quality of the image that will be generated. `high`, `medium` and `low` are + * only supported for `gpt-image-1`. `dall-e-2` only supports `standard` quality. + * Defaults to `auto`. + */ + quality?: 'standard' | 'low' | 'medium' | 'high' | 'auto' | null; + /** + * The format in which the generated images are returned. Must be one of `url` or + * `b64_json`. URLs are only valid for 60 minutes after the image has been + * generated. This parameter is only supported for `dall-e-2`, as `gpt-image-1` + * will always return base64-encoded images. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `1024x1024`, `1536x1024` + * (landscape), `1024x1536` (portrait), or `auto` (default value) for + * `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`. + */ + size?: '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null; + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream?: boolean | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace ImageEditParams { + type ImageEditParamsNonStreaming = ImagesAPI.ImageEditParamsNonStreaming; + type ImageEditParamsStreaming = ImagesAPI.ImageEditParamsStreaming; +} +export interface ImageEditParamsNonStreaming extends ImageEditParamsBase { + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream?: false | null; +} +export interface ImageEditParamsStreaming extends ImageEditParamsBase { + /** + * Edit the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. + */ + stream: true; +} +export type ImageGenerateParams = ImageGenerateParamsNonStreaming | ImageGenerateParamsStreaming; +export interface ImageGenerateParamsBase { + /** + * A text description of the desired image(s). The maximum length is 32000 + * characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters + * for `dall-e-3`. + */ + prompt: string; + /** + * Allows to set transparency for the background of the generated image(s). This + * parameter is only supported for `gpt-image-1`. Must be one of `transparent`, + * `opaque` or `auto` (default value). When `auto` is used, the model will + * automatically determine the best background for the image. + * + * If `transparent`, the output format needs to support transparency, so it should + * be set to either `png` (default value) or `webp`. + */ + background?: 'transparent' | 'opaque' | 'auto' | null; + /** + * The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or + * `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to + * `gpt-image-1` is used. + */ + model?: (string & {}) | ImageModel | null; + /** + * Control the content-moderation level for images generated by `gpt-image-1`. Must + * be either `low` for less restrictive filtering or `auto` (default value). + */ + moderation?: 'low' | 'auto' | null; + /** + * The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only + * `n=1` is supported. + */ + n?: number | null; + /** + * The compression level (0-100%) for the generated images. This parameter is only + * supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and + * defaults to 100. + */ + output_compression?: number | null; + /** + * The format in which the generated images are returned. This parameter is only + * supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`. + */ + output_format?: 'png' | 'jpeg' | 'webp' | null; + /** + * The number of partial images to generate. This parameter is used for streaming + * responses that return partial images. Value must be between 0 and 3. When set to + * 0, the response will be a single image sent in one streaming event. + * + * Note that the final image may be sent before the full number of partial images + * are generated if the full image is generated more quickly. + */ + partial_images?: number | null; + /** + * The quality of the image that will be generated. + * + * - `auto` (default value) will automatically select the best quality for the + * given model. + * - `high`, `medium` and `low` are supported for `gpt-image-1`. + * - `hd` and `standard` are supported for `dall-e-3`. + * - `standard` is the only option for `dall-e-2`. + */ + quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null; + /** + * The format in which generated images with `dall-e-2` and `dall-e-3` are + * returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes + * after the image has been generated. This parameter isn't supported for + * `gpt-image-1` which will always return base64-encoded images. + */ + response_format?: 'url' | 'b64_json' | null; + /** + * The size of the generated images. Must be one of `1024x1024`, `1536x1024` + * (landscape), `1024x1536` (portrait), or `auto` (default value) for + * `gpt-image-1`, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and + * one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`. + */ + size?: 'auto' | '1024x1024' | '1536x1024' | '1024x1536' | '256x256' | '512x512' | '1792x1024' | '1024x1792' | null; + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream?: boolean | null; + /** + * The style of the generated images. This parameter is only supported for + * `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean + * towards generating hyper-real and dramatic images. Natural causes the model to + * produce more natural, less hyper-real looking images. + */ + style?: 'vivid' | 'natural' | null; + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor + * and detect abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids). + */ + user?: string; +} +export declare namespace ImageGenerateParams { + type ImageGenerateParamsNonStreaming = ImagesAPI.ImageGenerateParamsNonStreaming; + type ImageGenerateParamsStreaming = ImagesAPI.ImageGenerateParamsStreaming; +} +export interface ImageGenerateParamsNonStreaming extends ImageGenerateParamsBase { + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream?: false | null; +} +export interface ImageGenerateParamsStreaming extends ImageGenerateParamsBase { + /** + * Generate the image in streaming mode. Defaults to `false`. See the + * [Image generation guide](https://platform.openai.com/docs/guides/image-generation) + * for more information. This parameter is only supported for `gpt-image-1`. + */ + stream: true; +} +export declare namespace Images { + export { type Image as Image, type ImageEditCompletedEvent as ImageEditCompletedEvent, type ImageEditPartialImageEvent as ImageEditPartialImageEvent, type ImageEditStreamEvent as ImageEditStreamEvent, type ImageGenCompletedEvent as ImageGenCompletedEvent, type ImageGenPartialImageEvent as ImageGenPartialImageEvent, type ImageGenStreamEvent as ImageGenStreamEvent, type ImageModel as ImageModel, type ImagesResponse as ImagesResponse, type ImageCreateVariationParams as ImageCreateVariationParams, type ImageEditParams as ImageEditParams, type ImageEditParamsNonStreaming as ImageEditParamsNonStreaming, type ImageEditParamsStreaming as ImageEditParamsStreaming, type ImageGenerateParams as ImageGenerateParams, type ImageGenerateParamsNonStreaming as ImageGenerateParamsNonStreaming, type ImageGenerateParamsStreaming as ImageGenerateParamsStreaming, }; +} +//# sourceMappingURL=images.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..aea95ebce07b9d8483d9f6182d30f2e1f432b8ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAOvG;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,IAA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B,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js new file mode 100644 index 0000000000000000000000000000000000000000..fd6e8c5f102173874c44d6e1168849aafb006090 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js @@ -0,0 +1,29 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Images = void 0; +const resource_1 = require("../core/resource.js"); +const uploads_1 = require("../internal/uploads.js"); +class Images extends resource_1.APIResource { + /** + * Creates a variation of a given image. This endpoint only supports `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.createVariation({ + * image: fs.createReadStream('otter.png'), + * }); + * ``` + */ + createVariation(body, options) { + return this._client.post('/images/variations', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client)); + } + edit(body, options) { + return this._client.post('/images/edits', (0, uploads_1.multipartFormRequestOptions)({ body, ...options, stream: body.stream ?? false }, this._client)); + } + generate(body, options) { + return this._client.post('/images/generations', { body, ...options, stream: body.stream ?? false }); + } +} +exports.Images = Images; +//# sourceMappingURL=images.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js.map new file mode 100644 index 0000000000000000000000000000000000000000..293e245aeb03bb3e08a0becbebfa69ab656418d2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.js.map @@ -0,0 +1 @@ +{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C,oDAAkE;AAElE,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAoBD,IAAI,CACF,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrB,CAAC;IAC7E,CAAC;IAsBD,QAAQ,CACN,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAEvD,CAAC;IAC9C,CAAC;CACF;AA1ED,wBA0EC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5ff0ad93496ff3e8f479b8cb057733d5768864ae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +import { multipartFormRequestOptions } from "../internal/uploads.mjs"; +export class Images extends APIResource { + /** + * Creates a variation of a given image. This endpoint only supports `dall-e-2`. + * + * @example + * ```ts + * const imagesResponse = await client.images.createVariation({ + * image: fs.createReadStream('otter.png'), + * }); + * ``` + */ + createVariation(body, options) { + return this._client.post('/images/variations', multipartFormRequestOptions({ body, ...options }, this._client)); + } + edit(body, options) { + return this._client.post('/images/edits', multipartFormRequestOptions({ body, ...options, stream: body.stream ?? false }, this._client)); + } + generate(body, options) { + return this._client.post('/images/generations', { body, ...options, stream: body.stream ?? false }); + } +} +//# sourceMappingURL=images.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..64b9817f45e9ad45c17f28e3fd3966097b61445c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/images.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,2BAA2B,EAAE;AAEtC,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAoBD,IAAI,CACF,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrB,CAAC;IAC7E,CAAC;IAsBD,QAAQ,CACN,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK,EAAE,CAEvD,CAAC;IAC9C,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..f423cedb9d7a2bd7d0a5d84ecd6ce19f77975b1e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts @@ -0,0 +1,21 @@ +export * from "./chat/index.mjs"; +export * from "./shared.mjs"; +export { Audio, type AudioModel, type AudioResponseFormat } from "./audio/audio.mjs"; +export { Batches, type Batch, type BatchError, type BatchRequestCounts, type BatchCreateParams, type BatchListParams, type BatchesPage, } from "./batches.mjs"; +export { Beta } from "./beta/beta.mjs"; +export { Completions, type Completion, type CompletionChoice, type CompletionUsage, type CompletionCreateParams, type CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming, } from "./completions.mjs"; +export { Containers, type ContainerCreateResponse, type ContainerRetrieveResponse, type ContainerListResponse, type ContainerCreateParams, type ContainerListParams, type ContainerListResponsesPage, } from "./containers/containers.mjs"; +export { Conversations } from "./conversations/conversations.mjs"; +export { Embeddings, type CreateEmbeddingResponse, type Embedding, type EmbeddingModel, type EmbeddingCreateParams, } from "./embeddings.mjs"; +export { Evals, type EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse, type EvalRetrieveResponse, type EvalUpdateResponse, type EvalListResponse, type EvalDeleteResponse, type EvalCreateParams, type EvalUpdateParams, type EvalListParams, type EvalListResponsesPage, } from "./evals/evals.mjs"; +export { Files, type FileContent, type FileDeleted, type FileObject, type FilePurpose, type FileCreateParams, type FileListParams, type FileObjectsPage, } from "./files.mjs"; +export { FineTuning } from "./fine-tuning/fine-tuning.mjs"; +export { Graders } from "./graders/graders.mjs"; +export { Images, type Image, type ImageEditCompletedEvent, type ImageEditPartialImageEvent, type ImageEditStreamEvent, type ImageGenCompletedEvent, type ImageGenPartialImageEvent, type ImageGenStreamEvent, type ImageModel, type ImagesResponse, type ImageCreateVariationParams, type ImageEditParams, type ImageEditParamsNonStreaming, type ImageEditParamsStreaming, type ImageGenerateParams, type ImageGenerateParamsNonStreaming, type ImageGenerateParamsStreaming, } from "./images.mjs"; +export { Models, type Model, type ModelDeleted, type ModelsPage } from "./models.mjs"; +export { Moderations, type Moderation, type ModerationImageURLInput, type ModerationModel, type ModerationMultiModalInput, type ModerationTextInput, type ModerationCreateResponse, type ModerationCreateParams, } from "./moderations.mjs"; +export { Responses } from "./responses/responses.mjs"; +export { Uploads, type Upload, type UploadCreateParams, type UploadCompleteParams } from "./uploads/uploads.mjs"; +export { VectorStores, type AutoFileChunkingStrategyParam, type FileChunkingStrategy, type FileChunkingStrategyParam, type OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam, type VectorStore, type VectorStoreDeleted, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, type VectorStoresPage, type VectorStoreSearchResponsesPage, } from "./vector-stores/vector-stores.mjs"; +export { Webhooks } from "./webhooks.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6ec79fcadc1aa6cd048c0eed35b02391de420297 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";;OAIO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE;OACpD,EACL,OAAO,EACP,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,WAAW,GACjB;OACM,EAAE,IAAI,EAAE;OACR,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,GACrC;OACM,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC;OACM,EAAE,aAAa,EAAE;OACjB,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,0BAA0B,EAC/B,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,WAA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--git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..36b11e732c76d065ad4011bc299a861b69a2e5fe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts @@ -0,0 +1,21 @@ +export * from "./chat/index.js"; +export * from "./shared.js"; +export { Audio, type AudioModel, type AudioResponseFormat } from "./audio/audio.js"; +export { Batches, type Batch, type BatchError, type BatchRequestCounts, type BatchCreateParams, type BatchListParams, type BatchesPage, } from "./batches.js"; +export { Beta } from "./beta/beta.js"; +export { Completions, type Completion, type CompletionChoice, type CompletionUsage, type CompletionCreateParams, type CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming, } from "./completions.js"; +export { Containers, type ContainerCreateResponse, type ContainerRetrieveResponse, type ContainerListResponse, type ContainerCreateParams, type ContainerListParams, type ContainerListResponsesPage, } from "./containers/containers.js"; +export { Conversations } from "./conversations/conversations.js"; +export { Embeddings, type CreateEmbeddingResponse, type Embedding, type EmbeddingModel, type EmbeddingCreateParams, } from "./embeddings.js"; +export { Evals, type EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse, type EvalRetrieveResponse, type EvalUpdateResponse, type EvalListResponse, type EvalDeleteResponse, type EvalCreateParams, type EvalUpdateParams, type EvalListParams, type EvalListResponsesPage, } from "./evals/evals.js"; +export { Files, type FileContent, type FileDeleted, type FileObject, type FilePurpose, type FileCreateParams, type FileListParams, type FileObjectsPage, } from "./files.js"; +export { FineTuning } from "./fine-tuning/fine-tuning.js"; +export { Graders } from "./graders/graders.js"; +export { Images, type Image, type ImageEditCompletedEvent, type ImageEditPartialImageEvent, type ImageEditStreamEvent, type ImageGenCompletedEvent, type ImageGenPartialImageEvent, type ImageGenStreamEvent, type ImageModel, type ImagesResponse, type ImageCreateVariationParams, type ImageEditParams, type ImageEditParamsNonStreaming, type ImageEditParamsStreaming, type ImageGenerateParams, type ImageGenerateParamsNonStreaming, type ImageGenerateParamsStreaming, } from "./images.js"; +export { Models, type Model, type ModelDeleted, type ModelsPage } from "./models.js"; +export { Moderations, type Moderation, type ModerationImageURLInput, type ModerationModel, type ModerationMultiModalInput, type ModerationTextInput, type ModerationCreateResponse, type ModerationCreateParams, } from "./moderations.js"; +export { Responses } from "./responses/responses.js"; +export { Uploads, type Upload, type UploadCreateParams, type UploadCompleteParams } from "./uploads/uploads.js"; +export { VectorStores, type AutoFileChunkingStrategyParam, type FileChunkingStrategy, type FileChunkingStrategyParam, type OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam, type VectorStore, type VectorStoreDeleted, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, type VectorStoresPage, type VectorStoreSearchResponsesPage, } from "./vector-stores/vector-stores.js"; +export { Webhooks } from "./webhooks.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..23977d89f5feff4fd7edc343928d0cce2954e3ed --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";;OAIO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE;OACpD,EACL,OAAO,EACP,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,WAAW,GACjB;OACM,EAAE,IAAI,EAAE;OACR,EACL,WAAW,EACX,KAAK,UAAU,EACf,K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AC1D,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EAAE,SAAS,EAAE;OACb,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE;OAC5E,EACL,YAAY,EACZ,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,GACpC;OACM,EAAE,QAAQ,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js new file mode 100644 index 0000000000000000000000000000000000000000..50e0d0514802ecbb513eb2cacd105cccd630a646 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js @@ -0,0 +1,44 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Webhooks = exports.VectorStores = exports.Uploads = exports.Responses = exports.Moderations = exports.Models = exports.Images = exports.Graders = exports.FineTuning = exports.Files = exports.Evals = exports.Embeddings = exports.Conversations = exports.Containers = exports.Completions = exports.Beta = exports.Batches = exports.Audio = void 0; +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./chat/index.js"), exports); +tslib_1.__exportStar(require("./shared.js"), exports); +var audio_1 = require("./audio/audio.js"); +Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return audio_1.Audio; } }); +var batches_1 = require("./batches.js"); +Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } }); +var beta_1 = require("./beta/beta.js"); +Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } }); +var completions_1 = require("./completions.js"); +Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return completions_1.Completions; } }); +var containers_1 = require("./containers/containers.js"); +Object.defineProperty(exports, "Containers", { enumerable: true, get: function () { return containers_1.Containers; } }); +var conversations_1 = require("./conversations/conversations.js"); +Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } }); +var embeddings_1 = require("./embeddings.js"); +Object.defineProperty(exports, "Embeddings", { enumerable: true, get: function () { return embeddings_1.Embeddings; } }); +var evals_1 = require("./evals/evals.js"); +Object.defineProperty(exports, "Evals", { enumerable: true, get: function () { return evals_1.Evals; } }); +var files_1 = require("./files.js"); +Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } }); +var fine_tuning_1 = require("./fine-tuning/fine-tuning.js"); +Object.defineProperty(exports, "FineTuning", { enumerable: true, get: function () { return fine_tuning_1.FineTuning; } }); +var graders_1 = require("./graders/graders.js"); +Object.defineProperty(exports, "Graders", { enumerable: true, get: function () { return graders_1.Graders; } }); +var images_1 = require("./images.js"); +Object.defineProperty(exports, "Images", { enumerable: true, get: function () { return images_1.Images; } }); +var models_1 = require("./models.js"); +Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } }); +var moderations_1 = require("./moderations.js"); +Object.defineProperty(exports, "Moderations", { enumerable: true, get: function () { return moderations_1.Moderations; } }); +var responses_1 = require("./responses/responses.js"); +Object.defineProperty(exports, "Responses", { enumerable: true, get: function () { return responses_1.Responses; } }); +var uploads_1 = require("./uploads/uploads.js"); +Object.defineProperty(exports, "Uploads", { enumerable: true, get: function () { return uploads_1.Uploads; } }); +var vector_stores_1 = require("./vector-stores/vector-stores.js"); +Object.defineProperty(exports, "VectorStores", { enumerable: true, get: function () { return vector_stores_1.VectorStores; } }); +var webhooks_1 = require("./webhooks.js"); +Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..16abfd6270a835e81d62eedf8b465d1e3f995380 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,0DAA6B;AAC7B,sDAAyB;AACzB,0CAAiF;AAAxE,8FAAA,KAAK,OAAA;AACd,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,yDAQiC;AAP/B,wGAAA,UAAU,OAAA;AAQZ,kEAA8D;AAArD,8GAAA,aAAa,OAAA;AACtB,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,0CAauB;AAZrB,8FAAA,KAAK,OAAA;AAaP,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,4DAAuD;AAA9C,yGAAA,UAAU,OAAA;AACnB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,sCAkBkB;AAjBhB,gGAAA,MAAM,OAAA;AAkBR,sCAAkF;AAAzE,gGAAA,MAAM,OAAA;AACf,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,sDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,gDAA6G;AAApG,kGAAA,OAAO,OAAA;AAChB,kEAkBuC;AAjBrC,6GAAA,YAAY,OAAA;AAkBd,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..008befbe3e51e4d92f393ec7f2f4eb7f912f764f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./chat/index.mjs"; +export * from "./shared.mjs"; +export { Audio } from "./audio/audio.mjs"; +export { Batches, } from "./batches.mjs"; +export { Beta } from "./beta/beta.mjs"; +export { Completions, } from "./completions.mjs"; +export { Containers, } from "./containers/containers.mjs"; +export { Conversations } from "./conversations/conversations.mjs"; +export { Embeddings, } from "./embeddings.mjs"; +export { Evals, } from "./evals/evals.mjs"; +export { Files, } from "./files.mjs"; +export { FineTuning } from "./fine-tuning/fine-tuning.mjs"; +export { Graders } from "./graders/graders.mjs"; +export { Images, } from "./images.mjs"; +export { Models } from "./models.mjs"; +export { Moderations, } from "./moderations.mjs"; +export { Responses } from "./responses/responses.mjs"; +export { Uploads } from "./uploads/uploads.mjs"; +export { VectorStores, } from "./vector-stores/vector-stores.mjs"; +export { Webhooks } from "./webhooks.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..bed72034cbf8891f131e4596660088d26a8b68c9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAI/E,EAAE,KAAK,EAA6C;OACpD,EACL,OAAO,GAOR;OACM,EAAE,IAAI,EAAE;OACR,EACL,WAAW,GAOZ;OACM,EACL,UAAU,GAOX;OACM,EAAE,aAAa,EAAE;OACjB,EACL,UAAU,GAKX;OACM,EACL,KAAK,GAYN;OACM,EACL,KAAK,GAQN;OACM,EAAE,UAAU,EAAE;OACd,EAAE,OAAO,EAAE;OACX,EACL,MAAM,GAiBP;OACM,EAAE,MAAM,EAAkD;OAC1D,EACL,WAAW,GAQZ;OACM,EAAE,SAAS,EAAE;OACb,EAAE,OAAO,EAAmE;OAC5E,EACL,YAAY,GAiBb;OACM,EAAE,QAAQ,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..baf5ad39f6de4ebd5351ac8b3b8afc57995360d4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts @@ -0,0 +1,52 @@ +import { APIResource } from "../core/resource.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { Page, PagePromise } from "../core/pagination.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Models extends APIResource { + /** + * Retrieves a model instance, providing basic information about the model such as + * the owner and permissioning. + */ + retrieve(model: string, options?: RequestOptions): APIPromise; + /** + * Lists the currently available models, and provides basic information about each + * one such as the owner and availability. + */ + list(options?: RequestOptions): PagePromise; + /** + * Delete a fine-tuned model. You must have the Owner role in your organization to + * delete a model. + */ + delete(model: string, options?: RequestOptions): APIPromise; +} +export type ModelsPage = Page; +/** + * Describes an OpenAI model offering that can be used with the API. + */ +export interface Model { + /** + * The model identifier, which can be referenced in the API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) when the model was created. + */ + created: number; + /** + * The object type, which is always "model". + */ + object: 'model'; + /** + * The organization that owns the model. + */ + owned_by: string; +} +export interface ModelDeleted { + id: string; + deleted: boolean; + object: string; +} +export declare namespace Models { + export { type Model as Model, type ModelDeleted as ModelDeleted, type ModelsPage as ModelsPage }; +} +//# sourceMappingURL=models.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..4383813f4f17aaf0c10aef58ffcc9d1a448e854e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,WAAW,EAAE;OACrB,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIpE;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;IAI9D;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAG1E;AAGD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,KAAK,IAAI,KAAK,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,CAAC;CAClG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..419b99f3226560e17e7698070c2d24f0651ce656 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts @@ -0,0 +1,52 @@ +import { APIResource } from "../core/resource.js"; +import { APIPromise } from "../core/api-promise.js"; +import { Page, PagePromise } from "../core/pagination.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Models extends APIResource { + /** + * Retrieves a model instance, providing basic information about the model such as + * the owner and permissioning. + */ + retrieve(model: string, options?: RequestOptions): APIPromise; + /** + * Lists the currently available models, and provides basic information about each + * one such as the owner and availability. + */ + list(options?: RequestOptions): PagePromise; + /** + * Delete a fine-tuned model. You must have the Owner role in your organization to + * delete a model. + */ + delete(model: string, options?: RequestOptions): APIPromise; +} +export type ModelsPage = Page; +/** + * Describes an OpenAI model offering that can be used with the API. + */ +export interface Model { + /** + * The model identifier, which can be referenced in the API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) when the model was created. + */ + created: number; + /** + * The object type, which is always "model". + */ + object: 'model'; + /** + * The organization that owns the model. + */ + owned_by: string; +} +export interface ModelDeleted { + id: string; + deleted: boolean; + object: string; +} +export declare namespace Models { + export { type Model as Model, type ModelDeleted as ModelDeleted, type ModelsPage as ModelsPage }; +} +//# sourceMappingURL=models.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..0fd99de28e719df2004c7311c12710f6c90b7d8b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,WAAW,EAAE;OACrB,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIpE;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;IAI9D;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAG1E;AAGD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,KAAK,IAAI,KAAK,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,CAAC;CAClG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js new file mode 100644 index 0000000000000000000000000000000000000000..b195d63e1d70ea141e3ab8f78dc2949593da7e68 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js @@ -0,0 +1,32 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Models = void 0; +const resource_1 = require("../core/resource.js"); +const pagination_1 = require("../core/pagination.js"); +const path_1 = require("../internal/utils/path.js"); +class Models extends resource_1.APIResource { + /** + * Retrieves a model instance, providing basic information about the model such as + * the owner and permissioning. + */ + retrieve(model, options) { + return this._client.get((0, path_1.path) `/models/${model}`, options); + } + /** + * Lists the currently available models, and provides basic information about each + * one such as the owner and availability. + */ + list(options) { + return this._client.getAPIList('/models', (pagination_1.Page), options); + } + /** + * Delete a fine-tuned model. You must have the Owner role in your organization to + * delete a model. + */ + delete(model, options) { + return this._client.delete((0, path_1.path) `/models/${model}`, options); + } +} +exports.Models = Models; +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js.map new file mode 100644 index 0000000000000000000000000000000000000000..8c6a271aef9e919fec41f9a28b196ef520c5bbe2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAuD;AAEvD,oDAA8C;AAE9C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,iBAAW,CAAA,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAxBD,wBAwBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5b7d402c76bab2b9ce36e4e56dce4611298f3542 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +import { Page } from "../core/pagination.mjs"; +import { path } from "../internal/utils/path.mjs"; +export class Models extends APIResource { + /** + * Retrieves a model instance, providing basic information about the model such as + * the owner and permissioning. + */ + retrieve(model, options) { + return this._client.get(path `/models/${model}`, options); + } + /** + * Lists the currently available models, and provides basic information about each + * one such as the owner and availability. + */ + list(options) { + return this._client.getAPIList('/models', (Page), options); + } + /** + * Delete a fine-tuned model. You must have the Owner role in your organization to + * delete a model. + */ + delete(model, options) { + return this._client.delete(path `/models/${model}`, options); + } +} +//# sourceMappingURL=models.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..8b72a531ba1d00a4222e06c9cd80ff3431ed6ee9 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/models.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAe;OAErB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,IAAW,CAAA,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..4bedacfe7652e89dd05519a3f0cf7d018db2d198 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts @@ -0,0 +1,295 @@ +import { APIResource } from "../core/resource.mjs"; +import { APIPromise } from "../core/api-promise.mjs"; +import { RequestOptions } from "../internal/request-options.mjs"; +export declare class Moderations extends APIResource { + /** + * Classifies if text and/or image inputs are potentially harmful. Learn more in + * the [moderation guide](https://platform.openai.com/docs/guides/moderation). + */ + create(body: ModerationCreateParams, options?: RequestOptions): APIPromise; +} +export interface Moderation { + /** + * A list of the categories, and whether they are flagged or not. + */ + categories: Moderation.Categories; + /** + * A list of the categories along with the input type(s) that the score applies to. + */ + category_applied_input_types: Moderation.CategoryAppliedInputTypes; + /** + * A list of the categories along with their scores as predicted by model. + */ + category_scores: Moderation.CategoryScores; + /** + * Whether any of the below categories are flagged. + */ + flagged: boolean; +} +export declare namespace Moderation { + /** + * A list of the categories, and whether they are flagged or not. + */ + interface Categories { + /** + * Content that expresses, incites, or promotes harassing language towards any + * target. + */ + harassment: boolean; + /** + * Harassment content that also includes violence or serious harm towards any + * target. + */ + 'harassment/threatening': boolean; + /** + * Content that expresses, incites, or promotes hate based on race, gender, + * ethnicity, religion, nationality, sexual orientation, disability status, or + * caste. Hateful content aimed at non-protected groups (e.g., chess players) is + * harassment. + */ + hate: boolean; + /** + * Hateful content that also includes violence or serious harm towards the targeted + * group based on race, gender, ethnicity, religion, nationality, sexual + * orientation, disability status, or caste. + */ + 'hate/threatening': boolean; + /** + * Content that includes instructions or advice that facilitate the planning or + * execution of wrongdoing, or that gives advice or instruction on how to commit + * illicit acts. For example, "how to shoplift" would fit this category. + */ + illicit: boolean | null; + /** + * Content that includes instructions or advice that facilitate the planning or + * execution of wrongdoing that also includes violence, or that gives advice or + * instruction on the procurement of any weapon. + */ + 'illicit/violent': boolean | null; + /** + * Content that promotes, encourages, or depicts acts of self-harm, such as + * suicide, cutting, and eating disorders. + */ + 'self-harm': boolean; + /** + * Content that encourages performing acts of self-harm, such as suicide, cutting, + * and eating disorders, or that gives instructions or advice on how to commit such + * acts. + */ + 'self-harm/instructions': boolean; + /** + * Content where the speaker expresses that they are engaging or intend to engage + * in acts of self-harm, such as suicide, cutting, and eating disorders. + */ + 'self-harm/intent': boolean; + /** + * Content meant to arouse sexual excitement, such as the description of sexual + * activity, or that promotes sexual services (excluding sex education and + * wellness). + */ + sexual: boolean; + /** + * Sexual content that includes an individual who is under 18 years old. + */ + 'sexual/minors': boolean; + /** + * Content that depicts death, violence, or physical injury. + */ + violence: boolean; + /** + * Content that depicts death, violence, or physical injury in graphic detail. + */ + 'violence/graphic': boolean; + } + /** + * A list of the categories along with the input type(s) that the score applies to. + */ + interface CategoryAppliedInputTypes { + /** + * The applied input type(s) for the category 'harassment'. + */ + harassment: Array<'text'>; + /** + * The applied input type(s) for the category 'harassment/threatening'. + */ + 'harassment/threatening': Array<'text'>; + /** + * The applied input type(s) for the category 'hate'. + */ + hate: Array<'text'>; + /** + * The applied input type(s) for the category 'hate/threatening'. + */ + 'hate/threatening': Array<'text'>; + /** + * The applied input type(s) for the category 'illicit'. + */ + illicit: Array<'text'>; + /** + * The applied input type(s) for the category 'illicit/violent'. + */ + 'illicit/violent': Array<'text'>; + /** + * The applied input type(s) for the category 'self-harm'. + */ + 'self-harm': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'self-harm/instructions'. + */ + 'self-harm/instructions': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'self-harm/intent'. + */ + 'self-harm/intent': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'sexual'. + */ + sexual: Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'sexual/minors'. + */ + 'sexual/minors': Array<'text'>; + /** + * The applied input type(s) for the category 'violence'. + */ + violence: Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'violence/graphic'. + */ + 'violence/graphic': Array<'text' | 'image'>; + } + /** + * A list of the categories along with their scores as predicted by model. + */ + interface CategoryScores { + /** + * The score for the category 'harassment'. + */ + harassment: number; + /** + * The score for the category 'harassment/threatening'. + */ + 'harassment/threatening': number; + /** + * The score for the category 'hate'. + */ + hate: number; + /** + * The score for the category 'hate/threatening'. + */ + 'hate/threatening': number; + /** + * The score for the category 'illicit'. + */ + illicit: number; + /** + * The score for the category 'illicit/violent'. + */ + 'illicit/violent': number; + /** + * The score for the category 'self-harm'. + */ + 'self-harm': number; + /** + * The score for the category 'self-harm/instructions'. + */ + 'self-harm/instructions': number; + /** + * The score for the category 'self-harm/intent'. + */ + 'self-harm/intent': number; + /** + * The score for the category 'sexual'. + */ + sexual: number; + /** + * The score for the category 'sexual/minors'. + */ + 'sexual/minors': number; + /** + * The score for the category 'violence'. + */ + violence: number; + /** + * The score for the category 'violence/graphic'. + */ + 'violence/graphic': number; + } +} +/** + * An object describing an image to classify. + */ +export interface ModerationImageURLInput { + /** + * Contains either an image URL or a data URL for a base64 encoded image. + */ + image_url: ModerationImageURLInput.ImageURL; + /** + * Always `image_url`. + */ + type: 'image_url'; +} +export declare namespace ModerationImageURLInput { + /** + * Contains either an image URL or a data URL for a base64 encoded image. + */ + interface ImageURL { + /** + * Either a URL of the image or the base64 encoded image data. + */ + url: string; + } +} +export type ModerationModel = 'omni-moderation-latest' | 'omni-moderation-2024-09-26' | 'text-moderation-latest' | 'text-moderation-stable'; +/** + * An object describing an image to classify. + */ +export type ModerationMultiModalInput = ModerationImageURLInput | ModerationTextInput; +/** + * An object describing text to classify. + */ +export interface ModerationTextInput { + /** + * A string of text to classify. + */ + text: string; + /** + * Always `text`. + */ + type: 'text'; +} +/** + * Represents if a given text input is potentially harmful. + */ +export interface ModerationCreateResponse { + /** + * The unique identifier for the moderation request. + */ + id: string; + /** + * The model used to generate the moderation results. + */ + model: string; + /** + * A list of moderation objects. + */ + results: Array; +} +export interface ModerationCreateParams { + /** + * Input (or inputs) to classify. Can be a single string, an array of strings, or + * an array of multi-modal input objects similar to other models. + */ + input: string | Array | Array; + /** + * The content moderation model you would like to use. Learn more in + * [the moderation guide](https://platform.openai.com/docs/guides/moderation), and + * learn about available models + * [here](https://platform.openai.com/docs/models#moderation). + */ + model?: (string & {}) | ModerationModel; +} +export declare namespace Moderations { + export { type Moderation as Moderation, type ModerationImageURLInput as ModerationImageURLInput, type ModerationModel as ModerationModel, type ModerationMultiModalInput as ModerationMultiModalInput, type ModerationTextInput as ModerationTextInput, type ModerationCreateResponse as ModerationCreateResponse, type ModerationCreateParams as ModerationCreateParams, }; +} +//# sourceMappingURL=moderations.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..e9091f52874972695a38c79dcbc4c80096248919 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"moderations.d.mts","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrG;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAElC;;OAEG;IACH,4BAA4B,EAAE,UAAU,CAAC,yBAAyB,CAAC;IAEnE;;OAEG;IACH,eAAe,EAAE,UAAU,CAAC,cAAc,CAAC;IAE3C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yBAAiB,UAAU,CAAC;IAC1B;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAElC;;;;;WAKG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,kBAAkB,EAAE,OAAO,CAAC;QAE5B;;;;WAIG;QACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QAExB;;;;WAIG;QACH,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;;WAI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AAC;IAEd;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAEjE;;;;;OAKG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..43831346603007bcfc5f8476013a0d26f68e7864 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts @@ -0,0 +1,295 @@ +import { APIResource } from "../core/resource.js"; +import { APIPromise } from "../core/api-promise.js"; +import { RequestOptions } from "../internal/request-options.js"; +export declare class Moderations extends APIResource { + /** + * Classifies if text and/or image inputs are potentially harmful. Learn more in + * the [moderation guide](https://platform.openai.com/docs/guides/moderation). + */ + create(body: ModerationCreateParams, options?: RequestOptions): APIPromise; +} +export interface Moderation { + /** + * A list of the categories, and whether they are flagged or not. + */ + categories: Moderation.Categories; + /** + * A list of the categories along with the input type(s) that the score applies to. + */ + category_applied_input_types: Moderation.CategoryAppliedInputTypes; + /** + * A list of the categories along with their scores as predicted by model. + */ + category_scores: Moderation.CategoryScores; + /** + * Whether any of the below categories are flagged. + */ + flagged: boolean; +} +export declare namespace Moderation { + /** + * A list of the categories, and whether they are flagged or not. + */ + interface Categories { + /** + * Content that expresses, incites, or promotes harassing language towards any + * target. + */ + harassment: boolean; + /** + * Harassment content that also includes violence or serious harm towards any + * target. + */ + 'harassment/threatening': boolean; + /** + * Content that expresses, incites, or promotes hate based on race, gender, + * ethnicity, religion, nationality, sexual orientation, disability status, or + * caste. Hateful content aimed at non-protected groups (e.g., chess players) is + * harassment. + */ + hate: boolean; + /** + * Hateful content that also includes violence or serious harm towards the targeted + * group based on race, gender, ethnicity, religion, nationality, sexual + * orientation, disability status, or caste. + */ + 'hate/threatening': boolean; + /** + * Content that includes instructions or advice that facilitate the planning or + * execution of wrongdoing, or that gives advice or instruction on how to commit + * illicit acts. For example, "how to shoplift" would fit this category. + */ + illicit: boolean | null; + /** + * Content that includes instructions or advice that facilitate the planning or + * execution of wrongdoing that also includes violence, or that gives advice or + * instruction on the procurement of any weapon. + */ + 'illicit/violent': boolean | null; + /** + * Content that promotes, encourages, or depicts acts of self-harm, such as + * suicide, cutting, and eating disorders. + */ + 'self-harm': boolean; + /** + * Content that encourages performing acts of self-harm, such as suicide, cutting, + * and eating disorders, or that gives instructions or advice on how to commit such + * acts. + */ + 'self-harm/instructions': boolean; + /** + * Content where the speaker expresses that they are engaging or intend to engage + * in acts of self-harm, such as suicide, cutting, and eating disorders. + */ + 'self-harm/intent': boolean; + /** + * Content meant to arouse sexual excitement, such as the description of sexual + * activity, or that promotes sexual services (excluding sex education and + * wellness). + */ + sexual: boolean; + /** + * Sexual content that includes an individual who is under 18 years old. + */ + 'sexual/minors': boolean; + /** + * Content that depicts death, violence, or physical injury. + */ + violence: boolean; + /** + * Content that depicts death, violence, or physical injury in graphic detail. + */ + 'violence/graphic': boolean; + } + /** + * A list of the categories along with the input type(s) that the score applies to. + */ + interface CategoryAppliedInputTypes { + /** + * The applied input type(s) for the category 'harassment'. + */ + harassment: Array<'text'>; + /** + * The applied input type(s) for the category 'harassment/threatening'. + */ + 'harassment/threatening': Array<'text'>; + /** + * The applied input type(s) for the category 'hate'. + */ + hate: Array<'text'>; + /** + * The applied input type(s) for the category 'hate/threatening'. + */ + 'hate/threatening': Array<'text'>; + /** + * The applied input type(s) for the category 'illicit'. + */ + illicit: Array<'text'>; + /** + * The applied input type(s) for the category 'illicit/violent'. + */ + 'illicit/violent': Array<'text'>; + /** + * The applied input type(s) for the category 'self-harm'. + */ + 'self-harm': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'self-harm/instructions'. + */ + 'self-harm/instructions': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'self-harm/intent'. + */ + 'self-harm/intent': Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'sexual'. + */ + sexual: Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'sexual/minors'. + */ + 'sexual/minors': Array<'text'>; + /** + * The applied input type(s) for the category 'violence'. + */ + violence: Array<'text' | 'image'>; + /** + * The applied input type(s) for the category 'violence/graphic'. + */ + 'violence/graphic': Array<'text' | 'image'>; + } + /** + * A list of the categories along with their scores as predicted by model. + */ + interface CategoryScores { + /** + * The score for the category 'harassment'. + */ + harassment: number; + /** + * The score for the category 'harassment/threatening'. + */ + 'harassment/threatening': number; + /** + * The score for the category 'hate'. + */ + hate: number; + /** + * The score for the category 'hate/threatening'. + */ + 'hate/threatening': number; + /** + * The score for the category 'illicit'. + */ + illicit: number; + /** + * The score for the category 'illicit/violent'. + */ + 'illicit/violent': number; + /** + * The score for the category 'self-harm'. + */ + 'self-harm': number; + /** + * The score for the category 'self-harm/instructions'. + */ + 'self-harm/instructions': number; + /** + * The score for the category 'self-harm/intent'. + */ + 'self-harm/intent': number; + /** + * The score for the category 'sexual'. + */ + sexual: number; + /** + * The score for the category 'sexual/minors'. + */ + 'sexual/minors': number; + /** + * The score for the category 'violence'. + */ + violence: number; + /** + * The score for the category 'violence/graphic'. + */ + 'violence/graphic': number; + } +} +/** + * An object describing an image to classify. + */ +export interface ModerationImageURLInput { + /** + * Contains either an image URL or a data URL for a base64 encoded image. + */ + image_url: ModerationImageURLInput.ImageURL; + /** + * Always `image_url`. + */ + type: 'image_url'; +} +export declare namespace ModerationImageURLInput { + /** + * Contains either an image URL or a data URL for a base64 encoded image. + */ + interface ImageURL { + /** + * Either a URL of the image or the base64 encoded image data. + */ + url: string; + } +} +export type ModerationModel = 'omni-moderation-latest' | 'omni-moderation-2024-09-26' | 'text-moderation-latest' | 'text-moderation-stable'; +/** + * An object describing an image to classify. + */ +export type ModerationMultiModalInput = ModerationImageURLInput | ModerationTextInput; +/** + * An object describing text to classify. + */ +export interface ModerationTextInput { + /** + * A string of text to classify. + */ + text: string; + /** + * Always `text`. + */ + type: 'text'; +} +/** + * Represents if a given text input is potentially harmful. + */ +export interface ModerationCreateResponse { + /** + * The unique identifier for the moderation request. + */ + id: string; + /** + * The model used to generate the moderation results. + */ + model: string; + /** + * A list of moderation objects. + */ + results: Array; +} +export interface ModerationCreateParams { + /** + * Input (or inputs) to classify. Can be a single string, an array of strings, or + * an array of multi-modal input objects similar to other models. + */ + input: string | Array | Array; + /** + * The content moderation model you would like to use. Learn more in + * [the moderation guide](https://platform.openai.com/docs/guides/moderation), and + * learn about available models + * [here](https://platform.openai.com/docs/models#moderation). + */ + model?: (string & {}) | ModerationModel; +} +export declare namespace Moderations { + export { type Moderation as Moderation, type ModerationImageURLInput as ModerationImageURLInput, type ModerationModel as ModerationModel, type ModerationMultiModalInput as ModerationMultiModalInput, type ModerationTextInput as ModerationTextInput, type ModerationCreateResponse as ModerationCreateResponse, type ModerationCreateParams as ModerationCreateParams, }; +} +//# sourceMappingURL=moderations.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..93f0aabc7f3b6c796c0287e3d152b36d5243bad1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"moderations.d.ts","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrG;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAElC;;OAEG;IACH,4BAA4B,EAAE,UAAU,CAAC,yBAAyB,CAAC;IAEnE;;OAEG;IACH,eAAe,EAAE,UAAU,CAAC,cAAc,CAAC;IAE3C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yBAAiB,UAAU,CAAC;IAC1B;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAElC;;;;;WAKG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,kBAAkB,EAAE,OAAO,CAAC;QAE5B;;;;WAIG;QACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QAExB;;;;WAIG;QACH,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;;WAIG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAElC;;;WAGG;QACH,kBAAkB,EAAE,OAAO,CAAC;QAE5B;;;;WAIG;QACH,MAAM,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,eAAe,EAAE,OAAO,CAAC;QAEzB;;WAEG;QACH,QAA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CAAC,CAAC;IAEjE;;;;;OAKG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js new file mode 100644 index 0000000000000000000000000000000000000000..a2f2f4246330f463bd6a2a4f7672b4b7d648088c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js @@ -0,0 +1,16 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Moderations = void 0; +const resource_1 = require("../core/resource.js"); +class Moderations extends resource_1.APIResource { + /** + * Classifies if text and/or image inputs are potentially harmful. Learn more in + * the [moderation guide](https://platform.openai.com/docs/guides/moderation). + */ + create(body, options) { + return this._client.post('/moderations', { body, ...options }); + } +} +exports.Moderations = Moderations; +//# sourceMappingURL=moderations.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e47df8e228d3e934cecb876fbb14641c1e61c2f0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"moderations.js","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AARD,kCAQC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs new file mode 100644 index 0000000000000000000000000000000000000000..982ed552f8ea93c798aacb8ddecb1442a28d4454 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../core/resource.mjs"; +export class Moderations extends APIResource { + /** + * Classifies if text and/or image inputs are potentially harmful. Learn more in + * the [moderation guide](https://platform.openai.com/docs/guides/moderation). + */ + create(body, options) { + return this._client.post('/moderations', { body, ...options }); + } +} +//# sourceMappingURL=moderations.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..6c6a9779d0cf6381ee17fc66fffaf969576b8864 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/moderations.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"moderations.mjs","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..911e4eb34398e0be11e04ddc45d3dc3a4a8a8a01 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts @@ -0,0 +1,2 @@ +export * from "./responses/index.mjs"; +//# sourceMappingURL=responses.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..06913501ec9d4dd915a84a396bf72b17f5b8ae74 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.mts","sourceRoot":"","sources":["../src/resources/responses.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0d24781fa25ad2e5d28faa7c646277e826373a12 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts @@ -0,0 +1,2 @@ +export * from "./responses/index.js"; +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..c8b4af2a1acac1abc1386da5be19df8c88047d9f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../src/resources/responses.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js new file mode 100644 index 0000000000000000000000000000000000000000..6eec4037e52fb3f8a37fd99a6686c6b0a24a1dcc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./responses/index.js"), exports); +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js.map new file mode 100644 index 0000000000000000000000000000000000000000..39ea90e5a6f764f291ab437ef4666ac84ad2397c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["../src/resources/responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e105b5ea5399287dd536ed818e17f9398e45feec --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./responses/index.mjs"; +//# sourceMappingURL=responses.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b63d7336c89f3b3e3113d8ba3415afcf2b58ba0c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.mjs","sourceRoot":"","sources":["../src/resources/responses.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..886e31c126b720f52018360427f21a17879ae25c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts @@ -0,0 +1,3 @@ +export { InputItems, type ResponseItemList, type InputItemListParams } from "./input-items.mjs"; +export { Responses } from "./responses.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..33ba5870ad09cebb88f0050ed55184fe5ca26bd6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OAC/D,EAAE,SAAS,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1b47502bf00b979f674b0e9ca555b35f427933ba --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts @@ -0,0 +1,3 @@ +export { InputItems, type ResponseItemList, type InputItemListParams } from "./input-items.js"; +export { Responses } from "./responses.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..38c8669875007282f696647609cc2729672abc0b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OAC/D,EAAE,SAAS,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3327ffb5e142b48060e5b870bd164bee60c25e0d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Responses = exports.InputItems = void 0; +var input_items_1 = require("./input-items.js"); +Object.defineProperty(exports, "InputItems", { enumerable: true, get: function () { return input_items_1.InputItems; } }); +var responses_1 = require("./responses.js"); +Object.defineProperty(exports, "Responses", { enumerable: true, get: function () { return responses_1.Responses; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..dd5678214caeee94c7caadeace61cb1b21b84ebd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA4F;AAAnF,yGAAA,UAAU,OAAA;AACnB,4CAAwC;AAA/B,sGAAA,SAAS,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..d1a116383f2792212de4515de62b605775586b86 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { InputItems } from "./input-items.mjs"; +export { Responses } from "./responses.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..aa296cc447d49ce7c0a9ab7f0389b6018a0d549f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,UAAU,EAAmD;OAC/D,EAAE,SAAS,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..d875248f3f2a13222e0a3cec4065c93bce80b89c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts @@ -0,0 +1,65 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as ResponsesAPI from "./responses.mjs"; +import { ResponseItemsPage } from "./responses.mjs"; +import { type CursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class InputItems extends APIResource { + /** + * Returns a list of input items for a given response. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const responseItem of client.responses.inputItems.list( + * 'response_id', + * )) { + * // ... + * } + * ``` + */ + list(responseID: string, query?: InputItemListParams | null | undefined, options?: RequestOptions): PagePromise; +} +/** + * A list of Response items. + */ +export interface ResponseItemList { + /** + * A list of items used to generate this response. + */ + data: Array; + /** + * The ID of the first item in the list. + */ + first_id: string; + /** + * Whether there are more items available. + */ + has_more: boolean; + /** + * The ID of the last item in the list. + */ + last_id: string; + /** + * The type of object returned, must be `list`. + */ + object: 'list'; +} +export interface InputItemListParams extends CursorPageParams { + /** + * Additional fields to include in the response. See the `include` parameter for + * Response creation above for more information. + */ + include?: Array; + /** + * The order to return the input items in. Default is `desc`. + * + * - `asc`: Return the input items in ascending order. + * - `desc`: Return the input items in descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace InputItems { + export { type ResponseItemList as ResponseItemList, type InputItemListParams as InputItemListParams }; +} +export { type ResponseItemsPage }; +//# sourceMappingURL=input-items.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..d0becda988fb1caeb46aad03a6ce2b82d8551bdd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"input-items.d.mts","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,iBAAiB,EAAE;OACrB,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC;CAO7D;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvG;AAED,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b8a68a1566da8664040c365e35dbb92b73dc2c2d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts @@ -0,0 +1,65 @@ +import { APIResource } from "../../core/resource.js"; +import * as ResponsesAPI from "./responses.js"; +import { ResponseItemsPage } from "./responses.js"; +import { type CursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class InputItems extends APIResource { + /** + * Returns a list of input items for a given response. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const responseItem of client.responses.inputItems.list( + * 'response_id', + * )) { + * // ... + * } + * ``` + */ + list(responseID: string, query?: InputItemListParams | null | undefined, options?: RequestOptions): PagePromise; +} +/** + * A list of Response items. + */ +export interface ResponseItemList { + /** + * A list of items used to generate this response. + */ + data: Array; + /** + * The ID of the first item in the list. + */ + first_id: string; + /** + * Whether there are more items available. + */ + has_more: boolean; + /** + * The ID of the last item in the list. + */ + last_id: string; + /** + * The type of object returned, must be `list`. + */ + object: 'list'; +} +export interface InputItemListParams extends CursorPageParams { + /** + * Additional fields to include in the response. See the `include` parameter for + * Response creation above for more information. + */ + include?: Array; + /** + * The order to return the input items in. Default is `desc`. + * + * - `asc`: Return the input items in ascending order. + * - `desc`: Return the input items in descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace InputItems { + export { type ResponseItemList as ResponseItemList, type InputItemListParams as InputItemListParams }; +} +export { type ResponseItemsPage }; +//# sourceMappingURL=input-items.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..827d9f7e3c5f896d57a253f0b8856e08142003e2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"input-items.d.ts","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,iBAAiB,EAAE;OACrB,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC;CAO7D;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvG;AAED,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js new file mode 100644 index 0000000000000000000000000000000000000000..11e8cf4fa0632eefdefb8a073737f781079557fd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js @@ -0,0 +1,27 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InputItems = void 0; +const resource_1 = require("../../core/resource.js"); +const pagination_1 = require("../../core/pagination.js"); +const path_1 = require("../../internal/utils/path.js"); +class InputItems extends resource_1.APIResource { + /** + * Returns a list of input items for a given response. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const responseItem of client.responses.inputItems.list( + * 'response_id', + * )) { + * // ... + * } + * ``` + */ + list(responseID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/responses/${responseID}/input_items`, (pagination_1.CursorPage), { query, ...options }); + } +} +exports.InputItems = InputItems; +//# sourceMappingURL=input-items.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js.map new file mode 100644 index 0000000000000000000000000000000000000000..289d75677400bd2096d64a3fcf81d67e1cb633b4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.js.map @@ -0,0 +1 @@ +{"version":3,"file":"input-items.js","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAuF;AAEvF,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,UAAkB,EAClB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,cAAc,UAAU,cAAc,EAC1C,CAAA,uBAAqC,CAAA,EACrC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAzBD,gCAyBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs new file mode 100644 index 0000000000000000000000000000000000000000..b589a03e32f2b359e059754a7425ea399db60fe2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class InputItems extends APIResource { + /** + * Returns a list of input items for a given response. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const responseItem of client.responses.inputItems.list( + * 'response_id', + * )) { + * // ... + * } + * ``` + */ + list(responseID, query = {}, options) { + return this._client.getAPIList(path `/responses/${responseID}/input_items`, (CursorPage), { query, ...options }); + } +} +//# sourceMappingURL=input-items.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..e2c1eea038e23fd24124414677ac5fadfc642915 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/input-items.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"input-items.mjs","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,UAAkB,EAClB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,cAAc,UAAU,cAAc,EAC1C,CAAA,UAAqC,CAAA,EACrC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..0a8a046c83a6e056a5b5a5d03b9ca9efc835ec9c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts @@ -0,0 +1,4537 @@ +import { type ExtractParsedContentFromParams, type ResponseCreateParamsWithTools } from "../../lib/ResponsesParser.mjs"; +import { ResponseStream, ResponseStreamParams } from "../../lib/responses/ResponseStream.mjs"; +import { APIResource } from "../../core/resource.mjs"; +import * as ResponsesAPI from "./responses.mjs"; +import * as Shared from "../shared.mjs"; +import * as InputItemsAPI from "./input-items.mjs"; +import { InputItemListParams, InputItems, ResponseItemList } from "./input-items.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { Stream } from "../../core/streaming.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export interface ParsedResponseOutputText extends ResponseOutputText { + parsed: ParsedT | null; +} +export type ParsedContent = ParsedResponseOutputText | ResponseOutputRefusal; +export interface ParsedResponseOutputMessage extends ResponseOutputMessage { + content: ParsedContent[]; +} +export interface ParsedResponseFunctionToolCall extends ResponseFunctionToolCall { + parsed_arguments: any; +} +export type ParsedResponseOutputItem = ParsedResponseOutputMessage | ParsedResponseFunctionToolCall | ResponseFileSearchToolCall | ResponseFunctionWebSearch | ResponseComputerToolCall | ResponseReasoningItem | ResponseOutputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseOutputItem.LocalShellCall | ResponseOutputItem.McpCall | ResponseOutputItem.McpListTools | ResponseOutputItem.McpApprovalRequest | ResponseCustomToolCall; +export interface ParsedResponse extends Response { + output: Array>; + output_parsed: ParsedT | null; +} +export type ResponseParseParams = ResponseCreateParamsNonStreaming; +export declare class Responses extends APIResource { + inputItems: InputItemsAPI.InputItems; + /** + * Creates a model response. Provide + * [text](https://platform.openai.com/docs/guides/text) or + * [image](https://platform.openai.com/docs/guides/images) inputs to generate + * [text](https://platform.openai.com/docs/guides/text) or + * [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have + * the model call your own + * [custom code](https://platform.openai.com/docs/guides/function-calling) or use + * built-in [tools](https://platform.openai.com/docs/guides/tools) like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search) to use + * your own data as input for the model's response. + * + * @example + * ```ts + * const response = await client.responses.create(); + * ``` + */ + create(body: ResponseCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: ResponseCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: ResponseCreateParamsBase, options?: RequestOptions): APIPromise | Response>; + /** + * Retrieves a model response with the given ID. + * + * @example + * ```ts + * const response = await client.responses.retrieve( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + retrieve(responseID: string, query?: ResponseRetrieveParamsNonStreaming, options?: RequestOptions): APIPromise; + retrieve(responseID: string, query: ResponseRetrieveParamsStreaming, options?: RequestOptions): APIPromise>; + retrieve(responseID: string, query?: ResponseRetrieveParamsBase | undefined, options?: RequestOptions): APIPromise | Response>; + /** + * Deletes a model response with the given ID. + * + * @example + * ```ts + * await client.responses.delete( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + delete(responseID: string, options?: RequestOptions): APIPromise; + parse>(body: Params, options?: RequestOptions): APIPromise>; + /** + * Creates a model response stream + */ + stream>(body: Params, options?: RequestOptions): ResponseStream; + /** + * Cancels a model response with the given ID. Only responses created with the + * `background` parameter set to `true` can be cancelled. + * [Learn more](https://platform.openai.com/docs/guides/background). + * + * @example + * ```ts + * const response = await client.responses.cancel( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + cancel(responseID: string, options?: RequestOptions): APIPromise; +} +export type ResponseItemsPage = CursorPage; +/** + * A tool that controls a virtual computer. Learn more about the + * [computer tool](https://platform.openai.com/docs/guides/tools-computer-use). + */ +export interface ComputerTool { + /** + * The height of the computer display. + */ + display_height: number; + /** + * The width of the computer display. + */ + display_width: number; + /** + * The type of computer environment to control. + */ + environment: 'windows' | 'mac' | 'linux' | 'ubuntu' | 'browser'; + /** + * The type of the computer use tool. Always `computer_use_preview`. + */ + type: 'computer_use_preview'; +} +/** + * A custom tool that processes input using a specified format. Learn more about + * [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools). + */ +export interface CustomTool { + /** + * The name of the custom tool, used to identify it in tool calls. + */ + name: string; + /** + * The type of the custom tool. Always `custom`. + */ + type: 'custom'; + /** + * Optional description of the custom tool, used to provide more context. + */ + description?: string; + /** + * The input format for the custom tool. Default is unconstrained text. + */ + format?: Shared.CustomToolInputFormat; +} +/** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ +export interface EasyInputMessage { + /** + * Text, image, or audio input to the model, used to generate a response. Can also + * contain previous assistant responses. + */ + content: string | ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; +} +/** + * A tool that searches for relevant content from uploaded files. Learn more about + * the + * [file search tool](https://platform.openai.com/docs/guides/tools-file-search). + */ +export interface FileSearchTool { + /** + * The type of the file search tool. Always `file_search`. + */ + type: 'file_search'; + /** + * The IDs of the vector stores to search. + */ + vector_store_ids: Array; + /** + * A filter to apply. + */ + filters?: Shared.ComparisonFilter | Shared.CompoundFilter | null; + /** + * The maximum number of results to return. This number should be between 1 and 50 + * inclusive. + */ + max_num_results?: number; + /** + * Ranking options for search. + */ + ranking_options?: FileSearchTool.RankingOptions; +} +export declare namespace FileSearchTool { + /** + * Ranking options for search. + */ + interface RankingOptions { + /** + * The ranker to use for the file search. + */ + ranker?: 'auto' | 'default-2024-11-15'; + /** + * The score threshold for the file search, a number between 0 and 1. Numbers + * closer to 1 will attempt to return only the most relevant results, but may + * return fewer results. + */ + score_threshold?: number; + } +} +/** + * Defines a function in your own code the model can choose to call. Learn more + * about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ +export interface FunctionTool { + /** + * The name of the function to call. + */ + name: string; + /** + * A JSON schema object describing the parameters of the function. + */ + parameters: { + [key: string]: unknown; + } | null; + /** + * Whether to enforce strict parameter validation. Default `true`. + */ + strict: boolean | null; + /** + * The type of the function tool. Always `function`. + */ + type: 'function'; + /** + * A description of the function. Used by the model to determine whether or not to + * call the function. + */ + description?: string | null; +} +export interface Response { + /** + * Unique identifier for this Response. + */ + id: string; + /** + * Unix timestamp (in seconds) of when this Response was created. + */ + created_at: number; + output_text: string; + /** + * An error object returned when the model fails to generate a Response. + */ + error: ResponseError | null; + /** + * Details about why the response is incomplete. + */ + incomplete_details: Response.IncompleteDetails | null; + /** + * A system (or developer) message inserted into the model's context. + * + * When using along with `previous_response_id`, the instructions from a previous + * response will not be carried over to the next response. This makes it simple to + * swap out system (or developer) messages in new responses. + */ + instructions: string | Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model: Shared.ResponsesModel; + /** + * The object type of this resource - always set to `response`. + */ + object: 'response'; + /** + * An array of content items generated by the model. + * + * - The length and order of items in the `output` array is dependent on the + * model's response. + * - Rather than accessing the first item in the `output` array and assuming it's + * an `assistant` message with the content generated by the model, you might + * consider using the `output_text` property where supported in SDKs. + */ + output: Array; + /** + * Whether to allow the model to run tool calls in parallel. + */ + parallel_tool_calls: boolean; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature: number | null; + /** + * How the model should select which tool (or tools) to use when generating a + * response. See the `tools` parameter to see how to specify which tools the model + * can call. + */ + tool_choice: ToolChoiceOptions | ToolChoiceAllowed | ToolChoiceTypes | ToolChoiceFunction | ToolChoiceMcp | ToolChoiceCustom; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code with strongly typed arguments and outputs. + * Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + * You can also use custom tools to call your own code. + */ + tools: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p: number | null; + /** + * Whether to run the model response in the background. + * [Learn more](https://platform.openai.com/docs/guides/background). + */ + background?: boolean | null; + /** + * The conversation that this response belongs to. Input items and output items + * from this response are automatically added to this conversation. + */ + conversation?: Response.Conversation | null; + /** + * An upper bound for the number of tokens that can be generated for a response, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_output_tokens?: number | null; + /** + * The unique ID of the previous response to the model. Use this to create + * multi-turn conversations. Learn more about + * [conversation state](https://platform.openai.com/docs/guides/conversation-state). + * Cannot be used in conjunction with `conversation`. + */ + previous_response_id?: string | null; + /** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ + prompt?: ResponsePrompt | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ + reasoning?: Shared.Reasoning | null; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * Specifies the latency tier to use for processing the request. This parameter is + * relevant for customers subscribed to the scale tier service: + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When this parameter is set, the response body will include the `service_tier` + * utilized. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * The status of the response generation. One of `completed`, `failed`, + * `in_progress`, `cancelled`, `queued`, or `incomplete`. + */ + status?: ResponseStatus; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * The truncation strategy to use for the model response. + * + * - `auto`: If the context of this response and previous ones exceeds the model's + * context window size, the model will truncate the response to fit the context + * window by dropping input items in the middle of the conversation. + * - `disabled` (default): If a model response will exceed the context window size + * for a model, the request will fail with a 400 error. + */ + truncation?: 'auto' | 'disabled' | null; + /** + * Represents token usage details including input tokens, output tokens, a + * breakdown of output tokens, and the total tokens used. + */ + usage?: ResponseUsage; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; +} +export declare namespace Response { + /** + * Details about why the response is incomplete. + */ + interface IncompleteDetails { + /** + * The reason why the response is incomplete. + */ + reason?: 'max_output_tokens' | 'content_filter'; + } + /** + * The conversation that this response belongs to. Input items and output items + * from this response are automatically added to this conversation. + */ + interface Conversation { + /** + * The unique ID of the conversation. + */ + id: string; + } +} +/** + * Emitted when there is a partial audio response. + */ +export interface ResponseAudioDeltaEvent { + /** + * A chunk of Base64 encoded response audio bytes. + */ + delta: string; + /** + * A sequence number for this chunk of the stream response. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.delta`. + */ + type: 'response.audio.delta'; +} +/** + * Emitted when the audio response is complete. + */ +export interface ResponseAudioDoneEvent { + /** + * The sequence number of the delta. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.done`. + */ + type: 'response.audio.done'; +} +/** + * Emitted when there is a partial transcript of audio. + */ +export interface ResponseAudioTranscriptDeltaEvent { + /** + * The partial transcript of the audio response. + */ + delta: string; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.transcript.delta`. + */ + type: 'response.audio.transcript.delta'; +} +/** + * Emitted when the full audio transcript is completed. + */ +export interface ResponseAudioTranscriptDoneEvent { + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.transcript.done`. + */ + type: 'response.audio.transcript.done'; +} +/** + * Emitted when a partial code snippet is streamed by the code interpreter. + */ +export interface ResponseCodeInterpreterCallCodeDeltaEvent { + /** + * The partial code snippet being streamed by the code interpreter. + */ + delta: string; + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code is being + * streamed. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call_code.delta`. + */ + type: 'response.code_interpreter_call_code.delta'; +} +/** + * Emitted when the code snippet is finalized by the code interpreter. + */ +export interface ResponseCodeInterpreterCallCodeDoneEvent { + /** + * The final code snippet output by the code interpreter. + */ + code: string; + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code is finalized. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call_code.done`. + */ + type: 'response.code_interpreter_call_code.done'; +} +/** + * Emitted when the code interpreter call is completed. + */ +export interface ResponseCodeInterpreterCallCompletedEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter call + * is completed. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.completed`. + */ + type: 'response.code_interpreter_call.completed'; +} +/** + * Emitted when a code interpreter call is in progress. + */ +export interface ResponseCodeInterpreterCallInProgressEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter call + * is in progress. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.in_progress`. + */ + type: 'response.code_interpreter_call.in_progress'; +} +/** + * Emitted when the code interpreter is actively interpreting the code snippet. + */ +export interface ResponseCodeInterpreterCallInterpretingEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter is + * interpreting code. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.interpreting`. + */ + type: 'response.code_interpreter_call.interpreting'; +} +/** + * A tool call to run code. + */ +export interface ResponseCodeInterpreterToolCall { + /** + * The unique ID of the code interpreter tool call. + */ + id: string; + /** + * The code to run, or null if not available. + */ + code: string | null; + /** + * The ID of the container used to run the code. + */ + container_id: string; + /** + * The outputs generated by the code interpreter, such as logs or images. Can be + * null if no outputs are available. + */ + outputs: Array | null; + /** + * The status of the code interpreter tool call. Valid values are `in_progress`, + * `completed`, `incomplete`, `interpreting`, and `failed`. + */ + status: 'in_progress' | 'completed' | 'incomplete' | 'interpreting' | 'failed'; + /** + * The type of the code interpreter tool call. Always `code_interpreter_call`. + */ + type: 'code_interpreter_call'; +} +export declare namespace ResponseCodeInterpreterToolCall { + /** + * The logs output from the code interpreter. + */ + interface Logs { + /** + * The logs output from the code interpreter. + */ + logs: string; + /** + * The type of the output. Always 'logs'. + */ + type: 'logs'; + } + /** + * The image output from the code interpreter. + */ + interface Image { + /** + * The type of the output. Always 'image'. + */ + type: 'image'; + /** + * The URL of the image output from the code interpreter. + */ + url: string; + } +} +/** + * Emitted when the model response is complete. + */ +export interface ResponseCompletedEvent { + /** + * Properties of the completed response. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.completed`. + */ + type: 'response.completed'; +} +/** + * A tool call to a computer use tool. See the + * [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) + * for more information. + */ +export interface ResponseComputerToolCall { + /** + * The unique ID of the computer call. + */ + id: string; + /** + * A click action. + */ + action: ResponseComputerToolCall.Click | ResponseComputerToolCall.DoubleClick | ResponseComputerToolCall.Drag | ResponseComputerToolCall.Keypress | ResponseComputerToolCall.Move | ResponseComputerToolCall.Screenshot | ResponseComputerToolCall.Scroll | ResponseComputerToolCall.Type | ResponseComputerToolCall.Wait; + /** + * An identifier used when responding to the tool call with output. + */ + call_id: string; + /** + * The pending safety checks for the computer call. + */ + pending_safety_checks: Array; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the computer call. Always `computer_call`. + */ + type: 'computer_call'; +} +export declare namespace ResponseComputerToolCall { + /** + * A click action. + */ + interface Click { + /** + * Indicates which mouse button was pressed during the click. One of `left`, + * `right`, `wheel`, `back`, or `forward`. + */ + button: 'left' | 'right' | 'wheel' | 'back' | 'forward'; + /** + * Specifies the event type. For a click action, this property is always set to + * `click`. + */ + type: 'click'; + /** + * The x-coordinate where the click occurred. + */ + x: number; + /** + * The y-coordinate where the click occurred. + */ + y: number; + } + /** + * A double click action. + */ + interface DoubleClick { + /** + * Specifies the event type. For a double click action, this property is always set + * to `double_click`. + */ + type: 'double_click'; + /** + * The x-coordinate where the double click occurred. + */ + x: number; + /** + * The y-coordinate where the double click occurred. + */ + y: number; + } + /** + * A drag action. + */ + interface Drag { + /** + * An array of coordinates representing the path of the drag action. Coordinates + * will appear as an array of objects, eg + * + * ``` + * [ + * { x: 100, y: 200 }, + * { x: 200, y: 300 } + * ] + * ``` + */ + path: Array; + /** + * Specifies the event type. For a drag action, this property is always set to + * `drag`. + */ + type: 'drag'; + } + namespace Drag { + /** + * A series of x/y coordinate pairs in the drag path. + */ + interface Path { + /** + * The x-coordinate. + */ + x: number; + /** + * The y-coordinate. + */ + y: number; + } + } + /** + * A collection of keypresses the model would like to perform. + */ + interface Keypress { + /** + * The combination of keys the model is requesting to be pressed. This is an array + * of strings, each representing a key. + */ + keys: Array; + /** + * Specifies the event type. For a keypress action, this property is always set to + * `keypress`. + */ + type: 'keypress'; + } + /** + * A mouse move action. + */ + interface Move { + /** + * Specifies the event type. For a move action, this property is always set to + * `move`. + */ + type: 'move'; + /** + * The x-coordinate to move to. + */ + x: number; + /** + * The y-coordinate to move to. + */ + y: number; + } + /** + * A screenshot action. + */ + interface Screenshot { + /** + * Specifies the event type. For a screenshot action, this property is always set + * to `screenshot`. + */ + type: 'screenshot'; + } + /** + * A scroll action. + */ + interface Scroll { + /** + * The horizontal scroll distance. + */ + scroll_x: number; + /** + * The vertical scroll distance. + */ + scroll_y: number; + /** + * Specifies the event type. For a scroll action, this property is always set to + * `scroll`. + */ + type: 'scroll'; + /** + * The x-coordinate where the scroll occurred. + */ + x: number; + /** + * The y-coordinate where the scroll occurred. + */ + y: number; + } + /** + * An action to type in text. + */ + interface Type { + /** + * The text to type. + */ + text: string; + /** + * Specifies the event type. For a type action, this property is always set to + * `type`. + */ + type: 'type'; + } + /** + * A wait action. + */ + interface Wait { + /** + * Specifies the event type. For a wait action, this property is always set to + * `wait`. + */ + type: 'wait'; + } + /** + * A pending safety check for the computer call. + */ + interface PendingSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code: string; + /** + * Details about the pending safety check. + */ + message: string; + } +} +export interface ResponseComputerToolCallOutputItem { + /** + * The unique ID of the computer call tool output. + */ + id: string; + /** + * The ID of the computer tool call that produced the output. + */ + call_id: string; + /** + * A computer screenshot image used with the computer use tool. + */ + output: ResponseComputerToolCallOutputScreenshot; + /** + * The type of the computer tool call output. Always `computer_call_output`. + */ + type: 'computer_call_output'; + /** + * The safety checks reported by the API that have been acknowledged by the + * developer. + */ + acknowledged_safety_checks?: Array; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +export declare namespace ResponseComputerToolCallOutputItem { + /** + * A pending safety check for the computer call. + */ + interface AcknowledgedSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code: string; + /** + * Details about the pending safety check. + */ + message: string; + } +} +/** + * A computer screenshot image used with the computer use tool. + */ +export interface ResponseComputerToolCallOutputScreenshot { + /** + * Specifies the event type. For a computer screenshot, this property is always set + * to `computer_screenshot`. + */ + type: 'computer_screenshot'; + /** + * The identifier of an uploaded file that contains the screenshot. + */ + file_id?: string; + /** + * The URL of the screenshot image. + */ + image_url?: string; +} +/** + * Multi-modal input and output contents. + */ +export type ResponseContent = ResponseInputText | ResponseInputImage | ResponseInputFile | ResponseOutputText | ResponseOutputRefusal; +/** + * Emitted when a new content part is added. + */ +export interface ResponseContentPartAddedEvent { + /** + * The index of the content part that was added. + */ + content_index: number; + /** + * The ID of the output item that the content part was added to. + */ + item_id: string; + /** + * The index of the output item that the content part was added to. + */ + output_index: number; + /** + * The content part that was added. + */ + part: ResponseOutputText | ResponseOutputRefusal; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.content_part.added`. + */ + type: 'response.content_part.added'; +} +/** + * Emitted when a content part is done. + */ +export interface ResponseContentPartDoneEvent { + /** + * The index of the content part that is done. + */ + content_index: number; + /** + * The ID of the output item that the content part was added to. + */ + item_id: string; + /** + * The index of the output item that the content part was added to. + */ + output_index: number; + /** + * The content part that is done. + */ + part: ResponseOutputText | ResponseOutputRefusal; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.content_part.done`. + */ + type: 'response.content_part.done'; +} +/** + * The conversation that this response belongs to. + */ +export interface ResponseConversationParam { + /** + * The unique ID of the conversation. + */ + id: string; +} +/** + * An event that is emitted when a response is created. + */ +export interface ResponseCreatedEvent { + /** + * The response that was created. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.created`. + */ + type: 'response.created'; +} +/** + * A call to a custom tool created by the model. + */ +export interface ResponseCustomToolCall { + /** + * An identifier used to map this custom tool call to a tool call output. + */ + call_id: string; + /** + * The input for the custom tool call generated by the model. + */ + input: string; + /** + * The name of the custom tool being called. + */ + name: string; + /** + * The type of the custom tool call. Always `custom_tool_call`. + */ + type: 'custom_tool_call'; + /** + * The unique ID of the custom tool call in the OpenAI platform. + */ + id?: string; +} +/** + * Event representing a delta (partial update) to the input of a custom tool call. + */ +export interface ResponseCustomToolCallInputDeltaEvent { + /** + * The incremental input data (delta) for the custom tool call. + */ + delta: string; + /** + * Unique identifier for the API item associated with this event. + */ + item_id: string; + /** + * The index of the output this delta applies to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The event type identifier. + */ + type: 'response.custom_tool_call_input.delta'; +} +/** + * Event indicating that input for a custom tool call is complete. + */ +export interface ResponseCustomToolCallInputDoneEvent { + /** + * The complete input data for the custom tool call. + */ + input: string; + /** + * Unique identifier for the API item associated with this event. + */ + item_id: string; + /** + * The index of the output this event applies to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The event type identifier. + */ + type: 'response.custom_tool_call_input.done'; +} +/** + * The output of a custom tool call from your code, being sent back to the model. + */ +export interface ResponseCustomToolCallOutput { + /** + * The call ID, used to map this custom tool call output to a custom tool call. + */ + call_id: string; + /** + * The output from the custom tool call generated by your code. + */ + output: string; + /** + * The type of the custom tool call output. Always `custom_tool_call_output`. + */ + type: 'custom_tool_call_output'; + /** + * The unique ID of the custom tool call output in the OpenAI platform. + */ + id?: string; +} +/** + * An error object returned when the model fails to generate a Response. + */ +export interface ResponseError { + /** + * The error code for the response. + */ + code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found'; + /** + * A human-readable description of the error. + */ + message: string; +} +/** + * Emitted when an error occurs. + */ +export interface ResponseErrorEvent { + /** + * The error code. + */ + code: string | null; + /** + * The error message. + */ + message: string; + /** + * The error parameter. + */ + param: string | null; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `error`. + */ + type: 'error'; +} +/** + * An event that is emitted when a response fails. + */ +export interface ResponseFailedEvent { + /** + * The response that failed. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.failed`. + */ + type: 'response.failed'; +} +/** + * Emitted when a file search call is completed (results found). + */ +export interface ResponseFileSearchCallCompletedEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is initiated. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.completed`. + */ + type: 'response.file_search_call.completed'; +} +/** + * Emitted when a file search call is initiated. + */ +export interface ResponseFileSearchCallInProgressEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is initiated. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.in_progress`. + */ + type: 'response.file_search_call.in_progress'; +} +/** + * Emitted when a file search is currently searching. + */ +export interface ResponseFileSearchCallSearchingEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is searching. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.searching`. + */ + type: 'response.file_search_call.searching'; +} +/** + * The results of a file search tool call. See the + * [file search guide](https://platform.openai.com/docs/guides/tools-file-search) + * for more information. + */ +export interface ResponseFileSearchToolCall { + /** + * The unique ID of the file search tool call. + */ + id: string; + /** + * The queries used to search for files. + */ + queries: Array; + /** + * The status of the file search tool call. One of `in_progress`, `searching`, + * `incomplete` or `failed`, + */ + status: 'in_progress' | 'searching' | 'completed' | 'incomplete' | 'failed'; + /** + * The type of the file search tool call. Always `file_search_call`. + */ + type: 'file_search_call'; + /** + * The results of the file search tool call. + */ + results?: Array | null; +} +export declare namespace ResponseFileSearchToolCall { + interface Result { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The unique ID of the file. + */ + file_id?: string; + /** + * The name of the file. + */ + filename?: string; + /** + * The relevance score of the file - a value between 0 and 1. + */ + score?: number; + /** + * The text that was retrieved from the file. + */ + text?: string; + } +} +/** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ +export type ResponseFormatTextConfig = Shared.ResponseFormatText | ResponseFormatTextJSONSchemaConfig | Shared.ResponseFormatJSONObject; +/** + * JSON Schema response format. Used to generate structured JSON responses. Learn + * more about + * [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). + */ +export interface ResponseFormatTextJSONSchemaConfig { + /** + * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores + * and dashes, with a maximum length of 64. + */ + name: string; + /** + * The schema for the response format, described as a JSON Schema object. Learn how + * to build JSON schemas [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of response format being defined. Always `json_schema`. + */ + type: 'json_schema'; + /** + * A description of what the response format is for, used by the model to determine + * how to respond in the format. + */ + description?: string; + /** + * Whether to enable strict schema adherence when generating the output. If set to + * true, the model will always follow the exact schema defined in the `schema` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. To + * learn more, read the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + */ + strict?: boolean | null; +} +/** + * Emitted when there is a partial function-call arguments delta. + */ +export interface ResponseFunctionCallArgumentsDeltaEvent { + /** + * The function-call arguments delta that is added. + */ + delta: string; + /** + * The ID of the output item that the function-call arguments delta is added to. + */ + item_id: string; + /** + * The index of the output item that the function-call arguments delta is added to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.function_call_arguments.delta`. + */ + type: 'response.function_call_arguments.delta'; +} +/** + * Emitted when function-call arguments are finalized. + */ +export interface ResponseFunctionCallArgumentsDoneEvent { + /** + * The function-call arguments. + */ + arguments: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + type: 'response.function_call_arguments.done'; +} +/** + * A tool call to run a function. See the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling) + * for more information. + */ +export interface ResponseFunctionToolCall { + /** + * A JSON string of the arguments to pass to the function. + */ + arguments: string; + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * The name of the function to run. + */ + name: string; + /** + * The type of the function tool call. Always `function_call`. + */ + type: 'function_call'; + /** + * The unique ID of the function tool call. + */ + id?: string; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +/** + * A tool call to run a function. See the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling) + * for more information. + */ +export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall { + /** + * The unique ID of the function tool call. + */ + id: string; +} +export interface ResponseFunctionToolCallOutputItem { + /** + * The unique ID of the function call tool output. + */ + id: string; + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * A JSON string of the output of the function tool call. + */ + output: string; + /** + * The type of the function tool call output. Always `function_call_output`. + */ + type: 'function_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +/** + * The results of a web search tool call. See the + * [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for + * more information. + */ +export interface ResponseFunctionWebSearch { + /** + * The unique ID of the web search tool call. + */ + id: string; + /** + * The status of the web search tool call. + */ + status: 'in_progress' | 'searching' | 'completed' | 'failed'; + /** + * The type of the web search tool call. Always `web_search_call`. + */ + type: 'web_search_call'; +} +export declare namespace ResponseFunctionWebSearch { + /** + * Action type "search" - Performs a web search query. + */ + interface Search { + /** + * The search query. + */ + query: string; + /** + * The action type. + */ + type: 'search'; + /** + * The sources used in the search. + */ + sources?: Array; + } + namespace Search { + /** + * A source used in the search. + */ + interface Source { + /** + * The type of source. Always `url`. + */ + type: 'url'; + /** + * The URL of the source. + */ + url: string; + } + } + /** + * Action type "open_page" - Opens a specific URL from search results. + */ + interface OpenPage { + /** + * The action type. + */ + type: 'open_page'; + /** + * The URL opened by the model. + */ + url: string; + } + /** + * Action type "find": Searches for a pattern within a loaded page. + */ + interface Find { + /** + * The pattern or text to search for within the page. + */ + pattern: string; + /** + * The action type. + */ + type: 'find'; + /** + * The URL of the page searched for the pattern. + */ + url: string; + } +} +/** + * Emitted when an image generation tool call has completed and the final image is + * available. + */ +export interface ResponseImageGenCallCompletedEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.completed'. + */ + type: 'response.image_generation_call.completed'; +} +/** + * Emitted when an image generation tool call is actively generating an image + * (intermediate state). + */ +export interface ResponseImageGenCallGeneratingEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.generating'. + */ + type: 'response.image_generation_call.generating'; +} +/** + * Emitted when an image generation tool call is in progress. + */ +export interface ResponseImageGenCallInProgressEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.in_progress'. + */ + type: 'response.image_generation_call.in_progress'; +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export interface ResponseImageGenCallPartialImageEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + partial_image_b64: string; + /** + * 0-based index for the partial image (backend is 1-based, but this is 0-based for + * the user). + */ + partial_image_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.partial_image'. + */ + type: 'response.image_generation_call.partial_image'; +} +/** + * Emitted when the response is in progress. + */ +export interface ResponseInProgressEvent { + /** + * The response that is in progress. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.in_progress`. + */ + type: 'response.in_progress'; +} +/** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + */ +export type ResponseIncludable = 'file_search_call.results' | 'message.input_image.image_url' | 'computer_call_output.output.image_url' | 'reasoning.encrypted_content' | 'code_interpreter_call.outputs'; +/** + * An event that is emitted when a response finishes as incomplete. + */ +export interface ResponseIncompleteEvent { + /** + * The response that was incomplete. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.incomplete`. + */ + type: 'response.incomplete'; +} +/** + * A list of one or many input items to the model, containing different content + * types. + */ +export type ResponseInput = Array; +/** + * An audio input to the model. + */ +export interface ResponseInputAudio { + /** + * Base64-encoded audio data. + */ + data: string; + /** + * The format of the audio data. Currently supported formats are `mp3` and `wav`. + */ + format: 'mp3' | 'wav'; + /** + * The type of the input item. Always `input_audio`. + */ + type: 'input_audio'; +} +/** + * A text input to the model. + */ +export type ResponseInputContent = ResponseInputText | ResponseInputImage | ResponseInputFile; +/** + * A file input to the model. + */ +export interface ResponseInputFile { + /** + * The type of the input item. Always `input_file`. + */ + type: 'input_file'; + /** + * The content of the file to be sent to the model. + */ + file_data?: string; + /** + * The ID of the file to be sent to the model. + */ + file_id?: string | null; + /** + * The URL of the file to be sent to the model. + */ + file_url?: string; + /** + * The name of the file to be sent to the model. + */ + filename?: string; +} +/** + * An image input to the model. Learn about + * [image inputs](https://platform.openai.com/docs/guides/vision). + */ +export interface ResponseInputImage { + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail: 'low' | 'high' | 'auto'; + /** + * The type of the input item. Always `input_image`. + */ + type: 'input_image'; + /** + * The ID of the file to be sent to the model. + */ + file_id?: string | null; + /** + * The URL of the image to be sent to the model. A fully qualified URL or base64 + * encoded image in a data URL. + */ + image_url?: string | null; +} +/** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ +export type ResponseInputItem = EasyInputMessage | ResponseInputItem.Message | ResponseOutputMessage | ResponseFileSearchToolCall | ResponseComputerToolCall | ResponseInputItem.ComputerCallOutput | ResponseFunctionWebSearch | ResponseFunctionToolCall | ResponseInputItem.FunctionCallOutput | ResponseReasoningItem | ResponseInputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseInputItem.LocalShellCall | ResponseInputItem.LocalShellCallOutput | ResponseInputItem.McpListTools | ResponseInputItem.McpApprovalRequest | ResponseInputItem.McpApprovalResponse | ResponseInputItem.McpCall | ResponseCustomToolCallOutput | ResponseCustomToolCall | ResponseInputItem.ItemReference; +export declare namespace ResponseInputItem { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. + */ + interface Message { + /** + * A list of one or many input items to the model, containing different content + * types. + */ + content: ResponsesAPI.ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `system`, or `developer`. + */ + role: 'user' | 'system' | 'developer'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message input. Always set to `message`. + */ + type?: 'message'; + } + /** + * The output of a computer tool call. + */ + interface ComputerCallOutput { + /** + * The ID of the computer tool call that produced the output. + */ + call_id: string; + /** + * A computer screenshot image used with the computer use tool. + */ + output: ResponsesAPI.ResponseComputerToolCallOutputScreenshot; + /** + * The type of the computer tool call output. Always `computer_call_output`. + */ + type: 'computer_call_output'; + /** + * The ID of the computer tool call output. + */ + id?: string | null; + /** + * The safety checks reported by the API that have been acknowledged by the + * developer. + */ + acknowledged_safety_checks?: Array | null; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + namespace ComputerCallOutput { + /** + * A pending safety check for the computer call. + */ + interface AcknowledgedSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code?: string | null; + /** + * Details about the pending safety check. + */ + message?: string | null; + } + } + /** + * The output of a function tool call. + */ + interface FunctionCallOutput { + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * A JSON string of the output of the function tool call. + */ + output: string; + /** + * The type of the function tool call output. Always `function_call_output`. + */ + type: 'function_call_output'; + /** + * The unique ID of the function tool call output. Populated when this item is + * returned via API. + */ + id?: string | null; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * The unique ID of the approval response + */ + id?: string | null; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } + /** + * An internal identifier for an item to reference. + */ + interface ItemReference { + /** + * The ID of the item to reference. + */ + id: string; + /** + * The type of item to reference. Always `item_reference`. + */ + type?: 'item_reference' | null; + } +} +/** + * A list of one or many input items to the model, containing different content + * types. + */ +export type ResponseInputMessageContentList = Array; +export interface ResponseInputMessageItem { + /** + * The unique ID of the message input. + */ + id: string; + /** + * A list of one or many input items to the model, containing different content + * types. + */ + content: ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `system`, or `developer`. + */ + role: 'user' | 'system' | 'developer'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message input. Always set to `message`. + */ + type?: 'message'; +} +/** + * A text input to the model. + */ +export interface ResponseInputText { + /** + * The text input to the model. + */ + text: string; + /** + * The type of the input item. Always `input_text`. + */ + type: 'input_text'; +} +/** + * Content item used to generate a response. + */ +export type ResponseItem = ResponseInputMessageItem | ResponseOutputMessage | ResponseFileSearchToolCall | ResponseComputerToolCall | ResponseComputerToolCallOutputItem | ResponseFunctionWebSearch | ResponseFunctionToolCallItem | ResponseFunctionToolCallOutputItem | ResponseItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseItem.LocalShellCall | ResponseItem.LocalShellCallOutput | ResponseItem.McpListTools | ResponseItem.McpApprovalRequest | ResponseItem.McpApprovalResponse | ResponseItem.McpCall; +export declare namespace ResponseItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The unique ID of the approval response + */ + id: string; + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } +} +/** + * Emitted when there is a delta (partial update) to the arguments of an MCP tool + * call. + */ +export interface ResponseMcpCallArgumentsDeltaEvent { + /** + * A JSON string containing the partial update to the arguments for the MCP tool + * call. + */ + delta: string; + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call_arguments.delta'. + */ + type: 'response.mcp_call_arguments.delta'; +} +/** + * Emitted when the arguments for an MCP tool call are finalized. + */ +export interface ResponseMcpCallArgumentsDoneEvent { + /** + * A JSON string containing the finalized arguments for the MCP tool call. + */ + arguments: string; + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call_arguments.done'. + */ + type: 'response.mcp_call_arguments.done'; +} +/** + * Emitted when an MCP tool call has completed successfully. + */ +export interface ResponseMcpCallCompletedEvent { + /** + * The ID of the MCP tool call item that completed. + */ + item_id: string; + /** + * The index of the output item that completed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.completed'. + */ + type: 'response.mcp_call.completed'; +} +/** + * Emitted when an MCP tool call has failed. + */ +export interface ResponseMcpCallFailedEvent { + /** + * The ID of the MCP tool call item that failed. + */ + item_id: string; + /** + * The index of the output item that failed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.failed'. + */ + type: 'response.mcp_call.failed'; +} +/** + * Emitted when an MCP tool call is in progress. + */ +export interface ResponseMcpCallInProgressEvent { + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.in_progress'. + */ + type: 'response.mcp_call.in_progress'; +} +/** + * Emitted when the list of available MCP tools has been successfully retrieved. + */ +export interface ResponseMcpListToolsCompletedEvent { + /** + * The ID of the MCP tool call item that produced this output. + */ + item_id: string; + /** + * The index of the output item that was processed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.completed'. + */ + type: 'response.mcp_list_tools.completed'; +} +/** + * Emitted when the attempt to list available MCP tools has failed. + */ +export interface ResponseMcpListToolsFailedEvent { + /** + * The ID of the MCP tool call item that failed. + */ + item_id: string; + /** + * The index of the output item that failed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.failed'. + */ + type: 'response.mcp_list_tools.failed'; +} +/** + * Emitted when the system is in the process of retrieving the list of available + * MCP tools. + */ +export interface ResponseMcpListToolsInProgressEvent { + /** + * The ID of the MCP tool call item that is being processed. + */ + item_id: string; + /** + * The index of the output item that is being processed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.in_progress'. + */ + type: 'response.mcp_list_tools.in_progress'; +} +/** + * An audio output from the model. + */ +export interface ResponseOutputAudio { + /** + * Base64-encoded audio data from the model. + */ + data: string; + /** + * The transcript of the audio data from the model. + */ + transcript: string; + /** + * The type of the output audio. Always `output_audio`. + */ + type: 'output_audio'; +} +/** + * An output message from the model. + */ +export type ResponseOutputItem = ResponseOutputMessage | ResponseFileSearchToolCall | ResponseFunctionToolCall | ResponseFunctionWebSearch | ResponseComputerToolCall | ResponseReasoningItem | ResponseOutputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseOutputItem.LocalShellCall | ResponseOutputItem.McpCall | ResponseOutputItem.McpListTools | ResponseOutputItem.McpApprovalRequest | ResponseCustomToolCall; +export declare namespace ResponseOutputItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } +} +/** + * Emitted when a new output item is added. + */ +export interface ResponseOutputItemAddedEvent { + /** + * The output item that was added. + */ + item: ResponseOutputItem; + /** + * The index of the output item that was added. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_item.added`. + */ + type: 'response.output_item.added'; +} +/** + * Emitted when an output item is marked done. + */ +export interface ResponseOutputItemDoneEvent { + /** + * The output item that was marked done. + */ + item: ResponseOutputItem; + /** + * The index of the output item that was marked done. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_item.done`. + */ + type: 'response.output_item.done'; +} +/** + * An output message from the model. + */ +export interface ResponseOutputMessage { + /** + * The unique ID of the output message. + */ + id: string; + /** + * The content of the output message. + */ + content: Array; + /** + * The role of the output message. Always `assistant`. + */ + role: 'assistant'; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the output message. Always `message`. + */ + type: 'message'; +} +/** + * A refusal from the model. + */ +export interface ResponseOutputRefusal { + /** + * The refusal explanation from the model. + */ + refusal: string; + /** + * The type of the refusal. Always `refusal`. + */ + type: 'refusal'; +} +/** + * A text output from the model. + */ +export interface ResponseOutputText { + /** + * The annotations of the text output. + */ + annotations: Array; + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + logprobs?: Array; +} +export declare namespace ResponseOutputText { + /** + * A citation to a file. + */ + interface FileCitation { + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the file cited. + */ + filename: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file citation. Always `file_citation`. + */ + type: 'file_citation'; + } + /** + * A citation for a web resource used to generate a model response. + */ + interface URLCitation { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * The URL of the web resource. + */ + url: string; + } + /** + * A citation for a container file used to generate a model response. + */ + interface ContainerFileCitation { + /** + * The ID of the container file. + */ + container_id: string; + /** + * The index of the last character of the container file citation in the message. + */ + end_index: number; + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the container file cited. + */ + filename: string; + /** + * The index of the first character of the container file citation in the message. + */ + start_index: number; + /** + * The type of the container file citation. Always `container_file_citation`. + */ + type: 'container_file_citation'; + } + /** + * A path to a file. + */ + interface FilePath { + /** + * The ID of the file. + */ + file_id: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file path. Always `file_path`. + */ + type: 'file_path'; + } + /** + * The log probability of a token. + */ + interface Logprob { + token: string; + bytes: Array; + logprob: number; + top_logprobs: Array; + } + namespace Logprob { + /** + * The top log probability of a token. + */ + interface TopLogprob { + token: string; + bytes: Array; + logprob: number; + } + } +} +/** + * Emitted when an annotation is added to output text content. + */ +export interface ResponseOutputTextAnnotationAddedEvent { + /** + * The annotation object being added. (See annotation schema for details.) + */ + annotation: unknown; + /** + * The index of the annotation within the content part. + */ + annotation_index: number; + /** + * The index of the content part within the output item. + */ + content_index: number; + /** + * The unique identifier of the item to which the annotation is being added. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.output_text.annotation.added'. + */ + type: 'response.output_text.annotation.added'; +} +/** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ +export interface ResponsePrompt { + /** + * The unique identifier of the prompt template to use. + */ + id: string; + /** + * Optional map of values to substitute in for variables in your prompt. The + * substitution values can either be strings, or other Response input types like + * images or files. + */ + variables?: { + [key: string]: string | ResponseInputText | ResponseInputImage | ResponseInputFile; + } | null; + /** + * Optional version of the prompt template. + */ + version?: string | null; +} +/** + * Emitted when a response is queued and waiting to be processed. + */ +export interface ResponseQueuedEvent { + /** + * The full response object that is queued. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.queued'. + */ + type: 'response.queued'; +} +/** + * A description of the chain of thought used by a reasoning model while generating + * a response. Be sure to include these items in your `input` to the Responses API + * for subsequent turns of a conversation if you are manually + * [managing context](https://platform.openai.com/docs/guides/conversation-state). + */ +export interface ResponseReasoningItem { + /** + * The unique identifier of the reasoning content. + */ + id: string; + /** + * Reasoning summary content. + */ + summary: Array; + /** + * The type of the object. Always `reasoning`. + */ + type: 'reasoning'; + /** + * Reasoning text content. + */ + content?: Array; + /** + * The encrypted content of the reasoning item - populated when a response is + * generated with `reasoning.encrypted_content` in the `include` parameter. + */ + encrypted_content?: string | null; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +export declare namespace ResponseReasoningItem { + interface Summary { + /** + * A summary of the reasoning output from the model so far. + */ + text: string; + /** + * The type of the object. Always `summary_text`. + */ + type: 'summary_text'; + } + interface Content { + /** + * Reasoning text output from the model. + */ + text: string; + /** + * The type of the object. Always `reasoning_text`. + */ + type: 'reasoning_text'; + } +} +/** + * Emitted when a new reasoning summary part is added. + */ +export interface ResponseReasoningSummaryPartAddedEvent { + /** + * The ID of the item this summary part is associated with. + */ + item_id: string; + /** + * The index of the output item this summary part is associated with. + */ + output_index: number; + /** + * The summary part that was added. + */ + part: ResponseReasoningSummaryPartAddedEvent.Part; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_part.added`. + */ + type: 'response.reasoning_summary_part.added'; +} +export declare namespace ResponseReasoningSummaryPartAddedEvent { + /** + * The summary part that was added. + */ + interface Part { + /** + * The text of the summary part. + */ + text: string; + /** + * The type of the summary part. Always `summary_text`. + */ + type: 'summary_text'; + } +} +/** + * Emitted when a reasoning summary part is completed. + */ +export interface ResponseReasoningSummaryPartDoneEvent { + /** + * The ID of the item this summary part is associated with. + */ + item_id: string; + /** + * The index of the output item this summary part is associated with. + */ + output_index: number; + /** + * The completed summary part. + */ + part: ResponseReasoningSummaryPartDoneEvent.Part; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_part.done`. + */ + type: 'response.reasoning_summary_part.done'; +} +export declare namespace ResponseReasoningSummaryPartDoneEvent { + /** + * The completed summary part. + */ + interface Part { + /** + * The text of the summary part. + */ + text: string; + /** + * The type of the summary part. Always `summary_text`. + */ + type: 'summary_text'; + } +} +/** + * Emitted when a delta is added to a reasoning summary text. + */ +export interface ResponseReasoningSummaryTextDeltaEvent { + /** + * The text delta that was added to the summary. + */ + delta: string; + /** + * The ID of the item this summary text delta is associated with. + */ + item_id: string; + /** + * The index of the output item this summary text delta is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_text.delta`. + */ + type: 'response.reasoning_summary_text.delta'; +} +/** + * Emitted when a reasoning summary text is completed. + */ +export interface ResponseReasoningSummaryTextDoneEvent { + /** + * The ID of the item this summary text is associated with. + */ + item_id: string; + /** + * The index of the output item this summary text is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The full text of the completed reasoning summary. + */ + text: string; + /** + * The type of the event. Always `response.reasoning_summary_text.done`. + */ + type: 'response.reasoning_summary_text.done'; +} +/** + * Emitted when a delta is added to a reasoning text. + */ +export interface ResponseReasoningTextDeltaEvent { + /** + * The index of the reasoning content part this delta is associated with. + */ + content_index: number; + /** + * The text delta that was added to the reasoning content. + */ + delta: string; + /** + * The ID of the item this reasoning text delta is associated with. + */ + item_id: string; + /** + * The index of the output item this reasoning text delta is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.reasoning_text.delta`. + */ + type: 'response.reasoning_text.delta'; +} +/** + * Emitted when a reasoning text is completed. + */ +export interface ResponseReasoningTextDoneEvent { + /** + * The index of the reasoning content part. + */ + content_index: number; + /** + * The ID of the item this reasoning text is associated with. + */ + item_id: string; + /** + * The index of the output item this reasoning text is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The full text of the completed reasoning content. + */ + text: string; + /** + * The type of the event. Always `response.reasoning_text.done`. + */ + type: 'response.reasoning_text.done'; +} +/** + * Emitted when there is a partial refusal text. + */ +export interface ResponseRefusalDeltaEvent { + /** + * The index of the content part that the refusal text is added to. + */ + content_index: number; + /** + * The refusal text that is added. + */ + delta: string; + /** + * The ID of the output item that the refusal text is added to. + */ + item_id: string; + /** + * The index of the output item that the refusal text is added to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.refusal.delta`. + */ + type: 'response.refusal.delta'; +} +/** + * Emitted when refusal text is finalized. + */ +export interface ResponseRefusalDoneEvent { + /** + * The index of the content part that the refusal text is finalized. + */ + content_index: number; + /** + * The ID of the output item that the refusal text is finalized. + */ + item_id: string; + /** + * The index of the output item that the refusal text is finalized. + */ + output_index: number; + /** + * The refusal text that is finalized. + */ + refusal: string; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.refusal.done`. + */ + type: 'response.refusal.done'; +} +/** + * The status of the response generation. One of `completed`, `failed`, + * `in_progress`, `cancelled`, `queued`, or `incomplete`. + */ +export type ResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete'; +/** + * Emitted when there is a partial audio response. + */ +export type ResponseStreamEvent = ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseCodeInterpreterCallCodeDeltaEvent | ResponseCodeInterpreterCallCodeDoneEvent | ResponseCodeInterpreterCallCompletedEvent | ResponseCodeInterpreterCallInProgressEvent | ResponseCodeInterpreterCallInterpretingEvent | ResponseCompletedEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFileSearchCallCompletedEvent | ResponseFileSearchCallInProgressEvent | ResponseFileSearchCallSearchingEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseInProgressEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseReasoningSummaryPartAddedEvent | ResponseReasoningSummaryPartDoneEvent | ResponseReasoningSummaryTextDeltaEvent | ResponseReasoningSummaryTextDoneEvent | ResponseReasoningTextDeltaEvent | ResponseReasoningTextDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | ResponseWebSearchCallCompletedEvent | ResponseWebSearchCallInProgressEvent | ResponseWebSearchCallSearchingEvent | ResponseImageGenCallCompletedEvent | ResponseImageGenCallGeneratingEvent | ResponseImageGenCallInProgressEvent | ResponseImageGenCallPartialImageEvent | ResponseMcpCallArgumentsDeltaEvent | ResponseMcpCallArgumentsDoneEvent | ResponseMcpCallCompletedEvent | ResponseMcpCallFailedEvent | ResponseMcpCallInProgressEvent | ResponseMcpListToolsCompletedEvent | ResponseMcpListToolsFailedEvent | ResponseMcpListToolsInProgressEvent | ResponseOutputTextAnnotationAddedEvent | ResponseQueuedEvent | ResponseCustomToolCallInputDeltaEvent | ResponseCustomToolCallInputDoneEvent; +/** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ +export interface ResponseTextConfig { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponseFormatTextConfig; + /** + * Constrains the verbosity of the model's response. Lower values will result in + * more concise responses, while higher values will result in more verbose + * responses. Currently supported values are `low`, `medium`, and `high`. + */ + verbosity?: 'low' | 'medium' | 'high' | null; +} +/** + * Emitted when there is an additional text delta. + */ +export interface ResponseTextDeltaEvent { + /** + * The index of the content part that the text delta was added to. + */ + content_index: number; + /** + * The text delta that was added. + */ + delta: string; + /** + * The ID of the output item that the text delta was added to. + */ + item_id: string; + /** + * The log probabilities of the tokens in the delta. + */ + logprobs: Array; + /** + * The index of the output item that the text delta was added to. + */ + output_index: number; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_text.delta`. + */ + type: 'response.output_text.delta'; +} +export declare namespace ResponseTextDeltaEvent { + /** + * A logprob is the logarithmic probability that the model assigns to producing a + * particular token at a given position in the sequence. Less-negative (higher) + * logprob values indicate greater model confidence in that token choice. + */ + interface Logprob { + /** + * A possible text token. + */ + token: string; + /** + * The log probability of this token. + */ + logprob: number; + /** + * The log probability of the top 20 most likely tokens. + */ + top_logprobs?: Array; + } + namespace Logprob { + interface TopLogprob { + /** + * A possible text token. + */ + token?: string; + /** + * The log probability of this token. + */ + logprob?: number; + } + } +} +/** + * Emitted when text content is finalized. + */ +export interface ResponseTextDoneEvent { + /** + * The index of the content part that the text content is finalized. + */ + content_index: number; + /** + * The ID of the output item that the text content is finalized. + */ + item_id: string; + /** + * The log probabilities of the tokens in the delta. + */ + logprobs: Array; + /** + * The index of the output item that the text content is finalized. + */ + output_index: number; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The text content that is finalized. + */ + text: string; + /** + * The type of the event. Always `response.output_text.done`. + */ + type: 'response.output_text.done'; +} +export declare namespace ResponseTextDoneEvent { + /** + * A logprob is the logarithmic probability that the model assigns to producing a + * particular token at a given position in the sequence. Less-negative (higher) + * logprob values indicate greater model confidence in that token choice. + */ + interface Logprob { + /** + * A possible text token. + */ + token: string; + /** + * The log probability of this token. + */ + logprob: number; + /** + * The log probability of the top 20 most likely tokens. + */ + top_logprobs?: Array; + } + namespace Logprob { + interface TopLogprob { + /** + * A possible text token. + */ + token?: string; + /** + * The log probability of this token. + */ + logprob?: number; + } + } +} +/** + * Represents token usage details including input tokens, output tokens, a + * breakdown of output tokens, and the total tokens used. + */ +export interface ResponseUsage { + /** + * The number of input tokens. + */ + input_tokens: number; + /** + * A detailed breakdown of the input tokens. + */ + input_tokens_details: ResponseUsage.InputTokensDetails; + /** + * The number of output tokens. + */ + output_tokens: number; + /** + * A detailed breakdown of the output tokens. + */ + output_tokens_details: ResponseUsage.OutputTokensDetails; + /** + * The total number of tokens used. + */ + total_tokens: number; +} +export declare namespace ResponseUsage { + /** + * A detailed breakdown of the input tokens. + */ + interface InputTokensDetails { + /** + * The number of tokens that were retrieved from the cache. + * [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching). + */ + cached_tokens: number; + } + /** + * A detailed breakdown of the output tokens. + */ + interface OutputTokensDetails { + /** + * The number of reasoning tokens. + */ + reasoning_tokens: number; + } +} +/** + * Emitted when a web search call is completed. + */ +export interface ResponseWebSearchCallCompletedEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.completed`. + */ + type: 'response.web_search_call.completed'; +} +/** + * Emitted when a web search call is initiated. + */ +export interface ResponseWebSearchCallInProgressEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.in_progress`. + */ + type: 'response.web_search_call.in_progress'; +} +/** + * Emitted when a web search call is executing. + */ +export interface ResponseWebSearchCallSearchingEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.searching`. + */ + type: 'response.web_search_call.searching'; +} +/** + * A tool that can be used to generate a response. + */ +export type Tool = FunctionTool | FileSearchTool | ComputerTool | Tool.WebSearchTool | Tool.Mcp | Tool.CodeInterpreter | Tool.ImageGeneration | Tool.LocalShell | CustomTool | WebSearchTool; +export declare namespace Tool { + /** + * Search the Internet for sources related to the prompt. Learn more about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search). + */ + interface WebSearchTool { + /** + * The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. + */ + type: 'web_search' | 'web_search_2025_08_26'; + /** + * Filters for the search. + */ + filters?: WebSearchTool.Filters | null; + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * The approximate location of the user. + */ + user_location?: WebSearchTool.UserLocation | null; + } + namespace WebSearchTool { + /** + * Filters for the search. + */ + interface Filters { + /** + * Allowed domains for the search. If not provided, all domains are allowed. + * Subdomains of the provided domains are allowed as well. + * + * Example: `["pubmed.ncbi.nlm.nih.gov"]` + */ + allowed_domains?: Array | null; + } + /** + * The approximate location of the user. + */ + interface UserLocation { + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string | null; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string | null; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string | null; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string | null; + /** + * The type of location approximation. Always `approximate`. + */ + type?: 'approximate'; + } + } + /** + * Give the model access to additional tools via remote Model Context Protocol + * (MCP) servers. + * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp). + */ + interface Mcp { + /** + * A label for this MCP server, used to identify it in tool calls. + */ + server_label: string; + /** + * The type of the MCP tool. Always `mcp`. + */ + type: 'mcp'; + /** + * List of allowed tool names or a filter object. + */ + allowed_tools?: Array | Mcp.McpToolFilter | null; + /** + * An OAuth access token that can be used with a remote MCP server, either with a + * custom MCP server URL or a service connector. Your application must handle the + * OAuth authorization flow and provide the token here. + */ + authorization?: string; + /** + * Identifier for service connectors, like those available in ChatGPT. One of + * `server_url` or `connector_id` must be provided. Learn more about service + * connectors + * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors). + * + * Currently supported `connector_id` values are: + * + * - Dropbox: `connector_dropbox` + * - Gmail: `connector_gmail` + * - Google Calendar: `connector_googlecalendar` + * - Google Drive: `connector_googledrive` + * - Microsoft Teams: `connector_microsoftteams` + * - Outlook Calendar: `connector_outlookcalendar` + * - Outlook Email: `connector_outlookemail` + * - SharePoint: `connector_sharepoint` + */ + connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint'; + /** + * Optional HTTP headers to send to the MCP server. Use for authentication or other + * purposes. + */ + headers?: { + [key: string]: string; + } | null; + /** + * Specify which of the MCP server's tools require approval. + */ + require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null; + /** + * Optional description of the MCP server, used to provide more context. + */ + server_description?: string; + /** + * The URL for the MCP server. One of `server_url` or `connector_id` must be + * provided. + */ + server_url?: string; + } + namespace Mcp { + /** + * A filter object to specify which tools are allowed. + */ + interface McpToolFilter { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + /** + * Specify which of the MCP server's tools require approval. Can be `always`, + * `never`, or a filter object associated with tools that require approval. + */ + interface McpToolApprovalFilter { + /** + * A filter object to specify which tools are allowed. + */ + always?: McpToolApprovalFilter.Always; + /** + * A filter object to specify which tools are allowed. + */ + never?: McpToolApprovalFilter.Never; + } + namespace McpToolApprovalFilter { + /** + * A filter object to specify which tools are allowed. + */ + interface Always { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + /** + * A filter object to specify which tools are allowed. + */ + interface Never { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + } + } + /** + * A tool that runs Python code to help generate a response to a prompt. + */ + interface CodeInterpreter { + /** + * The code interpreter container. Can be a container ID or an object that + * specifies uploaded file IDs to make available to your code. + */ + container: string | CodeInterpreter.CodeInterpreterToolAuto; + /** + * The type of the code interpreter tool. Always `code_interpreter`. + */ + type: 'code_interpreter'; + } + namespace CodeInterpreter { + /** + * Configuration for a code interpreter container. Optionally specify the IDs of + * the files to run the code on. + */ + interface CodeInterpreterToolAuto { + /** + * Always `auto`. + */ + type: 'auto'; + /** + * An optional list of uploaded files to make available to your code. + */ + file_ids?: Array; + } + } + /** + * A tool that generates images using a model like `gpt-image-1`. + */ + interface ImageGeneration { + /** + * The type of the image generation tool. Always `image_generation`. + */ + type: 'image_generation'; + /** + * Background type for the generated image. One of `transparent`, `opaque`, or + * `auto`. Default: `auto`. + */ + background?: 'transparent' | 'opaque' | 'auto'; + /** + * Control how much effort the model will exert to match the style and features, + * especially facial features, of input images. This parameter is only supported + * for `gpt-image-1`. Supports `high` and `low`. Defaults to `low`. + */ + input_fidelity?: 'high' | 'low' | null; + /** + * Optional mask for inpainting. Contains `image_url` (string, optional) and + * `file_id` (string, optional). + */ + input_image_mask?: ImageGeneration.InputImageMask; + /** + * The image generation model to use. Default: `gpt-image-1`. + */ + model?: 'gpt-image-1'; + /** + * Moderation level for the generated image. Default: `auto`. + */ + moderation?: 'auto' | 'low'; + /** + * Compression level for the output image. Default: 100. + */ + output_compression?: number; + /** + * The output format of the generated image. One of `png`, `webp`, or `jpeg`. + * Default: `png`. + */ + output_format?: 'png' | 'webp' | 'jpeg'; + /** + * Number of partial images to generate in streaming mode, from 0 (default value) + * to 3. + */ + partial_images?: number; + /** + * The quality of the generated image. One of `low`, `medium`, `high`, or `auto`. + * Default: `auto`. + */ + quality?: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the generated image. One of `1024x1024`, `1024x1536`, `1536x1024`, + * or `auto`. Default: `auto`. + */ + size?: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + } + namespace ImageGeneration { + /** + * Optional mask for inpainting. Contains `image_url` (string, optional) and + * `file_id` (string, optional). + */ + interface InputImageMask { + /** + * File ID for the mask image. + */ + file_id?: string; + /** + * Base64-encoded mask image. + */ + image_url?: string; + } + } + /** + * A tool that allows the model to execute shell commands in a local environment. + */ + interface LocalShell { + /** + * The type of the local shell tool. Always `local_shell`. + */ + type: 'local_shell'; + } +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ToolChoiceAllowed { + /** + * Constrains the tools available to the model to a pre-defined set. + * + * `auto` allows the model to pick from among the allowed tools and generate a + * message. + * + * `required` requires the model to call one or more of the allowed tools. + */ + mode: 'auto' | 'required'; + /** + * A list of tool definitions that the model should be allowed to call. + * + * For the Responses API, the list of tool definitions might look like: + * + * ```json + * [ + * { "type": "function", "name": "get_weather" }, + * { "type": "mcp", "server_label": "deepwiki" }, + * { "type": "image_generation" } + * ] + * ``` + */ + tools: Array<{ + [key: string]: unknown; + }>; + /** + * Allowed tool configuration type. Always `allowed_tools`. + */ + type: 'allowed_tools'; +} +/** + * Use this option to force the model to call a specific custom tool. + */ +export interface ToolChoiceCustom { + /** + * The name of the custom tool to call. + */ + name: string; + /** + * For custom tool calling, the type is always `custom`. + */ + type: 'custom'; +} +/** + * Use this option to force the model to call a specific function. + */ +export interface ToolChoiceFunction { + /** + * The name of the function to call. + */ + name: string; + /** + * For function calling, the type is always `function`. + */ + type: 'function'; +} +/** + * Use this option to force the model to call a specific tool on a remote MCP + * server. + */ +export interface ToolChoiceMcp { + /** + * The label of the MCP server to use. + */ + server_label: string; + /** + * For MCP tools, the type is always `mcp`. + */ + type: 'mcp'; + /** + * The name of the tool to call on the server. + */ + name?: string | null; +} +/** + * Controls which (if any) tool is called by the model. + * + * `none` means the model will not call any tool and instead generates a message. + * + * `auto` means the model can pick between generating a message or calling one or + * more tools. + * + * `required` means the model must call one or more tools. + */ +export type ToolChoiceOptions = 'none' | 'auto' | 'required'; +/** + * Indicates that the model should use a built-in tool to generate a response. + * [Learn more about built-in tools](https://platform.openai.com/docs/guides/tools). + */ +export interface ToolChoiceTypes { + /** + * The type of hosted tool the model should to use. Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * + * Allowed values are: + * + * - `file_search` + * - `web_search_preview` + * - `computer_use_preview` + * - `code_interpreter` + * - `mcp` + * - `image_generation` + */ + type: 'file_search' | 'web_search_preview' | 'computer_use_preview' | 'web_search_preview_2025_03_11' | 'image_generation' | 'code_interpreter' | 'mcp'; +} +/** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search). + */ +export interface WebSearchTool { + /** + * The type of the web search tool. One of `web_search_preview` or + * `web_search_preview_2025_03_11`. + */ + type: 'web_search_preview' | 'web_search_preview_2025_03_11'; + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * The user's location. + */ + user_location?: WebSearchTool.UserLocation | null; +} +export declare namespace WebSearchTool { + /** + * The user's location. + */ + interface UserLocation { + /** + * The type of location approximation. Always `approximate`. + */ + type: 'approximate'; + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string | null; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string | null; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string | null; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string | null; + } +} +export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming; +export interface ResponseCreateParamsBase { + /** + * Whether to run the model response in the background. + * [Learn more](https://platform.openai.com/docs/guides/background). + */ + background?: boolean | null; + /** + * The conversation that this response belongs to. Items from this conversation are + * prepended to `input_items` for this response request. Input items and output + * items from this response are automatically added to this conversation after this + * response completes. + */ + conversation?: string | ResponseConversationParam | null; + /** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + */ + include?: Array | null; + /** + * Text, image, or file inputs to the model, used to generate a response. + * + * Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Image inputs](https://platform.openai.com/docs/guides/images) + * - [File inputs](https://platform.openai.com/docs/guides/pdf-files) + * - [Conversation state](https://platform.openai.com/docs/guides/conversation-state) + * - [Function calling](https://platform.openai.com/docs/guides/function-calling) + */ + input?: string | ResponseInput; + /** + * A system (or developer) message inserted into the model's context. + * + * When using along with `previous_response_id`, the instructions from a previous + * response will not be carried over to the next response. This makes it simple to + * swap out system (or developer) messages in new responses. + */ + instructions?: string | null; + /** + * An upper bound for the number of tokens that can be generated for a response, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_output_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model?: Shared.ResponsesModel; + /** + * Whether to allow the model to run tool calls in parallel. + */ + parallel_tool_calls?: boolean | null; + /** + * The unique ID of the previous response to the model. Use this to create + * multi-turn conversations. Learn more about + * [conversation state](https://platform.openai.com/docs/guides/conversation-state). + * Cannot be used in conjunction with `conversation`. + */ + previous_response_id?: string | null; + /** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ + prompt?: ResponsePrompt | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ + reasoning?: Shared.Reasoning | null; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * Specifies the latency tier to use for processing the request. This parameter is + * relevant for customers subscribed to the scale tier service: + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When this parameter is set, the response body will include the `service_tier` + * utilized. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * Whether to store the generated model response for later retrieval via API. + */ + store?: boolean | null; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: boolean | null; + /** + * Options for streaming responses. Only set this when you set `stream: true`. + */ + stream_options?: ResponseCreateParams.StreamOptions | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature?: number | null; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * How the model should select which tool (or tools) to use when generating a + * response. See the `tools` parameter to see how to specify which tools the model + * can call. + */ + tool_choice?: ToolChoiceOptions | ToolChoiceAllowed | ToolChoiceTypes | ToolChoiceFunction | ToolChoiceMcp | ToolChoiceCustom; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code with strongly typed arguments and outputs. + * Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + * You can also use custom tools to call your own code. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * The truncation strategy to use for the model response. + * + * - `auto`: If the context of this response and previous ones exceeds the model's + * context window size, the model will truncate the response to fit the context + * window by dropping input items in the middle of the conversation. + * - `disabled` (default): If a model response will exceed the context window size + * for a model, the request will fail with a 400 error. + */ + truncation?: 'auto' | 'disabled' | null; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; +} +export declare namespace ResponseCreateParams { + /** + * Options for streaming responses. Only set this when you set `stream: true`. + */ + interface StreamOptions { + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + } + type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming; + type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming; +} +export interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: false | null; +} +export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream: true; +} +export type ResponseRetrieveParams = ResponseRetrieveParamsNonStreaming | ResponseRetrieveParamsStreaming; +export interface ResponseRetrieveParamsBase { + /** + * Additional fields to include in the response. See the `include` parameter for + * Response creation above for more information. + */ + include?: Array; + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + /** + * The sequence number of the event after which to start streaming. + */ + starting_after?: number; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: boolean; +} +export declare namespace ResponseRetrieveParams { + type ResponseRetrieveParamsNonStreaming = ResponsesAPI.ResponseRetrieveParamsNonStreaming; + type ResponseRetrieveParamsStreaming = ResponsesAPI.ResponseRetrieveParamsStreaming; +} +export interface ResponseRetrieveParamsNonStreaming extends ResponseRetrieveParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: false; +} +export interface ResponseRetrieveParamsStreaming extends ResponseRetrieveParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream: true; +} +export declare namespace Responses { + export { type ComputerTool as ComputerTool, type CustomTool as CustomTool, type EasyInputMessage as EasyInputMessage, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type Response as Response, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCodeInterpreterCallCodeDeltaEvent as ResponseCodeInterpreterCallCodeDeltaEvent, type ResponseCodeInterpreterCallCodeDoneEvent as ResponseCodeInterpreterCallCodeDoneEvent, type ResponseCodeInterpreterCallCompletedEvent as ResponseCodeInterpreterCallCompletedEvent, type ResponseCodeInterpreterCallInProgressEvent as ResponseCodeInterpreterCallInProgressEvent, type ResponseCodeInterpreterCallInterpretingEvent as ResponseCodeInterpreterCallInterpretingEvent, type ResponseCodeInterpreterToolCall as ResponseCodeInterpreterToolCall, type ResponseCompletedEvent as ResponseCompletedEvent, type ResponseComputerToolCall as ResponseComputerToolCall, type ResponseComputerToolCallOutputItem as ResponseComputerToolCallOutputItem, type ResponseComputerToolCallOutputScreenshot as ResponseComputerToolCallOutputScreenshot, type ResponseContent as ResponseContent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseConversationParam as ResponseConversationParam, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseCustomToolCall as ResponseCustomToolCall, type ResponseCustomToolCallInputDeltaEvent as ResponseCustomToolCallInputDeltaEvent, type ResponseCustomToolCallInputDoneEvent as ResponseCustomToolCallInputDoneEvent, type ResponseCustomToolCallOutput as ResponseCustomToolCallOutput, type ResponseError as ResponseError, type ResponseErrorEvent as ResponseErrorEvent, type ResponseFailedEvent as ResponseFailedEvent, type ResponseFileSearchCallCompletedEvent as ResponseFileSearchCallCompletedEvent, type ResponseFileSearchCallInProgressEvent as ResponseFileSearchCallInProgressEvent, type ResponseFileSearchCallSearchingEvent as ResponseFileSearchCallSearchingEvent, type ResponseFileSearchToolCall as ResponseFileSearchToolCall, type ResponseFormatTextConfig as ResponseFormatTextConfig, type ResponseFormatTextJSONSchemaConfig as ResponseFormatTextJSONSchemaConfig, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseFunctionToolCall as ResponseFunctionToolCall, type ResponseFunctionToolCallItem as ResponseFunctionToolCallItem, type ResponseFunctionToolCallOutputItem as ResponseFunctionToolCallOutputItem, type ResponseFunctionWebSearch as ResponseFunctionWebSearch, type ResponseImageGenCallCompletedEvent as ResponseImageGenCallCompletedEvent, type ResponseImageGenCallGeneratingEvent as ResponseImageGenCallGeneratingEvent, type ResponseImageGenCallInProgressEvent as ResponseImageGenCallInProgressEvent, type ResponseImageGenCallPartialImageEvent as ResponseImageGenCallPartialImageEvent, type ResponseInProgressEvent as ResponseInProgressEvent, type ResponseIncludable as ResponseIncludable, type ResponseIncompleteEvent as ResponseIncompleteEvent, type ResponseInput as ResponseInput, type ResponseInputAudio as ResponseInputAudio, type ResponseInputContent as ResponseInputContent, type ResponseInputFile as ResponseInputFile, type ResponseInputImage as ResponseInputImage, type ResponseInputItem as ResponseInputItem, type ResponseInputMessageContentList as ResponseInputMessageContentList, type ResponseInputMessageItem as ResponseInputMessageItem, type ResponseInputText as ResponseInputText, type ResponseItem as ResponseItem, type ResponseMcpCallArgumentsDeltaEvent as ResponseMcpCallArgumentsDeltaEvent, type ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent, type ResponseMcpCallCompletedEvent as ResponseMcpCallCompletedEvent, type ResponseMcpCallFailedEvent as ResponseMcpCallFailedEvent, type ResponseMcpCallInProgressEvent as ResponseMcpCallInProgressEvent, type ResponseMcpListToolsCompletedEvent as ResponseMcpListToolsCompletedEvent, type ResponseMcpListToolsFailedEvent as ResponseMcpListToolsFailedEvent, type ResponseMcpListToolsInProgressEvent as ResponseMcpListToolsInProgressEvent, type ResponseOutputAudio as ResponseOutputAudio, type ResponseOutputItem as ResponseOutputItem, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseOutputMessage as ResponseOutputMessage, type ResponseOutputRefusal as ResponseOutputRefusal, type ResponseOutputText as ResponseOutputText, type ResponseOutputTextAnnotationAddedEvent as ResponseOutputTextAnnotationAddedEvent, type ResponsePrompt as ResponsePrompt, type ResponseQueuedEvent as ResponseQueuedEvent, type ResponseReasoningItem as ResponseReasoningItem, type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent, type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent, type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent, type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent, type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent, type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent, type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent, type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent, type ResponseStatus as ResponseStatus, type ResponseStreamEvent as ResponseStreamEvent, type ResponseTextConfig as ResponseTextConfig, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type ResponseUsage as ResponseUsage, type ResponseWebSearchCallCompletedEvent as ResponseWebSearchCallCompletedEvent, type ResponseWebSearchCallInProgressEvent as ResponseWebSearchCallInProgressEvent, type ResponseWebSearchCallSearchingEvent as ResponseWebSearchCallSearchingEvent, type Tool as Tool, type ToolChoiceAllowed as ToolChoiceAllowed, type ToolChoiceCustom as ToolChoiceCustom, type ToolChoiceFunction as ToolChoiceFunction, type ToolChoiceMcp as ToolChoiceMcp, type ToolChoiceOptions as ToolChoiceOptions, type ToolChoiceTypes as ToolChoiceTypes, type WebSearchTool as WebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, }; + export { InputItems as InputItems, type ResponseItemList as ResponseItemList, type InputItemListParams as InputItemListParams, }; +} +//# sourceMappingURL=responses.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..dfcf3c6bc7a0710797d128e1589571a5274deab3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.mts","sourceRoot":"","sources":["../../src/resources/responses/responses.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,8BAA8B,EAEnC,KAAK,6BAA6B,EAEnC;OACM,EAAE,cAAc,EAAE,oBAAoB,EAAE;OACxC,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE;OACrD,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB,MAAM,WAAW,wBAAwB,CAAC,OAAO,CAAE,SAAQ,kBAAkB;IAC3E,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,aAAa,CAAC,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,GAAG,qBAAqB,CAAC;AAE/F,MAAM,WAAW,2BAA2B,CAAC,OAAO,CAAE,SAAQ,qBAAqB;IACjF,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;IAC9E,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED,MAAM,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C,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..08c0996b2bdc3699859f22b95ebec5d70f152d3d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts @@ -0,0 +1,4537 @@ +import { type ExtractParsedContentFromParams, type ResponseCreateParamsWithTools } from "../../lib/ResponsesParser.js"; +import { ResponseStream, ResponseStreamParams } from "../../lib/responses/ResponseStream.js"; +import { APIResource } from "../../core/resource.js"; +import * as ResponsesAPI from "./responses.js"; +import * as Shared from "../shared.js"; +import * as InputItemsAPI from "./input-items.js"; +import { InputItemListParams, InputItems, ResponseItemList } from "./input-items.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage } from "../../core/pagination.js"; +import { Stream } from "../../core/streaming.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export interface ParsedResponseOutputText extends ResponseOutputText { + parsed: ParsedT | null; +} +export type ParsedContent = ParsedResponseOutputText | ResponseOutputRefusal; +export interface ParsedResponseOutputMessage extends ResponseOutputMessage { + content: ParsedContent[]; +} +export interface ParsedResponseFunctionToolCall extends ResponseFunctionToolCall { + parsed_arguments: any; +} +export type ParsedResponseOutputItem = ParsedResponseOutputMessage | ParsedResponseFunctionToolCall | ResponseFileSearchToolCall | ResponseFunctionWebSearch | ResponseComputerToolCall | ResponseReasoningItem | ResponseOutputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseOutputItem.LocalShellCall | ResponseOutputItem.McpCall | ResponseOutputItem.McpListTools | ResponseOutputItem.McpApprovalRequest | ResponseCustomToolCall; +export interface ParsedResponse extends Response { + output: Array>; + output_parsed: ParsedT | null; +} +export type ResponseParseParams = ResponseCreateParamsNonStreaming; +export declare class Responses extends APIResource { + inputItems: InputItemsAPI.InputItems; + /** + * Creates a model response. Provide + * [text](https://platform.openai.com/docs/guides/text) or + * [image](https://platform.openai.com/docs/guides/images) inputs to generate + * [text](https://platform.openai.com/docs/guides/text) or + * [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have + * the model call your own + * [custom code](https://platform.openai.com/docs/guides/function-calling) or use + * built-in [tools](https://platform.openai.com/docs/guides/tools) like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search) to use + * your own data as input for the model's response. + * + * @example + * ```ts + * const response = await client.responses.create(); + * ``` + */ + create(body: ResponseCreateParamsNonStreaming, options?: RequestOptions): APIPromise; + create(body: ResponseCreateParamsStreaming, options?: RequestOptions): APIPromise>; + create(body: ResponseCreateParamsBase, options?: RequestOptions): APIPromise | Response>; + /** + * Retrieves a model response with the given ID. + * + * @example + * ```ts + * const response = await client.responses.retrieve( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + retrieve(responseID: string, query?: ResponseRetrieveParamsNonStreaming, options?: RequestOptions): APIPromise; + retrieve(responseID: string, query: ResponseRetrieveParamsStreaming, options?: RequestOptions): APIPromise>; + retrieve(responseID: string, query?: ResponseRetrieveParamsBase | undefined, options?: RequestOptions): APIPromise | Response>; + /** + * Deletes a model response with the given ID. + * + * @example + * ```ts + * await client.responses.delete( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + delete(responseID: string, options?: RequestOptions): APIPromise; + parse>(body: Params, options?: RequestOptions): APIPromise>; + /** + * Creates a model response stream + */ + stream>(body: Params, options?: RequestOptions): ResponseStream; + /** + * Cancels a model response with the given ID. Only responses created with the + * `background` parameter set to `true` can be cancelled. + * [Learn more](https://platform.openai.com/docs/guides/background). + * + * @example + * ```ts + * const response = await client.responses.cancel( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + cancel(responseID: string, options?: RequestOptions): APIPromise; +} +export type ResponseItemsPage = CursorPage; +/** + * A tool that controls a virtual computer. Learn more about the + * [computer tool](https://platform.openai.com/docs/guides/tools-computer-use). + */ +export interface ComputerTool { + /** + * The height of the computer display. + */ + display_height: number; + /** + * The width of the computer display. + */ + display_width: number; + /** + * The type of computer environment to control. + */ + environment: 'windows' | 'mac' | 'linux' | 'ubuntu' | 'browser'; + /** + * The type of the computer use tool. Always `computer_use_preview`. + */ + type: 'computer_use_preview'; +} +/** + * A custom tool that processes input using a specified format. Learn more about + * [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools). + */ +export interface CustomTool { + /** + * The name of the custom tool, used to identify it in tool calls. + */ + name: string; + /** + * The type of the custom tool. Always `custom`. + */ + type: 'custom'; + /** + * Optional description of the custom tool, used to provide more context. + */ + description?: string; + /** + * The input format for the custom tool. Default is unconstrained text. + */ + format?: Shared.CustomToolInputFormat; +} +/** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ +export interface EasyInputMessage { + /** + * Text, image, or audio input to the model, used to generate a response. Can also + * contain previous assistant responses. + */ + content: string | ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `assistant`, `system`, or + * `developer`. + */ + role: 'user' | 'assistant' | 'system' | 'developer'; + /** + * The type of the message input. Always `message`. + */ + type?: 'message'; +} +/** + * A tool that searches for relevant content from uploaded files. Learn more about + * the + * [file search tool](https://platform.openai.com/docs/guides/tools-file-search). + */ +export interface FileSearchTool { + /** + * The type of the file search tool. Always `file_search`. + */ + type: 'file_search'; + /** + * The IDs of the vector stores to search. + */ + vector_store_ids: Array; + /** + * A filter to apply. + */ + filters?: Shared.ComparisonFilter | Shared.CompoundFilter | null; + /** + * The maximum number of results to return. This number should be between 1 and 50 + * inclusive. + */ + max_num_results?: number; + /** + * Ranking options for search. + */ + ranking_options?: FileSearchTool.RankingOptions; +} +export declare namespace FileSearchTool { + /** + * Ranking options for search. + */ + interface RankingOptions { + /** + * The ranker to use for the file search. + */ + ranker?: 'auto' | 'default-2024-11-15'; + /** + * The score threshold for the file search, a number between 0 and 1. Numbers + * closer to 1 will attempt to return only the most relevant results, but may + * return fewer results. + */ + score_threshold?: number; + } +} +/** + * Defines a function in your own code the model can choose to call. Learn more + * about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + */ +export interface FunctionTool { + /** + * The name of the function to call. + */ + name: string; + /** + * A JSON schema object describing the parameters of the function. + */ + parameters: { + [key: string]: unknown; + } | null; + /** + * Whether to enforce strict parameter validation. Default `true`. + */ + strict: boolean | null; + /** + * The type of the function tool. Always `function`. + */ + type: 'function'; + /** + * A description of the function. Used by the model to determine whether or not to + * call the function. + */ + description?: string | null; +} +export interface Response { + /** + * Unique identifier for this Response. + */ + id: string; + /** + * Unix timestamp (in seconds) of when this Response was created. + */ + created_at: number; + output_text: string; + /** + * An error object returned when the model fails to generate a Response. + */ + error: ResponseError | null; + /** + * Details about why the response is incomplete. + */ + incomplete_details: Response.IncompleteDetails | null; + /** + * A system (or developer) message inserted into the model's context. + * + * When using along with `previous_response_id`, the instructions from a previous + * response will not be carried over to the next response. This makes it simple to + * swap out system (or developer) messages in new responses. + */ + instructions: string | Array | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model: Shared.ResponsesModel; + /** + * The object type of this resource - always set to `response`. + */ + object: 'response'; + /** + * An array of content items generated by the model. + * + * - The length and order of items in the `output` array is dependent on the + * model's response. + * - Rather than accessing the first item in the `output` array and assuming it's + * an `assistant` message with the content generated by the model, you might + * consider using the `output_text` property where supported in SDKs. + */ + output: Array; + /** + * Whether to allow the model to run tool calls in parallel. + */ + parallel_tool_calls: boolean; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature: number | null; + /** + * How the model should select which tool (or tools) to use when generating a + * response. See the `tools` parameter to see how to specify which tools the model + * can call. + */ + tool_choice: ToolChoiceOptions | ToolChoiceAllowed | ToolChoiceTypes | ToolChoiceFunction | ToolChoiceMcp | ToolChoiceCustom; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code with strongly typed arguments and outputs. + * Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + * You can also use custom tools to call your own code. + */ + tools: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p: number | null; + /** + * Whether to run the model response in the background. + * [Learn more](https://platform.openai.com/docs/guides/background). + */ + background?: boolean | null; + /** + * The conversation that this response belongs to. Input items and output items + * from this response are automatically added to this conversation. + */ + conversation?: Response.Conversation | null; + /** + * An upper bound for the number of tokens that can be generated for a response, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_output_tokens?: number | null; + /** + * The unique ID of the previous response to the model. Use this to create + * multi-turn conversations. Learn more about + * [conversation state](https://platform.openai.com/docs/guides/conversation-state). + * Cannot be used in conjunction with `conversation`. + */ + previous_response_id?: string | null; + /** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ + prompt?: ResponsePrompt | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ + reasoning?: Shared.Reasoning | null; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * Specifies the latency tier to use for processing the request. This parameter is + * relevant for customers subscribed to the scale tier service: + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When this parameter is set, the response body will include the `service_tier` + * utilized. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * The status of the response generation. One of `completed`, `failed`, + * `in_progress`, `cancelled`, `queued`, or `incomplete`. + */ + status?: ResponseStatus; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * The truncation strategy to use for the model response. + * + * - `auto`: If the context of this response and previous ones exceeds the model's + * context window size, the model will truncate the response to fit the context + * window by dropping input items in the middle of the conversation. + * - `disabled` (default): If a model response will exceed the context window size + * for a model, the request will fail with a 400 error. + */ + truncation?: 'auto' | 'disabled' | null; + /** + * Represents token usage details including input tokens, output tokens, a + * breakdown of output tokens, and the total tokens used. + */ + usage?: ResponseUsage; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; +} +export declare namespace Response { + /** + * Details about why the response is incomplete. + */ + interface IncompleteDetails { + /** + * The reason why the response is incomplete. + */ + reason?: 'max_output_tokens' | 'content_filter'; + } + /** + * The conversation that this response belongs to. Input items and output items + * from this response are automatically added to this conversation. + */ + interface Conversation { + /** + * The unique ID of the conversation. + */ + id: string; + } +} +/** + * Emitted when there is a partial audio response. + */ +export interface ResponseAudioDeltaEvent { + /** + * A chunk of Base64 encoded response audio bytes. + */ + delta: string; + /** + * A sequence number for this chunk of the stream response. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.delta`. + */ + type: 'response.audio.delta'; +} +/** + * Emitted when the audio response is complete. + */ +export interface ResponseAudioDoneEvent { + /** + * The sequence number of the delta. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.done`. + */ + type: 'response.audio.done'; +} +/** + * Emitted when there is a partial transcript of audio. + */ +export interface ResponseAudioTranscriptDeltaEvent { + /** + * The partial transcript of the audio response. + */ + delta: string; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.transcript.delta`. + */ + type: 'response.audio.transcript.delta'; +} +/** + * Emitted when the full audio transcript is completed. + */ +export interface ResponseAudioTranscriptDoneEvent { + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.audio.transcript.done`. + */ + type: 'response.audio.transcript.done'; +} +/** + * Emitted when a partial code snippet is streamed by the code interpreter. + */ +export interface ResponseCodeInterpreterCallCodeDeltaEvent { + /** + * The partial code snippet being streamed by the code interpreter. + */ + delta: string; + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code is being + * streamed. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call_code.delta`. + */ + type: 'response.code_interpreter_call_code.delta'; +} +/** + * Emitted when the code snippet is finalized by the code interpreter. + */ +export interface ResponseCodeInterpreterCallCodeDoneEvent { + /** + * The final code snippet output by the code interpreter. + */ + code: string; + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code is finalized. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call_code.done`. + */ + type: 'response.code_interpreter_call_code.done'; +} +/** + * Emitted when the code interpreter call is completed. + */ +export interface ResponseCodeInterpreterCallCompletedEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter call + * is completed. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.completed`. + */ + type: 'response.code_interpreter_call.completed'; +} +/** + * Emitted when a code interpreter call is in progress. + */ +export interface ResponseCodeInterpreterCallInProgressEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter call + * is in progress. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.in_progress`. + */ + type: 'response.code_interpreter_call.in_progress'; +} +/** + * Emitted when the code interpreter is actively interpreting the code snippet. + */ +export interface ResponseCodeInterpreterCallInterpretingEvent { + /** + * The unique identifier of the code interpreter tool call item. + */ + item_id: string; + /** + * The index of the output item in the response for which the code interpreter is + * interpreting code. + */ + output_index: number; + /** + * The sequence number of this event, used to order streaming events. + */ + sequence_number: number; + /** + * The type of the event. Always `response.code_interpreter_call.interpreting`. + */ + type: 'response.code_interpreter_call.interpreting'; +} +/** + * A tool call to run code. + */ +export interface ResponseCodeInterpreterToolCall { + /** + * The unique ID of the code interpreter tool call. + */ + id: string; + /** + * The code to run, or null if not available. + */ + code: string | null; + /** + * The ID of the container used to run the code. + */ + container_id: string; + /** + * The outputs generated by the code interpreter, such as logs or images. Can be + * null if no outputs are available. + */ + outputs: Array | null; + /** + * The status of the code interpreter tool call. Valid values are `in_progress`, + * `completed`, `incomplete`, `interpreting`, and `failed`. + */ + status: 'in_progress' | 'completed' | 'incomplete' | 'interpreting' | 'failed'; + /** + * The type of the code interpreter tool call. Always `code_interpreter_call`. + */ + type: 'code_interpreter_call'; +} +export declare namespace ResponseCodeInterpreterToolCall { + /** + * The logs output from the code interpreter. + */ + interface Logs { + /** + * The logs output from the code interpreter. + */ + logs: string; + /** + * The type of the output. Always 'logs'. + */ + type: 'logs'; + } + /** + * The image output from the code interpreter. + */ + interface Image { + /** + * The type of the output. Always 'image'. + */ + type: 'image'; + /** + * The URL of the image output from the code interpreter. + */ + url: string; + } +} +/** + * Emitted when the model response is complete. + */ +export interface ResponseCompletedEvent { + /** + * Properties of the completed response. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.completed`. + */ + type: 'response.completed'; +} +/** + * A tool call to a computer use tool. See the + * [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) + * for more information. + */ +export interface ResponseComputerToolCall { + /** + * The unique ID of the computer call. + */ + id: string; + /** + * A click action. + */ + action: ResponseComputerToolCall.Click | ResponseComputerToolCall.DoubleClick | ResponseComputerToolCall.Drag | ResponseComputerToolCall.Keypress | ResponseComputerToolCall.Move | ResponseComputerToolCall.Screenshot | ResponseComputerToolCall.Scroll | ResponseComputerToolCall.Type | ResponseComputerToolCall.Wait; + /** + * An identifier used when responding to the tool call with output. + */ + call_id: string; + /** + * The pending safety checks for the computer call. + */ + pending_safety_checks: Array; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the computer call. Always `computer_call`. + */ + type: 'computer_call'; +} +export declare namespace ResponseComputerToolCall { + /** + * A click action. + */ + interface Click { + /** + * Indicates which mouse button was pressed during the click. One of `left`, + * `right`, `wheel`, `back`, or `forward`. + */ + button: 'left' | 'right' | 'wheel' | 'back' | 'forward'; + /** + * Specifies the event type. For a click action, this property is always set to + * `click`. + */ + type: 'click'; + /** + * The x-coordinate where the click occurred. + */ + x: number; + /** + * The y-coordinate where the click occurred. + */ + y: number; + } + /** + * A double click action. + */ + interface DoubleClick { + /** + * Specifies the event type. For a double click action, this property is always set + * to `double_click`. + */ + type: 'double_click'; + /** + * The x-coordinate where the double click occurred. + */ + x: number; + /** + * The y-coordinate where the double click occurred. + */ + y: number; + } + /** + * A drag action. + */ + interface Drag { + /** + * An array of coordinates representing the path of the drag action. Coordinates + * will appear as an array of objects, eg + * + * ``` + * [ + * { x: 100, y: 200 }, + * { x: 200, y: 300 } + * ] + * ``` + */ + path: Array; + /** + * Specifies the event type. For a drag action, this property is always set to + * `drag`. + */ + type: 'drag'; + } + namespace Drag { + /** + * A series of x/y coordinate pairs in the drag path. + */ + interface Path { + /** + * The x-coordinate. + */ + x: number; + /** + * The y-coordinate. + */ + y: number; + } + } + /** + * A collection of keypresses the model would like to perform. + */ + interface Keypress { + /** + * The combination of keys the model is requesting to be pressed. This is an array + * of strings, each representing a key. + */ + keys: Array; + /** + * Specifies the event type. For a keypress action, this property is always set to + * `keypress`. + */ + type: 'keypress'; + } + /** + * A mouse move action. + */ + interface Move { + /** + * Specifies the event type. For a move action, this property is always set to + * `move`. + */ + type: 'move'; + /** + * The x-coordinate to move to. + */ + x: number; + /** + * The y-coordinate to move to. + */ + y: number; + } + /** + * A screenshot action. + */ + interface Screenshot { + /** + * Specifies the event type. For a screenshot action, this property is always set + * to `screenshot`. + */ + type: 'screenshot'; + } + /** + * A scroll action. + */ + interface Scroll { + /** + * The horizontal scroll distance. + */ + scroll_x: number; + /** + * The vertical scroll distance. + */ + scroll_y: number; + /** + * Specifies the event type. For a scroll action, this property is always set to + * `scroll`. + */ + type: 'scroll'; + /** + * The x-coordinate where the scroll occurred. + */ + x: number; + /** + * The y-coordinate where the scroll occurred. + */ + y: number; + } + /** + * An action to type in text. + */ + interface Type { + /** + * The text to type. + */ + text: string; + /** + * Specifies the event type. For a type action, this property is always set to + * `type`. + */ + type: 'type'; + } + /** + * A wait action. + */ + interface Wait { + /** + * Specifies the event type. For a wait action, this property is always set to + * `wait`. + */ + type: 'wait'; + } + /** + * A pending safety check for the computer call. + */ + interface PendingSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code: string; + /** + * Details about the pending safety check. + */ + message: string; + } +} +export interface ResponseComputerToolCallOutputItem { + /** + * The unique ID of the computer call tool output. + */ + id: string; + /** + * The ID of the computer tool call that produced the output. + */ + call_id: string; + /** + * A computer screenshot image used with the computer use tool. + */ + output: ResponseComputerToolCallOutputScreenshot; + /** + * The type of the computer tool call output. Always `computer_call_output`. + */ + type: 'computer_call_output'; + /** + * The safety checks reported by the API that have been acknowledged by the + * developer. + */ + acknowledged_safety_checks?: Array; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +export declare namespace ResponseComputerToolCallOutputItem { + /** + * A pending safety check for the computer call. + */ + interface AcknowledgedSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code: string; + /** + * Details about the pending safety check. + */ + message: string; + } +} +/** + * A computer screenshot image used with the computer use tool. + */ +export interface ResponseComputerToolCallOutputScreenshot { + /** + * Specifies the event type. For a computer screenshot, this property is always set + * to `computer_screenshot`. + */ + type: 'computer_screenshot'; + /** + * The identifier of an uploaded file that contains the screenshot. + */ + file_id?: string; + /** + * The URL of the screenshot image. + */ + image_url?: string; +} +/** + * Multi-modal input and output contents. + */ +export type ResponseContent = ResponseInputText | ResponseInputImage | ResponseInputFile | ResponseOutputText | ResponseOutputRefusal; +/** + * Emitted when a new content part is added. + */ +export interface ResponseContentPartAddedEvent { + /** + * The index of the content part that was added. + */ + content_index: number; + /** + * The ID of the output item that the content part was added to. + */ + item_id: string; + /** + * The index of the output item that the content part was added to. + */ + output_index: number; + /** + * The content part that was added. + */ + part: ResponseOutputText | ResponseOutputRefusal; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.content_part.added`. + */ + type: 'response.content_part.added'; +} +/** + * Emitted when a content part is done. + */ +export interface ResponseContentPartDoneEvent { + /** + * The index of the content part that is done. + */ + content_index: number; + /** + * The ID of the output item that the content part was added to. + */ + item_id: string; + /** + * The index of the output item that the content part was added to. + */ + output_index: number; + /** + * The content part that is done. + */ + part: ResponseOutputText | ResponseOutputRefusal; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.content_part.done`. + */ + type: 'response.content_part.done'; +} +/** + * The conversation that this response belongs to. + */ +export interface ResponseConversationParam { + /** + * The unique ID of the conversation. + */ + id: string; +} +/** + * An event that is emitted when a response is created. + */ +export interface ResponseCreatedEvent { + /** + * The response that was created. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.created`. + */ + type: 'response.created'; +} +/** + * A call to a custom tool created by the model. + */ +export interface ResponseCustomToolCall { + /** + * An identifier used to map this custom tool call to a tool call output. + */ + call_id: string; + /** + * The input for the custom tool call generated by the model. + */ + input: string; + /** + * The name of the custom tool being called. + */ + name: string; + /** + * The type of the custom tool call. Always `custom_tool_call`. + */ + type: 'custom_tool_call'; + /** + * The unique ID of the custom tool call in the OpenAI platform. + */ + id?: string; +} +/** + * Event representing a delta (partial update) to the input of a custom tool call. + */ +export interface ResponseCustomToolCallInputDeltaEvent { + /** + * The incremental input data (delta) for the custom tool call. + */ + delta: string; + /** + * Unique identifier for the API item associated with this event. + */ + item_id: string; + /** + * The index of the output this delta applies to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The event type identifier. + */ + type: 'response.custom_tool_call_input.delta'; +} +/** + * Event indicating that input for a custom tool call is complete. + */ +export interface ResponseCustomToolCallInputDoneEvent { + /** + * The complete input data for the custom tool call. + */ + input: string; + /** + * Unique identifier for the API item associated with this event. + */ + item_id: string; + /** + * The index of the output this event applies to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The event type identifier. + */ + type: 'response.custom_tool_call_input.done'; +} +/** + * The output of a custom tool call from your code, being sent back to the model. + */ +export interface ResponseCustomToolCallOutput { + /** + * The call ID, used to map this custom tool call output to a custom tool call. + */ + call_id: string; + /** + * The output from the custom tool call generated by your code. + */ + output: string; + /** + * The type of the custom tool call output. Always `custom_tool_call_output`. + */ + type: 'custom_tool_call_output'; + /** + * The unique ID of the custom tool call output in the OpenAI platform. + */ + id?: string; +} +/** + * An error object returned when the model fails to generate a Response. + */ +export interface ResponseError { + /** + * The error code for the response. + */ + code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found'; + /** + * A human-readable description of the error. + */ + message: string; +} +/** + * Emitted when an error occurs. + */ +export interface ResponseErrorEvent { + /** + * The error code. + */ + code: string | null; + /** + * The error message. + */ + message: string; + /** + * The error parameter. + */ + param: string | null; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `error`. + */ + type: 'error'; +} +/** + * An event that is emitted when a response fails. + */ +export interface ResponseFailedEvent { + /** + * The response that failed. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.failed`. + */ + type: 'response.failed'; +} +/** + * Emitted when a file search call is completed (results found). + */ +export interface ResponseFileSearchCallCompletedEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is initiated. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.completed`. + */ + type: 'response.file_search_call.completed'; +} +/** + * Emitted when a file search call is initiated. + */ +export interface ResponseFileSearchCallInProgressEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is initiated. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.in_progress`. + */ + type: 'response.file_search_call.in_progress'; +} +/** + * Emitted when a file search is currently searching. + */ +export interface ResponseFileSearchCallSearchingEvent { + /** + * The ID of the output item that the file search call is initiated. + */ + item_id: string; + /** + * The index of the output item that the file search call is searching. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.file_search_call.searching`. + */ + type: 'response.file_search_call.searching'; +} +/** + * The results of a file search tool call. See the + * [file search guide](https://platform.openai.com/docs/guides/tools-file-search) + * for more information. + */ +export interface ResponseFileSearchToolCall { + /** + * The unique ID of the file search tool call. + */ + id: string; + /** + * The queries used to search for files. + */ + queries: Array; + /** + * The status of the file search tool call. One of `in_progress`, `searching`, + * `incomplete` or `failed`, + */ + status: 'in_progress' | 'searching' | 'completed' | 'incomplete' | 'failed'; + /** + * The type of the file search tool call. Always `file_search_call`. + */ + type: 'file_search_call'; + /** + * The results of the file search tool call. + */ + results?: Array | null; +} +export declare namespace ResponseFileSearchToolCall { + interface Result { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The unique ID of the file. + */ + file_id?: string; + /** + * The name of the file. + */ + filename?: string; + /** + * The relevance score of the file - a value between 0 and 1. + */ + score?: number; + /** + * The text that was retrieved from the file. + */ + text?: string; + } +} +/** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ +export type ResponseFormatTextConfig = Shared.ResponseFormatText | ResponseFormatTextJSONSchemaConfig | Shared.ResponseFormatJSONObject; +/** + * JSON Schema response format. Used to generate structured JSON responses. Learn + * more about + * [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). + */ +export interface ResponseFormatTextJSONSchemaConfig { + /** + * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores + * and dashes, with a maximum length of 64. + */ + name: string; + /** + * The schema for the response format, described as a JSON Schema object. Learn how + * to build JSON schemas [here](https://json-schema.org/). + */ + schema: { + [key: string]: unknown; + }; + /** + * The type of response format being defined. Always `json_schema`. + */ + type: 'json_schema'; + /** + * A description of what the response format is for, used by the model to determine + * how to respond in the format. + */ + description?: string; + /** + * Whether to enable strict schema adherence when generating the output. If set to + * true, the model will always follow the exact schema defined in the `schema` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. To + * learn more, read the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + */ + strict?: boolean | null; +} +/** + * Emitted when there is a partial function-call arguments delta. + */ +export interface ResponseFunctionCallArgumentsDeltaEvent { + /** + * The function-call arguments delta that is added. + */ + delta: string; + /** + * The ID of the output item that the function-call arguments delta is added to. + */ + item_id: string; + /** + * The index of the output item that the function-call arguments delta is added to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.function_call_arguments.delta`. + */ + type: 'response.function_call_arguments.delta'; +} +/** + * Emitted when function-call arguments are finalized. + */ +export interface ResponseFunctionCallArgumentsDoneEvent { + /** + * The function-call arguments. + */ + arguments: string; + /** + * The ID of the item. + */ + item_id: string; + /** + * The index of the output item. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + type: 'response.function_call_arguments.done'; +} +/** + * A tool call to run a function. See the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling) + * for more information. + */ +export interface ResponseFunctionToolCall { + /** + * A JSON string of the arguments to pass to the function. + */ + arguments: string; + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * The name of the function to run. + */ + name: string; + /** + * The type of the function tool call. Always `function_call`. + */ + type: 'function_call'; + /** + * The unique ID of the function tool call. + */ + id?: string; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +/** + * A tool call to run a function. See the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling) + * for more information. + */ +export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall { + /** + * The unique ID of the function tool call. + */ + id: string; +} +export interface ResponseFunctionToolCallOutputItem { + /** + * The unique ID of the function call tool output. + */ + id: string; + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * A JSON string of the output of the function tool call. + */ + output: string; + /** + * The type of the function tool call output. Always `function_call_output`. + */ + type: 'function_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +/** + * The results of a web search tool call. See the + * [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for + * more information. + */ +export interface ResponseFunctionWebSearch { + /** + * The unique ID of the web search tool call. + */ + id: string; + /** + * The status of the web search tool call. + */ + status: 'in_progress' | 'searching' | 'completed' | 'failed'; + /** + * The type of the web search tool call. Always `web_search_call`. + */ + type: 'web_search_call'; +} +export declare namespace ResponseFunctionWebSearch { + /** + * Action type "search" - Performs a web search query. + */ + interface Search { + /** + * The search query. + */ + query: string; + /** + * The action type. + */ + type: 'search'; + /** + * The sources used in the search. + */ + sources?: Array; + } + namespace Search { + /** + * A source used in the search. + */ + interface Source { + /** + * The type of source. Always `url`. + */ + type: 'url'; + /** + * The URL of the source. + */ + url: string; + } + } + /** + * Action type "open_page" - Opens a specific URL from search results. + */ + interface OpenPage { + /** + * The action type. + */ + type: 'open_page'; + /** + * The URL opened by the model. + */ + url: string; + } + /** + * Action type "find": Searches for a pattern within a loaded page. + */ + interface Find { + /** + * The pattern or text to search for within the page. + */ + pattern: string; + /** + * The action type. + */ + type: 'find'; + /** + * The URL of the page searched for the pattern. + */ + url: string; + } +} +/** + * Emitted when an image generation tool call has completed and the final image is + * available. + */ +export interface ResponseImageGenCallCompletedEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.completed'. + */ + type: 'response.image_generation_call.completed'; +} +/** + * Emitted when an image generation tool call is actively generating an image + * (intermediate state). + */ +export interface ResponseImageGenCallGeneratingEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.generating'. + */ + type: 'response.image_generation_call.generating'; +} +/** + * Emitted when an image generation tool call is in progress. + */ +export interface ResponseImageGenCallInProgressEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.in_progress'. + */ + type: 'response.image_generation_call.in_progress'; +} +/** + * Emitted when a partial image is available during image generation streaming. + */ +export interface ResponseImageGenCallPartialImageEvent { + /** + * The unique identifier of the image generation item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * Base64-encoded partial image data, suitable for rendering as an image. + */ + partial_image_b64: string; + /** + * 0-based index for the partial image (backend is 1-based, but this is 0-based for + * the user). + */ + partial_image_index: number; + /** + * The sequence number of the image generation item being processed. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.image_generation_call.partial_image'. + */ + type: 'response.image_generation_call.partial_image'; +} +/** + * Emitted when the response is in progress. + */ +export interface ResponseInProgressEvent { + /** + * The response that is in progress. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.in_progress`. + */ + type: 'response.in_progress'; +} +/** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + */ +export type ResponseIncludable = 'file_search_call.results' | 'message.input_image.image_url' | 'computer_call_output.output.image_url' | 'reasoning.encrypted_content' | 'code_interpreter_call.outputs'; +/** + * An event that is emitted when a response finishes as incomplete. + */ +export interface ResponseIncompleteEvent { + /** + * The response that was incomplete. + */ + response: Response; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.incomplete`. + */ + type: 'response.incomplete'; +} +/** + * A list of one or many input items to the model, containing different content + * types. + */ +export type ResponseInput = Array; +/** + * An audio input to the model. + */ +export interface ResponseInputAudio { + /** + * Base64-encoded audio data. + */ + data: string; + /** + * The format of the audio data. Currently supported formats are `mp3` and `wav`. + */ + format: 'mp3' | 'wav'; + /** + * The type of the input item. Always `input_audio`. + */ + type: 'input_audio'; +} +/** + * A text input to the model. + */ +export type ResponseInputContent = ResponseInputText | ResponseInputImage | ResponseInputFile; +/** + * A file input to the model. + */ +export interface ResponseInputFile { + /** + * The type of the input item. Always `input_file`. + */ + type: 'input_file'; + /** + * The content of the file to be sent to the model. + */ + file_data?: string; + /** + * The ID of the file to be sent to the model. + */ + file_id?: string | null; + /** + * The URL of the file to be sent to the model. + */ + file_url?: string; + /** + * The name of the file to be sent to the model. + */ + filename?: string; +} +/** + * An image input to the model. Learn about + * [image inputs](https://platform.openai.com/docs/guides/vision). + */ +export interface ResponseInputImage { + /** + * The detail level of the image to be sent to the model. One of `high`, `low`, or + * `auto`. Defaults to `auto`. + */ + detail: 'low' | 'high' | 'auto'; + /** + * The type of the input item. Always `input_image`. + */ + type: 'input_image'; + /** + * The ID of the file to be sent to the model. + */ + file_id?: string | null; + /** + * The URL of the image to be sent to the model. A fully qualified URL or base64 + * encoded image in a data URL. + */ + image_url?: string | null; +} +/** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. Messages with the + * `assistant` role are presumed to have been generated by the model in previous + * interactions. + */ +export type ResponseInputItem = EasyInputMessage | ResponseInputItem.Message | ResponseOutputMessage | ResponseFileSearchToolCall | ResponseComputerToolCall | ResponseInputItem.ComputerCallOutput | ResponseFunctionWebSearch | ResponseFunctionToolCall | ResponseInputItem.FunctionCallOutput | ResponseReasoningItem | ResponseInputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseInputItem.LocalShellCall | ResponseInputItem.LocalShellCallOutput | ResponseInputItem.McpListTools | ResponseInputItem.McpApprovalRequest | ResponseInputItem.McpApprovalResponse | ResponseInputItem.McpCall | ResponseCustomToolCallOutput | ResponseCustomToolCall | ResponseInputItem.ItemReference; +export declare namespace ResponseInputItem { + /** + * A message input to the model with a role indicating instruction following + * hierarchy. Instructions given with the `developer` or `system` role take + * precedence over instructions given with the `user` role. + */ + interface Message { + /** + * A list of one or many input items to the model, containing different content + * types. + */ + content: ResponsesAPI.ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `system`, or `developer`. + */ + role: 'user' | 'system' | 'developer'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message input. Always set to `message`. + */ + type?: 'message'; + } + /** + * The output of a computer tool call. + */ + interface ComputerCallOutput { + /** + * The ID of the computer tool call that produced the output. + */ + call_id: string; + /** + * A computer screenshot image used with the computer use tool. + */ + output: ResponsesAPI.ResponseComputerToolCallOutputScreenshot; + /** + * The type of the computer tool call output. Always `computer_call_output`. + */ + type: 'computer_call_output'; + /** + * The ID of the computer tool call output. + */ + id?: string | null; + /** + * The safety checks reported by the API that have been acknowledged by the + * developer. + */ + acknowledged_safety_checks?: Array | null; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + namespace ComputerCallOutput { + /** + * A pending safety check for the computer call. + */ + interface AcknowledgedSafetyCheck { + /** + * The ID of the pending safety check. + */ + id: string; + /** + * The type of the pending safety check. + */ + code?: string | null; + /** + * Details about the pending safety check. + */ + message?: string | null; + } + } + /** + * The output of a function tool call. + */ + interface FunctionCallOutput { + /** + * The unique ID of the function tool call generated by the model. + */ + call_id: string; + /** + * A JSON string of the output of the function tool call. + */ + output: string; + /** + * The type of the function tool call output. Always `function_call_output`. + */ + type: 'function_call_output'; + /** + * The unique ID of the function tool call output. Populated when this item is + * returned via API. + */ + id?: string | null; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * The unique ID of the approval response + */ + id?: string | null; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } + /** + * An internal identifier for an item to reference. + */ + interface ItemReference { + /** + * The ID of the item to reference. + */ + id: string; + /** + * The type of item to reference. Always `item_reference`. + */ + type?: 'item_reference' | null; + } +} +/** + * A list of one or many input items to the model, containing different content + * types. + */ +export type ResponseInputMessageContentList = Array; +export interface ResponseInputMessageItem { + /** + * The unique ID of the message input. + */ + id: string; + /** + * A list of one or many input items to the model, containing different content + * types. + */ + content: ResponseInputMessageContentList; + /** + * The role of the message input. One of `user`, `system`, or `developer`. + */ + role: 'user' | 'system' | 'developer'; + /** + * The status of item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the message input. Always set to `message`. + */ + type?: 'message'; +} +/** + * A text input to the model. + */ +export interface ResponseInputText { + /** + * The text input to the model. + */ + text: string; + /** + * The type of the input item. Always `input_text`. + */ + type: 'input_text'; +} +/** + * Content item used to generate a response. + */ +export type ResponseItem = ResponseInputMessageItem | ResponseOutputMessage | ResponseFileSearchToolCall | ResponseComputerToolCall | ResponseComputerToolCallOutputItem | ResponseFunctionWebSearch | ResponseFunctionToolCallItem | ResponseFunctionToolCallOutputItem | ResponseItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseItem.LocalShellCall | ResponseItem.LocalShellCallOutput | ResponseItem.McpListTools | ResponseItem.McpApprovalRequest | ResponseItem.McpApprovalResponse | ResponseItem.McpCall; +export declare namespace ResponseItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * The output of a local shell tool call. + */ + interface LocalShellCallOutput { + /** + * The unique ID of the local shell tool call generated by the model. + */ + id: string; + /** + * A JSON string of the output of the local shell tool call. + */ + output: string; + /** + * The type of the local shell tool call output. Always `local_shell_call_output`. + */ + type: 'local_shell_call_output'; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } + /** + * A response to an MCP approval request. + */ + interface McpApprovalResponse { + /** + * The unique ID of the approval response + */ + id: string; + /** + * The ID of the approval request being answered. + */ + approval_request_id: string; + /** + * Whether the request was approved. + */ + approve: boolean; + /** + * The type of the item. Always `mcp_approval_response`. + */ + type: 'mcp_approval_response'; + /** + * Optional reason for the decision. + */ + reason?: string | null; + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } +} +/** + * Emitted when there is a delta (partial update) to the arguments of an MCP tool + * call. + */ +export interface ResponseMcpCallArgumentsDeltaEvent { + /** + * A JSON string containing the partial update to the arguments for the MCP tool + * call. + */ + delta: string; + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call_arguments.delta'. + */ + type: 'response.mcp_call_arguments.delta'; +} +/** + * Emitted when the arguments for an MCP tool call are finalized. + */ +export interface ResponseMcpCallArgumentsDoneEvent { + /** + * A JSON string containing the finalized arguments for the MCP tool call. + */ + arguments: string; + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call_arguments.done'. + */ + type: 'response.mcp_call_arguments.done'; +} +/** + * Emitted when an MCP tool call has completed successfully. + */ +export interface ResponseMcpCallCompletedEvent { + /** + * The ID of the MCP tool call item that completed. + */ + item_id: string; + /** + * The index of the output item that completed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.completed'. + */ + type: 'response.mcp_call.completed'; +} +/** + * Emitted when an MCP tool call has failed. + */ +export interface ResponseMcpCallFailedEvent { + /** + * The ID of the MCP tool call item that failed. + */ + item_id: string; + /** + * The index of the output item that failed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.failed'. + */ + type: 'response.mcp_call.failed'; +} +/** + * Emitted when an MCP tool call is in progress. + */ +export interface ResponseMcpCallInProgressEvent { + /** + * The unique identifier of the MCP tool call item being processed. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_call.in_progress'. + */ + type: 'response.mcp_call.in_progress'; +} +/** + * Emitted when the list of available MCP tools has been successfully retrieved. + */ +export interface ResponseMcpListToolsCompletedEvent { + /** + * The ID of the MCP tool call item that produced this output. + */ + item_id: string; + /** + * The index of the output item that was processed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.completed'. + */ + type: 'response.mcp_list_tools.completed'; +} +/** + * Emitted when the attempt to list available MCP tools has failed. + */ +export interface ResponseMcpListToolsFailedEvent { + /** + * The ID of the MCP tool call item that failed. + */ + item_id: string; + /** + * The index of the output item that failed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.failed'. + */ + type: 'response.mcp_list_tools.failed'; +} +/** + * Emitted when the system is in the process of retrieving the list of available + * MCP tools. + */ +export interface ResponseMcpListToolsInProgressEvent { + /** + * The ID of the MCP tool call item that is being processed. + */ + item_id: string; + /** + * The index of the output item that is being processed. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.mcp_list_tools.in_progress'. + */ + type: 'response.mcp_list_tools.in_progress'; +} +/** + * An audio output from the model. + */ +export interface ResponseOutputAudio { + /** + * Base64-encoded audio data from the model. + */ + data: string; + /** + * The transcript of the audio data from the model. + */ + transcript: string; + /** + * The type of the output audio. Always `output_audio`. + */ + type: 'output_audio'; +} +/** + * An output message from the model. + */ +export type ResponseOutputItem = ResponseOutputMessage | ResponseFileSearchToolCall | ResponseFunctionToolCall | ResponseFunctionWebSearch | ResponseComputerToolCall | ResponseReasoningItem | ResponseOutputItem.ImageGenerationCall | ResponseCodeInterpreterToolCall | ResponseOutputItem.LocalShellCall | ResponseOutputItem.McpCall | ResponseOutputItem.McpListTools | ResponseOutputItem.McpApprovalRequest | ResponseCustomToolCall; +export declare namespace ResponseOutputItem { + /** + * An image generation request made by the model. + */ + interface ImageGenerationCall { + /** + * The unique ID of the image generation call. + */ + id: string; + /** + * The generated image encoded in base64. + */ + result: string | null; + /** + * The status of the image generation call. + */ + status: 'in_progress' | 'completed' | 'generating' | 'failed'; + /** + * The type of the image generation call. Always `image_generation_call`. + */ + type: 'image_generation_call'; + } + /** + * A tool call to run a command on the local shell. + */ + interface LocalShellCall { + /** + * The unique ID of the local shell call. + */ + id: string; + /** + * Execute a shell command on the server. + */ + action: LocalShellCall.Action; + /** + * The unique ID of the local shell tool call generated by the model. + */ + call_id: string; + /** + * The status of the local shell call. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the local shell call. Always `local_shell_call`. + */ + type: 'local_shell_call'; + } + namespace LocalShellCall { + /** + * Execute a shell command on the server. + */ + interface Action { + /** + * The command to run. + */ + command: Array; + /** + * Environment variables to set for the command. + */ + env: { + [key: string]: string; + }; + /** + * The type of the local shell action. Always `exec`. + */ + type: 'exec'; + /** + * Optional timeout in milliseconds for the command. + */ + timeout_ms?: number | null; + /** + * Optional user to run the command as. + */ + user?: string | null; + /** + * Optional working directory to run the command in. + */ + working_directory?: string | null; + } + } + /** + * An invocation of a tool on an MCP server. + */ + interface McpCall { + /** + * The unique ID of the tool call. + */ + id: string; + /** + * A JSON string of the arguments passed to the tool. + */ + arguments: string; + /** + * The name of the tool that was run. + */ + name: string; + /** + * The label of the MCP server running the tool. + */ + server_label: string; + /** + * The type of the item. Always `mcp_call`. + */ + type: 'mcp_call'; + /** + * The error from the tool call, if any. + */ + error?: string | null; + /** + * The output from the tool call. + */ + output?: string | null; + } + /** + * A list of tools available on an MCP server. + */ + interface McpListTools { + /** + * The unique ID of the list. + */ + id: string; + /** + * The label of the MCP server. + */ + server_label: string; + /** + * The tools available on the server. + */ + tools: Array; + /** + * The type of the item. Always `mcp_list_tools`. + */ + type: 'mcp_list_tools'; + /** + * Error message if the server could not list tools. + */ + error?: string | null; + } + namespace McpListTools { + /** + * A tool available on an MCP server. + */ + interface Tool { + /** + * The JSON schema describing the tool's input. + */ + input_schema: unknown; + /** + * The name of the tool. + */ + name: string; + /** + * Additional annotations about the tool. + */ + annotations?: unknown | null; + /** + * The description of the tool. + */ + description?: string | null; + } + } + /** + * A request for human approval of a tool invocation. + */ + interface McpApprovalRequest { + /** + * The unique ID of the approval request. + */ + id: string; + /** + * A JSON string of arguments for the tool. + */ + arguments: string; + /** + * The name of the tool to run. + */ + name: string; + /** + * The label of the MCP server making the request. + */ + server_label: string; + /** + * The type of the item. Always `mcp_approval_request`. + */ + type: 'mcp_approval_request'; + } +} +/** + * Emitted when a new output item is added. + */ +export interface ResponseOutputItemAddedEvent { + /** + * The output item that was added. + */ + item: ResponseOutputItem; + /** + * The index of the output item that was added. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_item.added`. + */ + type: 'response.output_item.added'; +} +/** + * Emitted when an output item is marked done. + */ +export interface ResponseOutputItemDoneEvent { + /** + * The output item that was marked done. + */ + item: ResponseOutputItem; + /** + * The index of the output item that was marked done. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_item.done`. + */ + type: 'response.output_item.done'; +} +/** + * An output message from the model. + */ +export interface ResponseOutputMessage { + /** + * The unique ID of the output message. + */ + id: string; + /** + * The content of the output message. + */ + content: Array; + /** + * The role of the output message. Always `assistant`. + */ + role: 'assistant'; + /** + * The status of the message input. One of `in_progress`, `completed`, or + * `incomplete`. Populated when input items are returned via API. + */ + status: 'in_progress' | 'completed' | 'incomplete'; + /** + * The type of the output message. Always `message`. + */ + type: 'message'; +} +/** + * A refusal from the model. + */ +export interface ResponseOutputRefusal { + /** + * The refusal explanation from the model. + */ + refusal: string; + /** + * The type of the refusal. Always `refusal`. + */ + type: 'refusal'; +} +/** + * A text output from the model. + */ +export interface ResponseOutputText { + /** + * The annotations of the text output. + */ + annotations: Array; + /** + * The text output from the model. + */ + text: string; + /** + * The type of the output text. Always `output_text`. + */ + type: 'output_text'; + logprobs?: Array; +} +export declare namespace ResponseOutputText { + /** + * A citation to a file. + */ + interface FileCitation { + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the file cited. + */ + filename: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file citation. Always `file_citation`. + */ + type: 'file_citation'; + } + /** + * A citation for a web resource used to generate a model response. + */ + interface URLCitation { + /** + * The index of the last character of the URL citation in the message. + */ + end_index: number; + /** + * The index of the first character of the URL citation in the message. + */ + start_index: number; + /** + * The title of the web resource. + */ + title: string; + /** + * The type of the URL citation. Always `url_citation`. + */ + type: 'url_citation'; + /** + * The URL of the web resource. + */ + url: string; + } + /** + * A citation for a container file used to generate a model response. + */ + interface ContainerFileCitation { + /** + * The ID of the container file. + */ + container_id: string; + /** + * The index of the last character of the container file citation in the message. + */ + end_index: number; + /** + * The ID of the file. + */ + file_id: string; + /** + * The filename of the container file cited. + */ + filename: string; + /** + * The index of the first character of the container file citation in the message. + */ + start_index: number; + /** + * The type of the container file citation. Always `container_file_citation`. + */ + type: 'container_file_citation'; + } + /** + * A path to a file. + */ + interface FilePath { + /** + * The ID of the file. + */ + file_id: string; + /** + * The index of the file in the list of files. + */ + index: number; + /** + * The type of the file path. Always `file_path`. + */ + type: 'file_path'; + } + /** + * The log probability of a token. + */ + interface Logprob { + token: string; + bytes: Array; + logprob: number; + top_logprobs: Array; + } + namespace Logprob { + /** + * The top log probability of a token. + */ + interface TopLogprob { + token: string; + bytes: Array; + logprob: number; + } + } +} +/** + * Emitted when an annotation is added to output text content. + */ +export interface ResponseOutputTextAnnotationAddedEvent { + /** + * The annotation object being added. (See annotation schema for details.) + */ + annotation: unknown; + /** + * The index of the annotation within the content part. + */ + annotation_index: number; + /** + * The index of the content part within the output item. + */ + content_index: number; + /** + * The unique identifier of the item to which the annotation is being added. + */ + item_id: string; + /** + * The index of the output item in the response's output array. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.output_text.annotation.added'. + */ + type: 'response.output_text.annotation.added'; +} +/** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ +export interface ResponsePrompt { + /** + * The unique identifier of the prompt template to use. + */ + id: string; + /** + * Optional map of values to substitute in for variables in your prompt. The + * substitution values can either be strings, or other Response input types like + * images or files. + */ + variables?: { + [key: string]: string | ResponseInputText | ResponseInputImage | ResponseInputFile; + } | null; + /** + * Optional version of the prompt template. + */ + version?: string | null; +} +/** + * Emitted when a response is queued and waiting to be processed. + */ +export interface ResponseQueuedEvent { + /** + * The full response object that is queued. + */ + response: Response; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always 'response.queued'. + */ + type: 'response.queued'; +} +/** + * A description of the chain of thought used by a reasoning model while generating + * a response. Be sure to include these items in your `input` to the Responses API + * for subsequent turns of a conversation if you are manually + * [managing context](https://platform.openai.com/docs/guides/conversation-state). + */ +export interface ResponseReasoningItem { + /** + * The unique identifier of the reasoning content. + */ + id: string; + /** + * Reasoning summary content. + */ + summary: Array; + /** + * The type of the object. Always `reasoning`. + */ + type: 'reasoning'; + /** + * Reasoning text content. + */ + content?: Array; + /** + * The encrypted content of the reasoning item - populated when a response is + * generated with `reasoning.encrypted_content` in the `include` parameter. + */ + encrypted_content?: string | null; + /** + * The status of the item. One of `in_progress`, `completed`, or `incomplete`. + * Populated when items are returned via API. + */ + status?: 'in_progress' | 'completed' | 'incomplete'; +} +export declare namespace ResponseReasoningItem { + interface Summary { + /** + * A summary of the reasoning output from the model so far. + */ + text: string; + /** + * The type of the object. Always `summary_text`. + */ + type: 'summary_text'; + } + interface Content { + /** + * Reasoning text output from the model. + */ + text: string; + /** + * The type of the object. Always `reasoning_text`. + */ + type: 'reasoning_text'; + } +} +/** + * Emitted when a new reasoning summary part is added. + */ +export interface ResponseReasoningSummaryPartAddedEvent { + /** + * The ID of the item this summary part is associated with. + */ + item_id: string; + /** + * The index of the output item this summary part is associated with. + */ + output_index: number; + /** + * The summary part that was added. + */ + part: ResponseReasoningSummaryPartAddedEvent.Part; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_part.added`. + */ + type: 'response.reasoning_summary_part.added'; +} +export declare namespace ResponseReasoningSummaryPartAddedEvent { + /** + * The summary part that was added. + */ + interface Part { + /** + * The text of the summary part. + */ + text: string; + /** + * The type of the summary part. Always `summary_text`. + */ + type: 'summary_text'; + } +} +/** + * Emitted when a reasoning summary part is completed. + */ +export interface ResponseReasoningSummaryPartDoneEvent { + /** + * The ID of the item this summary part is associated with. + */ + item_id: string; + /** + * The index of the output item this summary part is associated with. + */ + output_index: number; + /** + * The completed summary part. + */ + part: ResponseReasoningSummaryPartDoneEvent.Part; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_part.done`. + */ + type: 'response.reasoning_summary_part.done'; +} +export declare namespace ResponseReasoningSummaryPartDoneEvent { + /** + * The completed summary part. + */ + interface Part { + /** + * The text of the summary part. + */ + text: string; + /** + * The type of the summary part. Always `summary_text`. + */ + type: 'summary_text'; + } +} +/** + * Emitted when a delta is added to a reasoning summary text. + */ +export interface ResponseReasoningSummaryTextDeltaEvent { + /** + * The text delta that was added to the summary. + */ + delta: string; + /** + * The ID of the item this summary text delta is associated with. + */ + item_id: string; + /** + * The index of the output item this summary text delta is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The type of the event. Always `response.reasoning_summary_text.delta`. + */ + type: 'response.reasoning_summary_text.delta'; +} +/** + * Emitted when a reasoning summary text is completed. + */ +export interface ResponseReasoningSummaryTextDoneEvent { + /** + * The ID of the item this summary text is associated with. + */ + item_id: string; + /** + * The index of the output item this summary text is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The index of the summary part within the reasoning summary. + */ + summary_index: number; + /** + * The full text of the completed reasoning summary. + */ + text: string; + /** + * The type of the event. Always `response.reasoning_summary_text.done`. + */ + type: 'response.reasoning_summary_text.done'; +} +/** + * Emitted when a delta is added to a reasoning text. + */ +export interface ResponseReasoningTextDeltaEvent { + /** + * The index of the reasoning content part this delta is associated with. + */ + content_index: number; + /** + * The text delta that was added to the reasoning content. + */ + delta: string; + /** + * The ID of the item this reasoning text delta is associated with. + */ + item_id: string; + /** + * The index of the output item this reasoning text delta is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.reasoning_text.delta`. + */ + type: 'response.reasoning_text.delta'; +} +/** + * Emitted when a reasoning text is completed. + */ +export interface ResponseReasoningTextDoneEvent { + /** + * The index of the reasoning content part. + */ + content_index: number; + /** + * The ID of the item this reasoning text is associated with. + */ + item_id: string; + /** + * The index of the output item this reasoning text is associated with. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The full text of the completed reasoning content. + */ + text: string; + /** + * The type of the event. Always `response.reasoning_text.done`. + */ + type: 'response.reasoning_text.done'; +} +/** + * Emitted when there is a partial refusal text. + */ +export interface ResponseRefusalDeltaEvent { + /** + * The index of the content part that the refusal text is added to. + */ + content_index: number; + /** + * The refusal text that is added. + */ + delta: string; + /** + * The ID of the output item that the refusal text is added to. + */ + item_id: string; + /** + * The index of the output item that the refusal text is added to. + */ + output_index: number; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.refusal.delta`. + */ + type: 'response.refusal.delta'; +} +/** + * Emitted when refusal text is finalized. + */ +export interface ResponseRefusalDoneEvent { + /** + * The index of the content part that the refusal text is finalized. + */ + content_index: number; + /** + * The ID of the output item that the refusal text is finalized. + */ + item_id: string; + /** + * The index of the output item that the refusal text is finalized. + */ + output_index: number; + /** + * The refusal text that is finalized. + */ + refusal: string; + /** + * The sequence number of this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.refusal.done`. + */ + type: 'response.refusal.done'; +} +/** + * The status of the response generation. One of `completed`, `failed`, + * `in_progress`, `cancelled`, `queued`, or `incomplete`. + */ +export type ResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete'; +/** + * Emitted when there is a partial audio response. + */ +export type ResponseStreamEvent = ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseCodeInterpreterCallCodeDeltaEvent | ResponseCodeInterpreterCallCodeDoneEvent | ResponseCodeInterpreterCallCompletedEvent | ResponseCodeInterpreterCallInProgressEvent | ResponseCodeInterpreterCallInterpretingEvent | ResponseCompletedEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFileSearchCallCompletedEvent | ResponseFileSearchCallInProgressEvent | ResponseFileSearchCallSearchingEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseInProgressEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseReasoningSummaryPartAddedEvent | ResponseReasoningSummaryPartDoneEvent | ResponseReasoningSummaryTextDeltaEvent | ResponseReasoningSummaryTextDoneEvent | ResponseReasoningTextDeltaEvent | ResponseReasoningTextDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | ResponseWebSearchCallCompletedEvent | ResponseWebSearchCallInProgressEvent | ResponseWebSearchCallSearchingEvent | ResponseImageGenCallCompletedEvent | ResponseImageGenCallGeneratingEvent | ResponseImageGenCallInProgressEvent | ResponseImageGenCallPartialImageEvent | ResponseMcpCallArgumentsDeltaEvent | ResponseMcpCallArgumentsDoneEvent | ResponseMcpCallCompletedEvent | ResponseMcpCallFailedEvent | ResponseMcpCallInProgressEvent | ResponseMcpListToolsCompletedEvent | ResponseMcpListToolsFailedEvent | ResponseMcpListToolsInProgressEvent | ResponseOutputTextAnnotationAddedEvent | ResponseQueuedEvent | ResponseCustomToolCallInputDeltaEvent | ResponseCustomToolCallInputDoneEvent; +/** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ +export interface ResponseTextConfig { + /** + * An object specifying the format that the model must output. + * + * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which + * ensures the model will match your supplied JSON schema. Learn more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * + * The default format is `{ "type": "text" }` with no additional options. + * + * **Not recommended for gpt-4o and newer models:** + * + * Setting to `{ "type": "json_object" }` enables the older JSON mode, which + * ensures the message the model generates is valid JSON. Using `json_schema` is + * preferred for models that support it. + */ + format?: ResponseFormatTextConfig; + /** + * Constrains the verbosity of the model's response. Lower values will result in + * more concise responses, while higher values will result in more verbose + * responses. Currently supported values are `low`, `medium`, and `high`. + */ + verbosity?: 'low' | 'medium' | 'high' | null; +} +/** + * Emitted when there is an additional text delta. + */ +export interface ResponseTextDeltaEvent { + /** + * The index of the content part that the text delta was added to. + */ + content_index: number; + /** + * The text delta that was added. + */ + delta: string; + /** + * The ID of the output item that the text delta was added to. + */ + item_id: string; + /** + * The log probabilities of the tokens in the delta. + */ + logprobs: Array; + /** + * The index of the output item that the text delta was added to. + */ + output_index: number; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The type of the event. Always `response.output_text.delta`. + */ + type: 'response.output_text.delta'; +} +export declare namespace ResponseTextDeltaEvent { + /** + * A logprob is the logarithmic probability that the model assigns to producing a + * particular token at a given position in the sequence. Less-negative (higher) + * logprob values indicate greater model confidence in that token choice. + */ + interface Logprob { + /** + * A possible text token. + */ + token: string; + /** + * The log probability of this token. + */ + logprob: number; + /** + * The log probability of the top 20 most likely tokens. + */ + top_logprobs?: Array; + } + namespace Logprob { + interface TopLogprob { + /** + * A possible text token. + */ + token?: string; + /** + * The log probability of this token. + */ + logprob?: number; + } + } +} +/** + * Emitted when text content is finalized. + */ +export interface ResponseTextDoneEvent { + /** + * The index of the content part that the text content is finalized. + */ + content_index: number; + /** + * The ID of the output item that the text content is finalized. + */ + item_id: string; + /** + * The log probabilities of the tokens in the delta. + */ + logprobs: Array; + /** + * The index of the output item that the text content is finalized. + */ + output_index: number; + /** + * The sequence number for this event. + */ + sequence_number: number; + /** + * The text content that is finalized. + */ + text: string; + /** + * The type of the event. Always `response.output_text.done`. + */ + type: 'response.output_text.done'; +} +export declare namespace ResponseTextDoneEvent { + /** + * A logprob is the logarithmic probability that the model assigns to producing a + * particular token at a given position in the sequence. Less-negative (higher) + * logprob values indicate greater model confidence in that token choice. + */ + interface Logprob { + /** + * A possible text token. + */ + token: string; + /** + * The log probability of this token. + */ + logprob: number; + /** + * The log probability of the top 20 most likely tokens. + */ + top_logprobs?: Array; + } + namespace Logprob { + interface TopLogprob { + /** + * A possible text token. + */ + token?: string; + /** + * The log probability of this token. + */ + logprob?: number; + } + } +} +/** + * Represents token usage details including input tokens, output tokens, a + * breakdown of output tokens, and the total tokens used. + */ +export interface ResponseUsage { + /** + * The number of input tokens. + */ + input_tokens: number; + /** + * A detailed breakdown of the input tokens. + */ + input_tokens_details: ResponseUsage.InputTokensDetails; + /** + * The number of output tokens. + */ + output_tokens: number; + /** + * A detailed breakdown of the output tokens. + */ + output_tokens_details: ResponseUsage.OutputTokensDetails; + /** + * The total number of tokens used. + */ + total_tokens: number; +} +export declare namespace ResponseUsage { + /** + * A detailed breakdown of the input tokens. + */ + interface InputTokensDetails { + /** + * The number of tokens that were retrieved from the cache. + * [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching). + */ + cached_tokens: number; + } + /** + * A detailed breakdown of the output tokens. + */ + interface OutputTokensDetails { + /** + * The number of reasoning tokens. + */ + reasoning_tokens: number; + } +} +/** + * Emitted when a web search call is completed. + */ +export interface ResponseWebSearchCallCompletedEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.completed`. + */ + type: 'response.web_search_call.completed'; +} +/** + * Emitted when a web search call is initiated. + */ +export interface ResponseWebSearchCallInProgressEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.in_progress`. + */ + type: 'response.web_search_call.in_progress'; +} +/** + * Emitted when a web search call is executing. + */ +export interface ResponseWebSearchCallSearchingEvent { + /** + * Unique ID for the output item associated with the web search call. + */ + item_id: string; + /** + * The index of the output item that the web search call is associated with. + */ + output_index: number; + /** + * The sequence number of the web search call being processed. + */ + sequence_number: number; + /** + * The type of the event. Always `response.web_search_call.searching`. + */ + type: 'response.web_search_call.searching'; +} +/** + * A tool that can be used to generate a response. + */ +export type Tool = FunctionTool | FileSearchTool | ComputerTool | Tool.WebSearchTool | Tool.Mcp | Tool.CodeInterpreter | Tool.ImageGeneration | Tool.LocalShell | CustomTool | WebSearchTool; +export declare namespace Tool { + /** + * Search the Internet for sources related to the prompt. Learn more about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search). + */ + interface WebSearchTool { + /** + * The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. + */ + type: 'web_search' | 'web_search_2025_08_26'; + /** + * Filters for the search. + */ + filters?: WebSearchTool.Filters | null; + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * The approximate location of the user. + */ + user_location?: WebSearchTool.UserLocation | null; + } + namespace WebSearchTool { + /** + * Filters for the search. + */ + interface Filters { + /** + * Allowed domains for the search. If not provided, all domains are allowed. + * Subdomains of the provided domains are allowed as well. + * + * Example: `["pubmed.ncbi.nlm.nih.gov"]` + */ + allowed_domains?: Array | null; + } + /** + * The approximate location of the user. + */ + interface UserLocation { + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string | null; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string | null; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string | null; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string | null; + /** + * The type of location approximation. Always `approximate`. + */ + type?: 'approximate'; + } + } + /** + * Give the model access to additional tools via remote Model Context Protocol + * (MCP) servers. + * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp). + */ + interface Mcp { + /** + * A label for this MCP server, used to identify it in tool calls. + */ + server_label: string; + /** + * The type of the MCP tool. Always `mcp`. + */ + type: 'mcp'; + /** + * List of allowed tool names or a filter object. + */ + allowed_tools?: Array | Mcp.McpToolFilter | null; + /** + * An OAuth access token that can be used with a remote MCP server, either with a + * custom MCP server URL or a service connector. Your application must handle the + * OAuth authorization flow and provide the token here. + */ + authorization?: string; + /** + * Identifier for service connectors, like those available in ChatGPT. One of + * `server_url` or `connector_id` must be provided. Learn more about service + * connectors + * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors). + * + * Currently supported `connector_id` values are: + * + * - Dropbox: `connector_dropbox` + * - Gmail: `connector_gmail` + * - Google Calendar: `connector_googlecalendar` + * - Google Drive: `connector_googledrive` + * - Microsoft Teams: `connector_microsoftteams` + * - Outlook Calendar: `connector_outlookcalendar` + * - Outlook Email: `connector_outlookemail` + * - SharePoint: `connector_sharepoint` + */ + connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint'; + /** + * Optional HTTP headers to send to the MCP server. Use for authentication or other + * purposes. + */ + headers?: { + [key: string]: string; + } | null; + /** + * Specify which of the MCP server's tools require approval. + */ + require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null; + /** + * Optional description of the MCP server, used to provide more context. + */ + server_description?: string; + /** + * The URL for the MCP server. One of `server_url` or `connector_id` must be + * provided. + */ + server_url?: string; + } + namespace Mcp { + /** + * A filter object to specify which tools are allowed. + */ + interface McpToolFilter { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + /** + * Specify which of the MCP server's tools require approval. Can be `always`, + * `never`, or a filter object associated with tools that require approval. + */ + interface McpToolApprovalFilter { + /** + * A filter object to specify which tools are allowed. + */ + always?: McpToolApprovalFilter.Always; + /** + * A filter object to specify which tools are allowed. + */ + never?: McpToolApprovalFilter.Never; + } + namespace McpToolApprovalFilter { + /** + * A filter object to specify which tools are allowed. + */ + interface Always { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + /** + * A filter object to specify which tools are allowed. + */ + interface Never { + /** + * Indicates whether or not a tool modifies data or is read-only. If an MCP server + * is + * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + * it will match this filter. + */ + read_only?: boolean; + /** + * List of allowed tool names. + */ + tool_names?: Array; + } + } + } + /** + * A tool that runs Python code to help generate a response to a prompt. + */ + interface CodeInterpreter { + /** + * The code interpreter container. Can be a container ID or an object that + * specifies uploaded file IDs to make available to your code. + */ + container: string | CodeInterpreter.CodeInterpreterToolAuto; + /** + * The type of the code interpreter tool. Always `code_interpreter`. + */ + type: 'code_interpreter'; + } + namespace CodeInterpreter { + /** + * Configuration for a code interpreter container. Optionally specify the IDs of + * the files to run the code on. + */ + interface CodeInterpreterToolAuto { + /** + * Always `auto`. + */ + type: 'auto'; + /** + * An optional list of uploaded files to make available to your code. + */ + file_ids?: Array; + } + } + /** + * A tool that generates images using a model like `gpt-image-1`. + */ + interface ImageGeneration { + /** + * The type of the image generation tool. Always `image_generation`. + */ + type: 'image_generation'; + /** + * Background type for the generated image. One of `transparent`, `opaque`, or + * `auto`. Default: `auto`. + */ + background?: 'transparent' | 'opaque' | 'auto'; + /** + * Control how much effort the model will exert to match the style and features, + * especially facial features, of input images. This parameter is only supported + * for `gpt-image-1`. Supports `high` and `low`. Defaults to `low`. + */ + input_fidelity?: 'high' | 'low' | null; + /** + * Optional mask for inpainting. Contains `image_url` (string, optional) and + * `file_id` (string, optional). + */ + input_image_mask?: ImageGeneration.InputImageMask; + /** + * The image generation model to use. Default: `gpt-image-1`. + */ + model?: 'gpt-image-1'; + /** + * Moderation level for the generated image. Default: `auto`. + */ + moderation?: 'auto' | 'low'; + /** + * Compression level for the output image. Default: 100. + */ + output_compression?: number; + /** + * The output format of the generated image. One of `png`, `webp`, or `jpeg`. + * Default: `png`. + */ + output_format?: 'png' | 'webp' | 'jpeg'; + /** + * Number of partial images to generate in streaming mode, from 0 (default value) + * to 3. + */ + partial_images?: number; + /** + * The quality of the generated image. One of `low`, `medium`, `high`, or `auto`. + * Default: `auto`. + */ + quality?: 'low' | 'medium' | 'high' | 'auto'; + /** + * The size of the generated image. One of `1024x1024`, `1024x1536`, `1536x1024`, + * or `auto`. Default: `auto`. + */ + size?: '1024x1024' | '1024x1536' | '1536x1024' | 'auto'; + } + namespace ImageGeneration { + /** + * Optional mask for inpainting. Contains `image_url` (string, optional) and + * `file_id` (string, optional). + */ + interface InputImageMask { + /** + * File ID for the mask image. + */ + file_id?: string; + /** + * Base64-encoded mask image. + */ + image_url?: string; + } + } + /** + * A tool that allows the model to execute shell commands in a local environment. + */ + interface LocalShell { + /** + * The type of the local shell tool. Always `local_shell`. + */ + type: 'local_shell'; + } +} +/** + * Constrains the tools available to the model to a pre-defined set. + */ +export interface ToolChoiceAllowed { + /** + * Constrains the tools available to the model to a pre-defined set. + * + * `auto` allows the model to pick from among the allowed tools and generate a + * message. + * + * `required` requires the model to call one or more of the allowed tools. + */ + mode: 'auto' | 'required'; + /** + * A list of tool definitions that the model should be allowed to call. + * + * For the Responses API, the list of tool definitions might look like: + * + * ```json + * [ + * { "type": "function", "name": "get_weather" }, + * { "type": "mcp", "server_label": "deepwiki" }, + * { "type": "image_generation" } + * ] + * ``` + */ + tools: Array<{ + [key: string]: unknown; + }>; + /** + * Allowed tool configuration type. Always `allowed_tools`. + */ + type: 'allowed_tools'; +} +/** + * Use this option to force the model to call a specific custom tool. + */ +export interface ToolChoiceCustom { + /** + * The name of the custom tool to call. + */ + name: string; + /** + * For custom tool calling, the type is always `custom`. + */ + type: 'custom'; +} +/** + * Use this option to force the model to call a specific function. + */ +export interface ToolChoiceFunction { + /** + * The name of the function to call. + */ + name: string; + /** + * For function calling, the type is always `function`. + */ + type: 'function'; +} +/** + * Use this option to force the model to call a specific tool on a remote MCP + * server. + */ +export interface ToolChoiceMcp { + /** + * The label of the MCP server to use. + */ + server_label: string; + /** + * For MCP tools, the type is always `mcp`. + */ + type: 'mcp'; + /** + * The name of the tool to call on the server. + */ + name?: string | null; +} +/** + * Controls which (if any) tool is called by the model. + * + * `none` means the model will not call any tool and instead generates a message. + * + * `auto` means the model can pick between generating a message or calling one or + * more tools. + * + * `required` means the model must call one or more tools. + */ +export type ToolChoiceOptions = 'none' | 'auto' | 'required'; +/** + * Indicates that the model should use a built-in tool to generate a response. + * [Learn more about built-in tools](https://platform.openai.com/docs/guides/tools). + */ +export interface ToolChoiceTypes { + /** + * The type of hosted tool the model should to use. Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * + * Allowed values are: + * + * - `file_search` + * - `web_search_preview` + * - `computer_use_preview` + * - `code_interpreter` + * - `mcp` + * - `image_generation` + */ + type: 'file_search' | 'web_search_preview' | 'computer_use_preview' | 'web_search_preview_2025_03_11' | 'image_generation' | 'code_interpreter' | 'mcp'; +} +/** + * This tool searches the web for relevant results to use in a response. Learn more + * about the + * [web search tool](https://platform.openai.com/docs/guides/tools-web-search). + */ +export interface WebSearchTool { + /** + * The type of the web search tool. One of `web_search_preview` or + * `web_search_preview_2025_03_11`. + */ + type: 'web_search_preview' | 'web_search_preview_2025_03_11'; + /** + * High level guidance for the amount of context window space to use for the + * search. One of `low`, `medium`, or `high`. `medium` is the default. + */ + search_context_size?: 'low' | 'medium' | 'high'; + /** + * The user's location. + */ + user_location?: WebSearchTool.UserLocation | null; +} +export declare namespace WebSearchTool { + /** + * The user's location. + */ + interface UserLocation { + /** + * The type of location approximation. Always `approximate`. + */ + type: 'approximate'; + /** + * Free text input for the city of the user, e.g. `San Francisco`. + */ + city?: string | null; + /** + * The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + * the user, e.g. `US`. + */ + country?: string | null; + /** + * Free text input for the region of the user, e.g. `California`. + */ + region?: string | null; + /** + * The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + * user, e.g. `America/Los_Angeles`. + */ + timezone?: string | null; + } +} +export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming; +export interface ResponseCreateParamsBase { + /** + * Whether to run the model response in the background. + * [Learn more](https://platform.openai.com/docs/guides/background). + */ + background?: boolean | null; + /** + * The conversation that this response belongs to. Items from this conversation are + * prepended to `input_items` for this response request. Input items and output + * items from this response are automatically added to this conversation after this + * response completes. + */ + conversation?: string | ResponseConversationParam | null; + /** + * Specify additional output data to include in the model response. Currently + * supported values are: + * + * - `web_search_call.action.sources`: Include the sources of the web search tool + * call. + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `file_search_call.results`: Include the search results of the file search tool + * call. + * - `message.input_image.image_url`: Include image urls from the input message. + * - `computer_call_output.output.image_url`: Include image urls from the computer + * call output. + * - `reasoning.encrypted_content`: Includes an encrypted version of reasoning + * tokens in reasoning item outputs. This enables reasoning items to be used in + * multi-turn conversations when using the Responses API statelessly (like when + * the `store` parameter is set to `false`, or when an organization is enrolled + * in the zero data retention program). + * - `code_interpreter_call.outputs`: Includes the outputs of python code execution + * in code interpreter tool call items. + */ + include?: Array | null; + /** + * Text, image, or file inputs to the model, used to generate a response. + * + * Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Image inputs](https://platform.openai.com/docs/guides/images) + * - [File inputs](https://platform.openai.com/docs/guides/pdf-files) + * - [Conversation state](https://platform.openai.com/docs/guides/conversation-state) + * - [Function calling](https://platform.openai.com/docs/guides/function-calling) + */ + input?: string | ResponseInput; + /** + * A system (or developer) message inserted into the model's context. + * + * When using along with `previous_response_id`, the instructions from a previous + * response will not be carried over to the next response. This makes it simple to + * swap out system (or developer) messages in new responses. + */ + instructions?: string | null; + /** + * An upper bound for the number of tokens that can be generated for a response, + * including visible output tokens and + * [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + */ + max_output_tokens?: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, + * and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. + */ + model?: Shared.ResponsesModel; + /** + * Whether to allow the model to run tool calls in parallel. + */ + parallel_tool_calls?: boolean | null; + /** + * The unique ID of the previous response to the model. Use this to create + * multi-turn conversations. Learn more about + * [conversation state](https://platform.openai.com/docs/guides/conversation-state). + * Cannot be used in conjunction with `conversation`. + */ + previous_response_id?: string | null; + /** + * Reference to a prompt template and its variables. + * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + */ + prompt?: ResponsePrompt | null; + /** + * Used by OpenAI to cache responses for similar requests to optimize your cache + * hit rates. Replaces the `user` field. + * [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + */ + prompt_cache_key?: string; + /** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ + reasoning?: Shared.Reasoning | null; + /** + * A stable identifier used to help detect users of your application that may be + * violating OpenAI's usage policies. The IDs should be a string that uniquely + * identifies each user. We recommend hashing their username or email address, in + * order to avoid sending us any identifying information. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + safety_identifier?: string; + /** + * Specifies the latency tier to use for processing the request. This parameter is + * relevant for customers subscribed to the scale tier service: + * + * - If set to 'auto', then the request will be processed with the service tier + * configured in the Project settings. Unless otherwise configured, the Project + * will use 'default'. + * - If set to 'default', then the request will be processed with the standard + * pricing and performance for the selected model. + * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + * '[priority](https://openai.com/api-priority-processing/)', then the request + * will be processed with the corresponding service tier. + * - When not set, the default behavior is 'auto'. + * + * When this parameter is set, the response body will include the `service_tier` + * utilized. + */ + service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null; + /** + * Whether to store the generated model response for later retrieval via API. + */ + store?: boolean | null; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: boolean | null; + /** + * Options for streaming responses. Only set this when you set `stream: true`. + */ + stream_options?: ResponseCreateParams.StreamOptions | null; + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + * make the output more random, while lower values like 0.2 will make it more + * focused and deterministic. We generally recommend altering this or `top_p` but + * not both. + */ + temperature?: number | null; + /** + * Configuration options for a text response from the model. Can be plain text or + * structured JSON data. Learn more: + * + * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text) + * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) + */ + text?: ResponseTextConfig; + /** + * How the model should select which tool (or tools) to use when generating a + * response. See the `tools` parameter to see how to specify which tools the model + * can call. + */ + tool_choice?: ToolChoiceOptions | ToolChoiceAllowed | ToolChoiceTypes | ToolChoiceFunction | ToolChoiceMcp | ToolChoiceCustom; + /** + * An array of tools the model may call while generating a response. You can + * specify which tool to use by setting the `tool_choice` parameter. + * + * The two categories of tools you can provide the model are: + * + * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's + * capabilities, like + * [web search](https://platform.openai.com/docs/guides/tools-web-search) or + * [file search](https://platform.openai.com/docs/guides/tools-file-search). + * Learn more about + * [built-in tools](https://platform.openai.com/docs/guides/tools). + * - **Function calls (custom tools)**: Functions that are defined by you, enabling + * the model to call your own code with strongly typed arguments and outputs. + * Learn more about + * [function calling](https://platform.openai.com/docs/guides/function-calling). + * You can also use custom tools to call your own code. + */ + tools?: Array; + /** + * An alternative to sampling with temperature, called nucleus sampling, where the + * model considers the results of the tokens with top_p probability mass. So 0.1 + * means only the tokens comprising the top 10% probability mass are considered. + * + * We generally recommend altering this or `temperature` but not both. + */ + top_p?: number | null; + /** + * The truncation strategy to use for the model response. + * + * - `auto`: If the context of this response and previous ones exceeds the model's + * context window size, the model will truncate the response to fit the context + * window by dropping input items in the middle of the conversation. + * - `disabled` (default): If a model response will exceed the context window size + * for a model, the request will fail with a 400 error. + */ + truncation?: 'auto' | 'disabled' | null; + /** + * @deprecated This field is being replaced by `safety_identifier` and + * `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching + * optimizations. A stable identifier for your end-users. Used to boost cache hit + * rates by better bucketing similar requests and to help OpenAI detect and prevent + * abuse. + * [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + */ + user?: string; +} +export declare namespace ResponseCreateParams { + /** + * Options for streaming responses. Only set this when you set `stream: true`. + */ + interface StreamOptions { + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + } + type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming; + type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming; +} +export interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: false | null; +} +export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream: true; +} +export type ResponseRetrieveParams = ResponseRetrieveParamsNonStreaming | ResponseRetrieveParamsStreaming; +export interface ResponseRetrieveParamsBase { + /** + * Additional fields to include in the response. See the `include` parameter for + * Response creation above for more information. + */ + include?: Array; + /** + * When true, stream obfuscation will be enabled. Stream obfuscation adds random + * characters to an `obfuscation` field on streaming delta events to normalize + * payload sizes as a mitigation to certain side-channel attacks. These obfuscation + * fields are included by default, but add a small amount of overhead to the data + * stream. You can set `include_obfuscation` to false to optimize for bandwidth if + * you trust the network links between your application and the OpenAI API. + */ + include_obfuscation?: boolean; + /** + * The sequence number of the event after which to start streaming. + */ + starting_after?: number; + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: boolean; +} +export declare namespace ResponseRetrieveParams { + type ResponseRetrieveParamsNonStreaming = ResponsesAPI.ResponseRetrieveParamsNonStreaming; + type ResponseRetrieveParamsStreaming = ResponsesAPI.ResponseRetrieveParamsStreaming; +} +export interface ResponseRetrieveParamsNonStreaming extends ResponseRetrieveParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream?: false; +} +export interface ResponseRetrieveParamsStreaming extends ResponseRetrieveParamsBase { + /** + * If set to true, the model response data will be streamed to the client as it is + * generated using + * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + * See the + * [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming) + * for more information. + */ + stream: true; +} +export declare namespace Responses { + export { type ComputerTool as ComputerTool, type CustomTool as CustomTool, type EasyInputMessage as EasyInputMessage, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type Response as Response, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCodeInterpreterCallCodeDeltaEvent as ResponseCodeInterpreterCallCodeDeltaEvent, type ResponseCodeInterpreterCallCodeDoneEvent as ResponseCodeInterpreterCallCodeDoneEvent, type ResponseCodeInterpreterCallCompletedEvent as ResponseCodeInterpreterCallCompletedEvent, type ResponseCodeInterpreterCallInProgressEvent as ResponseCodeInterpreterCallInProgressEvent, type ResponseCodeInterpreterCallInterpretingEvent as ResponseCodeInterpreterCallInterpretingEvent, type ResponseCodeInterpreterToolCall as ResponseCodeInterpreterToolCall, type ResponseCompletedEvent as ResponseCompletedEvent, type ResponseComputerToolCall as ResponseComputerToolCall, type ResponseComputerToolCallOutputItem as ResponseComputerToolCallOutputItem, type ResponseComputerToolCallOutputScreenshot as ResponseComputerToolCallOutputScreenshot, type ResponseContent as ResponseContent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseConversationParam as ResponseConversationParam, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseCustomToolCall as ResponseCustomToolCall, type ResponseCustomToolCallInputDeltaEvent as ResponseCustomToolCallInputDeltaEvent, type ResponseCustomToolCallInputDoneEvent as ResponseCustomToolCallInputDoneEvent, type ResponseCustomToolCallOutput as ResponseCustomToolCallOutput, type ResponseError as ResponseError, type ResponseErrorEvent as ResponseErrorEvent, type ResponseFailedEvent as ResponseFailedEvent, type ResponseFileSearchCallCompletedEvent as ResponseFileSearchCallCompletedEvent, type ResponseFileSearchCallInProgressEvent as ResponseFileSearchCallInProgressEvent, type ResponseFileSearchCallSearchingEvent as ResponseFileSearchCallSearchingEvent, type ResponseFileSearchToolCall as ResponseFileSearchToolCall, type ResponseFormatTextConfig as ResponseFormatTextConfig, type ResponseFormatTextJSONSchemaConfig as ResponseFormatTextJSONSchemaConfig, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseFunctionToolCall as ResponseFunctionToolCall, type ResponseFunctionToolCallItem as ResponseFunctionToolCallItem, type ResponseFunctionToolCallOutputItem as ResponseFunctionToolCallOutputItem, type ResponseFunctionWebSearch as ResponseFunctionWebSearch, type ResponseImageGenCallCompletedEvent as ResponseImageGenCallCompletedEvent, type ResponseImageGenCallGeneratingEvent as ResponseImageGenCallGeneratingEvent, type ResponseImageGenCallInProgressEvent as ResponseImageGenCallInProgressEvent, type ResponseImageGenCallPartialImageEvent as ResponseImageGenCallPartialImageEvent, type ResponseInProgressEvent as ResponseInProgressEvent, type ResponseIncludable as ResponseIncludable, type ResponseIncompleteEvent as ResponseIncompleteEvent, type ResponseInput as ResponseInput, type ResponseInputAudio as ResponseInputAudio, type ResponseInputContent as ResponseInputContent, type ResponseInputFile as ResponseInputFile, type ResponseInputImage as ResponseInputImage, type ResponseInputItem as ResponseInputItem, type ResponseInputMessageContentList as ResponseInputMessageContentList, type ResponseInputMessageItem as ResponseInputMessageItem, type ResponseInputText as ResponseInputText, type ResponseItem as ResponseItem, type ResponseMcpCallArgumentsDeltaEvent as ResponseMcpCallArgumentsDeltaEvent, type ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent, type ResponseMcpCallCompletedEvent as ResponseMcpCallCompletedEvent, type ResponseMcpCallFailedEvent as ResponseMcpCallFailedEvent, type ResponseMcpCallInProgressEvent as ResponseMcpCallInProgressEvent, type ResponseMcpListToolsCompletedEvent as ResponseMcpListToolsCompletedEvent, type ResponseMcpListToolsFailedEvent as ResponseMcpListToolsFailedEvent, type ResponseMcpListToolsInProgressEvent as ResponseMcpListToolsInProgressEvent, type ResponseOutputAudio as ResponseOutputAudio, type ResponseOutputItem as ResponseOutputItem, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseOutputMessage as ResponseOutputMessage, type ResponseOutputRefusal as ResponseOutputRefusal, type ResponseOutputText as ResponseOutputText, type ResponseOutputTextAnnotationAddedEvent as ResponseOutputTextAnnotationAddedEvent, type ResponsePrompt as ResponsePrompt, type ResponseQueuedEvent as ResponseQueuedEvent, type ResponseReasoningItem as ResponseReasoningItem, type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent, type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent, type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent, type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent, type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent, type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent, type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent, type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent, type ResponseStatus as ResponseStatus, type ResponseStreamEvent as ResponseStreamEvent, type ResponseTextConfig as ResponseTextConfig, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type ResponseUsage as ResponseUsage, type ResponseWebSearchCallCompletedEvent as ResponseWebSearchCallCompletedEvent, type ResponseWebSearchCallInProgressEvent as ResponseWebSearchCallInProgressEvent, type ResponseWebSearchCallSearchingEvent as ResponseWebSearchCallSearchingEvent, type Tool as Tool, type ToolChoiceAllowed as ToolChoiceAllowed, type ToolChoiceCustom as ToolChoiceCustom, type ToolChoiceFunction as ToolChoiceFunction, type ToolChoiceMcp as ToolChoiceMcp, type ToolChoiceOptions as ToolChoiceOptions, type ToolChoiceTypes as ToolChoiceTypes, type WebSearchTool as WebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, }; + export { InputItems as InputItems, type ResponseItemList as ResponseItemList, type InputItemListParams as InputItemListParams, }; +} +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..97bebbc42aaf7750ed6a830df79dd929b5d5c936 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/resources/responses/responses.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,8BAA8B,EAEnC,KAAK,6BAA6B,EAEnC;OACM,EAAE,cAAc,EAAE,oBAAoB,EAAE;OACxC,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE;OACrD,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB,MAAM,WAAW,wBAAwB,CAAC,OAAO,CAAE,SAAQ,kBAAkB;IAC3E,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,aAAa,CAAC,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,GAAG,qBAAqB,CAAC;AAE/F,MAAM,WAAW,2BAA2B,CAAC,OAAO,CAAE,SAAQ,qBAAqB;IACjF,OAAO,EAAE,aAAa,CAAC,OAAO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B,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js new file mode 100644 index 0000000000000000000000000000000000000000..cfd40fabde5b5690f088909173721bbc658af191 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js @@ -0,0 +1,83 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Responses = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const ResponsesParser_1 = require("../../lib/ResponsesParser.js"); +const ResponseStream_1 = require("../../lib/responses/ResponseStream.js"); +const resource_1 = require("../../core/resource.js"); +const InputItemsAPI = tslib_1.__importStar(require("./input-items.js")); +const input_items_1 = require("./input-items.js"); +const headers_1 = require("../../internal/headers.js"); +const path_1 = require("../../internal/utils/path.js"); +class Responses extends resource_1.APIResource { + constructor() { + super(...arguments); + this.inputItems = new InputItemsAPI.InputItems(this._client); + } + create(body, options) { + return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => { + if ('object' in rsp && rsp.object === 'response') { + (0, ResponsesParser_1.addOutputText)(rsp); + } + return rsp; + }); + } + retrieve(responseID, query = {}, options) { + return this._client.get((0, path_1.path) `/responses/${responseID}`, { + query, + ...options, + stream: query?.stream ?? false, + })._thenUnwrap((rsp) => { + if ('object' in rsp && rsp.object === 'response') { + (0, ResponsesParser_1.addOutputText)(rsp); + } + return rsp; + }); + } + /** + * Deletes a model response with the given ID. + * + * @example + * ```ts + * await client.responses.delete( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + delete(responseID, options) { + return this._client.delete((0, path_1.path) `/responses/${responseID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]), + }); + } + parse(body, options) { + return this._client.responses + .create(body, options) + ._thenUnwrap((response) => (0, ResponsesParser_1.parseResponse)(response, body)); + } + /** + * Creates a model response stream + */ + stream(body, options) { + return ResponseStream_1.ResponseStream.createResponse(this._client, body, options); + } + /** + * Cancels a model response with the given ID. Only responses created with the + * `background` parameter set to `true` can be cancelled. + * [Learn more](https://platform.openai.com/docs/guides/background). + * + * @example + * ```ts + * const response = await client.responses.cancel( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + cancel(responseID, options) { + return this._client.post((0, path_1.path) `/responses/${responseID}/cancel`, options); + } +} +exports.Responses = Responses; +Responses.InputItems = input_items_1.InputItems; +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3cbe1eb7bdd933c0ac0c14447d6f5639b688261b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/resources/responses/responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,kEAKmC;AACnC,0EAA0F;AAC1F,qDAAkD;AAGlD,wEAA+C;AAC/C,kDAAkF;AAIlF,uDAAsD;AAEtD,uD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,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CACH,IAAY,EACZ,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS;aAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;aACrB,WAAW,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAA,+BAAa,EAAC,QAAoB,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAY,EACZ,OAAwB;QAExB,OAAO,+BAAc,CAAC,cAAc,CAAU,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AA/ID,8BA+IC;AAsvKD,SAAS,CAAC,UAAU,GAAG,wBAAU,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs new file mode 100644 index 0000000000000000000000000000000000000000..159ad4e51b8b0373dbd2ccf3adda87bd96dd9085 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs @@ -0,0 +1,78 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { parseResponse, addOutputText, } from "../../lib/ResponsesParser.mjs"; +import { ResponseStream } from "../../lib/responses/ResponseStream.mjs"; +import { APIResource } from "../../core/resource.mjs"; +import * as InputItemsAPI from "./input-items.mjs"; +import { InputItems } from "./input-items.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Responses extends APIResource { + constructor() { + super(...arguments); + this.inputItems = new InputItemsAPI.InputItems(this._client); + } + create(body, options) { + return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => { + if ('object' in rsp && rsp.object === 'response') { + addOutputText(rsp); + } + return rsp; + }); + } + retrieve(responseID, query = {}, options) { + return this._client.get(path `/responses/${responseID}`, { + query, + ...options, + stream: query?.stream ?? false, + })._thenUnwrap((rsp) => { + if ('object' in rsp && rsp.object === 'response') { + addOutputText(rsp); + } + return rsp; + }); + } + /** + * Deletes a model response with the given ID. + * + * @example + * ```ts + * await client.responses.delete( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + delete(responseID, options) { + return this._client.delete(path `/responses/${responseID}`, { + ...options, + headers: buildHeaders([{ Accept: '*/*' }, options?.headers]), + }); + } + parse(body, options) { + return this._client.responses + .create(body, options) + ._thenUnwrap((response) => parseResponse(response, body)); + } + /** + * Creates a model response stream + */ + stream(body, options) { + return ResponseStream.createResponse(this._client, body, options); + } + /** + * Cancels a model response with the given ID. Only responses created with the + * `background` parameter set to `true` can be cancelled. + * [Learn more](https://platform.openai.com/docs/guides/background). + * + * @example + * ```ts + * const response = await client.responses.cancel( + * 'resp_677efb5139a88190b512bc3fef8e535d', + * ); + * ``` + */ + cancel(responseID, options) { + return this._client.post(path `/responses/${responseID}/cancel`, options); + } +} +Responses.InputItems = InputItems; +//# sourceMappingURL=responses.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..d9ae24c0fca1f9da7c827a3ba78a5d6d0cecedd1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/responses/responses.mjs.map @@ -0,0 +1 @@ +{"version":3,"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AG,CAAC;QACb,CAAC,CAAmE,CAAC;IACvE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,UAAU,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CACH,IAAY,EACZ,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS;aAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;aACrB,WAAW,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,QAAoB,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAY,EACZ,OAAwB;QAExB,OAAO,cAAc,CAAC,cAAc,CAAU,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAsvKD,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..99a3063d1a5b7f8f749d84c26ad30f5517ada2e4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts @@ -0,0 +1,265 @@ +export type AllModels = (string & {}) | ChatModel | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11'; +export type ChatModel = 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613'; +/** + * A filter used to compare a specified attribute key to a given value using a + * defined comparison operation. + */ +export interface ComparisonFilter { + /** + * The key to compare against the value. + */ + key: string; + /** + * Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`. + * + * - `eq`: equals + * - `ne`: not equal + * - `gt`: greater than + * - `gte`: greater than or equal + * - `lt`: less than + * - `lte`: less than or equal + */ + type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; + /** + * The value to compare against the attribute key; supports string, number, or + * boolean types. + */ + value: string | number | boolean; +} +/** + * Combine multiple filters using `and` or `or`. + */ +export interface CompoundFilter { + /** + * Array of filters to combine. Items can be `ComparisonFilter` or + * `CompoundFilter`. + */ + filters: Array; + /** + * Type of operation: `and` or `or`. + */ + type: 'and' | 'or'; +} +/** + * The input format for the custom tool. Default is unconstrained text. + */ +export type CustomToolInputFormat = CustomToolInputFormat.Text | CustomToolInputFormat.Grammar; +export declare namespace CustomToolInputFormat { + /** + * Unconstrained free-form text. + */ + interface Text { + /** + * Unconstrained text format. Always `text`. + */ + type: 'text'; + } + /** + * A grammar defined by the user. + */ + interface Grammar { + /** + * The grammar definition. + */ + definition: string; + /** + * The syntax of the grammar definition. One of `lark` or `regex`. + */ + syntax: 'lark' | 'regex'; + /** + * Grammar format. Always `grammar`. + */ + type: 'grammar'; + } +} +export interface ErrorObject { + code: string | null; + message: string; + param: string | null; + type: string; +} +export interface FunctionDefinition { + /** + * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain + * underscores and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the function does, used by the model to choose when and + * how to call the function. + */ + description?: string; + /** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ + parameters?: FunctionParameters; + /** + * Whether to enable strict schema adherence when generating the function call. If + * set to true, the model will follow the exact schema defined in the `parameters` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn + * more about Structured Outputs in the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling). + */ + strict?: boolean | null; +} +/** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ +export type FunctionParameters = { + [key: string]: unknown; +}; +/** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ +export type Metadata = { + [key: string]: string; +}; +/** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ +export interface Reasoning { + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + effort?: ReasoningEffort | null; + /** + * @deprecated **Deprecated:** use `summary` instead. + * + * A summary of the reasoning performed by the model. This can be useful for + * debugging and understanding the model's reasoning process. One of `auto`, + * `concise`, or `detailed`. + */ + generate_summary?: 'auto' | 'concise' | 'detailed' | null; + /** + * A summary of the reasoning performed by the model. This can be useful for + * debugging and understanding the model's reasoning process. One of `auto`, + * `concise`, or `detailed`. + */ + summary?: 'auto' | 'concise' | 'detailed' | null; +} +/** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ +export type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | null; +/** + * JSON object response format. An older method of generating JSON responses. Using + * `json_schema` is recommended for models that support it. Note that the model + * will not generate JSON without a system or user message instructing it to do so. + */ +export interface ResponseFormatJSONObject { + /** + * The type of response format being defined. Always `json_object`. + */ + type: 'json_object'; +} +/** + * JSON Schema response format. Used to generate structured JSON responses. Learn + * more about + * [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). + */ +export interface ResponseFormatJSONSchema { + /** + * Structured Outputs configuration options, including a JSON Schema. + */ + json_schema: ResponseFormatJSONSchema.JSONSchema; + /** + * The type of response format being defined. Always `json_schema`. + */ + type: 'json_schema'; +} +export declare namespace ResponseFormatJSONSchema { + /** + * Structured Outputs configuration options, including a JSON Schema. + */ + interface JSONSchema { + /** + * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores + * and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the response format is for, used by the model to determine + * how to respond in the format. + */ + description?: string; + /** + * The schema for the response format, described as a JSON Schema object. Learn how + * to build JSON schemas [here](https://json-schema.org/). + */ + schema?: { + [key: string]: unknown; + }; + /** + * Whether to enable strict schema adherence when generating the output. If set to + * true, the model will always follow the exact schema defined in the `schema` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. To + * learn more, read the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + */ + strict?: boolean | null; + } +} +/** + * Default response format. Used to generate text responses. + */ +export interface ResponseFormatText { + /** + * The type of response format being defined. Always `text`. + */ + type: 'text'; +} +/** + * A custom grammar for the model to follow when generating text. Learn more in the + * [custom grammars guide](https://platform.openai.com/docs/guides/custom-grammars). + */ +export interface ResponseFormatTextGrammar { + /** + * The custom grammar for the model to follow. + */ + grammar: string; + /** + * The type of response format being defined. Always `grammar`. + */ + type: 'grammar'; +} +/** + * Configure the model to generate valid Python code. See the + * [custom grammars guide](https://platform.openai.com/docs/guides/custom-grammars) + * for more details. + */ +export interface ResponseFormatTextPython { + /** + * The type of response format being defined. Always `python`. + */ + type: 'python'; +} +export type ResponsesModel = (string & {}) | ChatModel | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11'; +//# sourceMappingURL=shared.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..c49d7fe4f190aa4aaa60a107f62e8ba87d78241a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,CAAC;AAEtC,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,uBAAuB,GACvB,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,yBAAyB,GACzB,yBAAyB,GACzB,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,YAAY,GACZ,uBAAuB,GACvB,SAAS,GACT,oBAAoB,GACpB,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,iCAAiC,GACjC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AAwB,CAAC,UAAU,CAAC;IAEjD;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEpC;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GACtB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1201c0af5fedeef6a946c0999c64890fa3c83838 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts @@ -0,0 +1,265 @@ +export type AllModels = (string & {}) | ChatModel | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11'; +export type ChatModel = 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613'; +/** + * A filter used to compare a specified attribute key to a given value using a + * defined comparison operation. + */ +export interface ComparisonFilter { + /** + * The key to compare against the value. + */ + key: string; + /** + * Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`. + * + * - `eq`: equals + * - `ne`: not equal + * - `gt`: greater than + * - `gte`: greater than or equal + * - `lt`: less than + * - `lte`: less than or equal + */ + type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; + /** + * The value to compare against the attribute key; supports string, number, or + * boolean types. + */ + value: string | number | boolean; +} +/** + * Combine multiple filters using `and` or `or`. + */ +export interface CompoundFilter { + /** + * Array of filters to combine. Items can be `ComparisonFilter` or + * `CompoundFilter`. + */ + filters: Array; + /** + * Type of operation: `and` or `or`. + */ + type: 'and' | 'or'; +} +/** + * The input format for the custom tool. Default is unconstrained text. + */ +export type CustomToolInputFormat = CustomToolInputFormat.Text | CustomToolInputFormat.Grammar; +export declare namespace CustomToolInputFormat { + /** + * Unconstrained free-form text. + */ + interface Text { + /** + * Unconstrained text format. Always `text`. + */ + type: 'text'; + } + /** + * A grammar defined by the user. + */ + interface Grammar { + /** + * The grammar definition. + */ + definition: string; + /** + * The syntax of the grammar definition. One of `lark` or `regex`. + */ + syntax: 'lark' | 'regex'; + /** + * Grammar format. Always `grammar`. + */ + type: 'grammar'; + } +} +export interface ErrorObject { + code: string | null; + message: string; + param: string | null; + type: string; +} +export interface FunctionDefinition { + /** + * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain + * underscores and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the function does, used by the model to choose when and + * how to call the function. + */ + description?: string; + /** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ + parameters?: FunctionParameters; + /** + * Whether to enable strict schema adherence when generating the function call. If + * set to true, the model will follow the exact schema defined in the `parameters` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn + * more about Structured Outputs in the + * [function calling guide](https://platform.openai.com/docs/guides/function-calling). + */ + strict?: boolean | null; +} +/** + * The parameters the functions accepts, described as a JSON Schema object. See the + * [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the + * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + * documentation about the format. + * + * Omitting `parameters` defines a function with an empty parameter list. + */ +export type FunctionParameters = { + [key: string]: unknown; +}; +/** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ +export type Metadata = { + [key: string]: string; +}; +/** + * **gpt-5 and o-series models only** + * + * Configuration options for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). + */ +export interface Reasoning { + /** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ + effort?: ReasoningEffort | null; + /** + * @deprecated **Deprecated:** use `summary` instead. + * + * A summary of the reasoning performed by the model. This can be useful for + * debugging and understanding the model's reasoning process. One of `auto`, + * `concise`, or `detailed`. + */ + generate_summary?: 'auto' | 'concise' | 'detailed' | null; + /** + * A summary of the reasoning performed by the model. This can be useful for + * debugging and understanding the model's reasoning process. One of `auto`, + * `concise`, or `detailed`. + */ + summary?: 'auto' | 'concise' | 'detailed' | null; +} +/** + * Constrains effort on reasoning for + * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + * supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning + * effort can result in faster responses and fewer tokens used on reasoning in a + * response. + */ +export type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | null; +/** + * JSON object response format. An older method of generating JSON responses. Using + * `json_schema` is recommended for models that support it. Note that the model + * will not generate JSON without a system or user message instructing it to do so. + */ +export interface ResponseFormatJSONObject { + /** + * The type of response format being defined. Always `json_object`. + */ + type: 'json_object'; +} +/** + * JSON Schema response format. Used to generate structured JSON responses. Learn + * more about + * [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). + */ +export interface ResponseFormatJSONSchema { + /** + * Structured Outputs configuration options, including a JSON Schema. + */ + json_schema: ResponseFormatJSONSchema.JSONSchema; + /** + * The type of response format being defined. Always `json_schema`. + */ + type: 'json_schema'; +} +export declare namespace ResponseFormatJSONSchema { + /** + * Structured Outputs configuration options, including a JSON Schema. + */ + interface JSONSchema { + /** + * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores + * and dashes, with a maximum length of 64. + */ + name: string; + /** + * A description of what the response format is for, used by the model to determine + * how to respond in the format. + */ + description?: string; + /** + * The schema for the response format, described as a JSON Schema object. Learn how + * to build JSON schemas [here](https://json-schema.org/). + */ + schema?: { + [key: string]: unknown; + }; + /** + * Whether to enable strict schema adherence when generating the output. If set to + * true, the model will always follow the exact schema defined in the `schema` + * field. Only a subset of JSON Schema is supported when `strict` is `true`. To + * learn more, read the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + */ + strict?: boolean | null; + } +} +/** + * Default response format. Used to generate text responses. + */ +export interface ResponseFormatText { + /** + * The type of response format being defined. Always `text`. + */ + type: 'text'; +} +/** + * A custom grammar for the model to follow when generating text. Learn more in the + * [custom grammars guide](https://platform.openai.com/docs/guides/custom-grammars). + */ +export interface ResponseFormatTextGrammar { + /** + * The custom grammar for the model to follow. + */ + grammar: string; + /** + * The type of response format being defined. Always `grammar`. + */ + type: 'grammar'; +} +/** + * Configure the model to generate valid Python code. See the + * [custom grammars guide](https://platform.openai.com/docs/guides/custom-grammars) + * for more details. + */ +export interface ResponseFormatTextPython { + /** + * The type of response format being defined. Always `python`. + */ + type: 'python'; +} +export type ResponsesModel = (string & {}) | ChatModel | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11'; +//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..763612462ed3aa9848deecd672861be9561377d0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,CAAC;AAEtC,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,uBAAuB,GACvB,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,yBAAyB,GACzB,yBAAyB,GACzB,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,YAAY,GACZ,uBAAuB,GACvB,SAAS,GACT,oBAAoB,GACpB,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,iCAAiC,GACjC,iCAAiC,GACjC,iCAAiC,GACjC,2BAA2B,G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ACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEpC;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GACtB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js new file mode 100644 index 0000000000000000000000000000000000000000..db0cae177b55b03281ce001453daa9b4874edf2a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js @@ -0,0 +1,4 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e532ab2cd75f671cbef8791617e56d4cd0b5e6d8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a88d4e1268fb4c84c66b4121e6e0a320586be89e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export {}; +//# sourceMappingURL=shared.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ac8fa86401f84797458257482e1fcde8109eb235 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/shared.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..23a73a8547915ecf379a81bad317dbbece2f6759 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts @@ -0,0 +1,2 @@ +export * from "./uploads/index.mjs"; +//# sourceMappingURL=uploads.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6dfb2163eeda79214ac6f62db79015d88e6a454e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..7367695119b520fc7ca89c773d6d24727251f3d2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts @@ -0,0 +1,2 @@ +export * from "./uploads/index.js"; +//# sourceMappingURL=uploads.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..66ff900c9c4e47bc5828fcadc927de9b078ff59f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js new file mode 100644 index 0000000000000000000000000000000000000000..ef78c7f485d931a74ea110cfd219a7e4e6ed6305 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./uploads/index.js"), exports); +//# sourceMappingURL=uploads.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js.map new file mode 100644 index 0000000000000000000000000000000000000000..6ebfe5c54cd9e0fd2e2f05511d8210d02aed72d8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs new file mode 100644 index 0000000000000000000000000000000000000000..913d2ca61f72563d2ddb1a81df9a9b74bba21883 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./uploads/index.mjs"; +//# sourceMappingURL=uploads.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..55c4a24d4646ea928536fb7fc470857e101c30fa --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..40d349bf62ba4bdfab3cf803371a89eaf846d176 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts @@ -0,0 +1,3 @@ +export { Parts, type UploadPart, type PartCreateParams } from "./parts.mjs"; +export { Uploads, type Upload, type UploadCreateParams, type UploadCompleteParams } from "./uploads.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..cda72062c04162730b1b75a882b05dbb96fdcc6b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/uploads/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE;OACjD,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..745ba63bd104fe410145dc1d3e5619604faf504f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts @@ -0,0 +1,3 @@ +export { Parts, type UploadPart, type PartCreateParams } from "./parts.js"; +export { Uploads, type Upload, type UploadCreateParams, type UploadCompleteParams } from "./uploads.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..bc1c27feb135419f371bd2f29a71a75154924af3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/uploads/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE;OACjD,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js new file mode 100644 index 0000000000000000000000000000000000000000..bce24dfecda08ad0c6b132b25ce194be81344ddd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js @@ -0,0 +1,9 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Uploads = exports.Parts = void 0; +var parts_1 = require("./parts.js"); +Object.defineProperty(exports, "Parts", { enumerable: true, get: function () { return parts_1.Parts; } }); +var uploads_1 = require("./uploads.js"); +Object.defineProperty(exports, "Uploads", { enumerable: true, get: function () { return uploads_1.Uploads; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..ea2e5416459fa986ad0395d3b99f72cd50ce4afe --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/uploads/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAwE;AAA/D,8FAAA,KAAK,OAAA;AACd,wCAAqG;AAA5F,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..65b528059d7aec758b493d0b791160ef20905e3c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs @@ -0,0 +1,4 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { Parts } from "./parts.mjs"; +export { Uploads } from "./uploads.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..5d3a737b25386ac413e415da20850569859cc46f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/uploads/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA0C;OACjD,EAAE,OAAO,EAAmE"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..90079d7d40410293057d82206402367cdc532b39 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts @@ -0,0 +1,51 @@ +import { APIResource } from "../../core/resource.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { type Uploadable } from "../../core/uploads.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Parts extends APIResource { + /** + * Adds a + * [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. + * A Part represents a chunk of bytes from the file you are trying to upload. + * + * Each Part can be at most 64 MB, and you can add Parts until you hit the Upload + * maximum of 8 GB. + * + * It is possible to add multiple Parts in parallel. You can decide the intended + * order of the Parts when you + * [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). + */ + create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise; +} +/** + * The upload Part represents a chunk of bytes we can add to an Upload object. + */ +export interface UploadPart { + /** + * The upload Part unique identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the Part was created. + */ + created_at: number; + /** + * The object type, which is always `upload.part`. + */ + object: 'upload.part'; + /** + * The ID of the Upload object that this Part was added to. + */ + upload_id: string; +} +export interface PartCreateParams { + /** + * The chunk of bytes for this Part. + */ + data: Uploadable; +} +export declare namespace Parts { + export { type UploadPart as UploadPart, type PartCreateParams as PartCreateParams }; +} +//# sourceMappingURL=parts.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..18cf295eb09b1d2c0837e20fa6d7eb9e4833c848 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"parts.d.mts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAMnG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9741316d2b6190ee796022e5275ddb46fc2d4920 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts @@ -0,0 +1,51 @@ +import { APIResource } from "../../core/resource.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { type Uploadable } from "../../core/uploads.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Parts extends APIResource { + /** + * Adds a + * [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. + * A Part represents a chunk of bytes from the file you are trying to upload. + * + * Each Part can be at most 64 MB, and you can add Parts until you hit the Upload + * maximum of 8 GB. + * + * It is possible to add multiple Parts in parallel. You can decide the intended + * order of the Parts when you + * [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). + */ + create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise; +} +/** + * The upload Part represents a chunk of bytes we can add to an Upload object. + */ +export interface UploadPart { + /** + * The upload Part unique identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the Part was created. + */ + created_at: number; + /** + * The object type, which is always `upload.part`. + */ + object: 'upload.part'; + /** + * The ID of the Upload object that this Part was added to. + */ + upload_id: string; +} +export interface PartCreateParams { + /** + * The chunk of bytes for this Part. + */ + data: Uploadable; +} +export declare namespace Parts { + export { type UploadPart as UploadPart, type PartCreateParams as PartCreateParams }; +} +//# sourceMappingURL=parts.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..d65ba0fe6e2f7011d1fbb6fc822941e0aa9480c8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAMnG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js new file mode 100644 index 0000000000000000000000000000000000000000..f4a778b869d71829e75ef4c2eec88b791a273451 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js @@ -0,0 +1,27 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Parts = void 0; +const resource_1 = require("../../core/resource.js"); +const uploads_1 = require("../../internal/uploads.js"); +const path_1 = require("../../internal/utils/path.js"); +class Parts extends resource_1.APIResource { + /** + * Adds a + * [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. + * A Part represents a chunk of bytes from the file you are trying to upload. + * + * Each Part can be at most 64 MB, and you can add Parts until you hit the Upload + * maximum of 8 GB. + * + * It is possible to add multiple Parts in parallel. You can decide the intended + * order of the Parts when you + * [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). + */ + create(uploadID, body, options) { + return this._client.post((0, path_1.path) `/uploads/${uploadID}/parts`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client)); + } +} +exports.Parts = Parts; +//# sourceMappingURL=parts.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d599b70495e5cbb862791f2a1e0b9c3cc2231602 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,YAAY,QAAQ,QAAQ,EAChC,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AApBD,sBAoBC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs new file mode 100644 index 0000000000000000000000000000000000000000..ac83db8c3aa2ad8ae31910c6ad5755b6eac88b19 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { multipartFormRequestOptions } from "../../internal/uploads.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Parts extends APIResource { + /** + * Adds a + * [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. + * A Part represents a chunk of bytes from the file you are trying to upload. + * + * Each Part can be at most 64 MB, and you can add Parts until you hit the Upload + * maximum of 8 GB. + * + * It is possible to add multiple Parts in parallel. You can decide the intended + * order of the Parts when you + * [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). + */ + create(uploadID, body, options) { + return this._client.post(path `/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options }, this._client)); + } +} +//# sourceMappingURL=parts.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..888cbe9c83acb1729889f201193617d98cc05aa1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/parts.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"parts.mjs","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,YAAY,QAAQ,QAAQ,EAChC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a42d6e97f4b47a232797120688e4a965ee67aef3 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts @@ -0,0 +1,157 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as FilesAPI from "../files.mjs"; +import * as PartsAPI from "./parts.mjs"; +import { PartCreateParams, Parts, UploadPart } from "./parts.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class Uploads extends APIResource { + parts: PartsAPI.Parts; + /** + * Creates an intermediate + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object + * that you can add + * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to. + * Currently, an Upload can accept at most 8 GB in total and expires after an hour + * after you create it. + * + * Once you complete the Upload, we will create a + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * contains all the parts you uploaded. This File is usable in the rest of our + * platform as a regular File object. + * + * For certain `purpose` values, the correct `mime_type` must be specified. Please + * refer to documentation for the + * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files). + * + * For guidance on the proper filename extensions for each purpose, please follow + * the documentation on + * [creating a File](https://platform.openai.com/docs/api-reference/files/create). + */ + create(body: UploadCreateParams, options?: RequestOptions): APIPromise; + /** + * Cancels the Upload. No Parts may be added after an Upload is cancelled. + */ + cancel(uploadID: string, options?: RequestOptions): APIPromise; + /** + * Completes the + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object). + * + * Within the returned Upload object, there is a nested + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * is ready to use in the rest of the platform. + * + * You can specify the order of the Parts by passing in an ordered list of the Part + * IDs. + * + * The number of bytes uploaded upon completion must match the number of bytes + * initially specified when creating the Upload object. No Parts may be added after + * an Upload is completed. + */ + complete(uploadID: string, body: UploadCompleteParams, options?: RequestOptions): APIPromise; +} +/** + * The Upload object can accept byte chunks in the form of Parts. + */ +export interface Upload { + /** + * The Upload unique identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The intended number of bytes to be uploaded. + */ + bytes: number; + /** + * The Unix timestamp (in seconds) for when the Upload was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the Upload will expire. + */ + expires_at: number; + /** + * The name of the file to be uploaded. + */ + filename: string; + /** + * The object type, which is always "upload". + */ + object: 'upload'; + /** + * The intended purpose of the file. + * [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose) + * for acceptable values. + */ + purpose: string; + /** + * The status of the Upload. + */ + status: 'pending' | 'completed' | 'cancelled' | 'expired'; + /** + * The `File` object represents a document that has been uploaded to OpenAI. + */ + file?: FilesAPI.FileObject | null; +} +export interface UploadCreateParams { + /** + * The number of bytes in the file you are uploading. + */ + bytes: number; + /** + * The name of the file to upload. + */ + filename: string; + /** + * The MIME type of the file. + * + * This must fall within the supported MIME types for your file purpose. See the + * supported MIME types for assistants and vision. + */ + mime_type: string; + /** + * The intended purpose of the uploaded file. + * + * See the + * [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). + */ + purpose: FilesAPI.FilePurpose; + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + expires_after?: UploadCreateParams.ExpiresAfter; +} +export declare namespace UploadCreateParams { + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface UploadCompleteParams { + /** + * The ordered list of Part IDs. + */ + part_ids: Array; + /** + * The optional md5 checksum for the file contents to verify if the bytes uploaded + * matches what you expect. + */ + md5?: string; +} +export declare namespace Uploads { + export { type Upload as Upload, type UploadCreateParams as UploadCreateParams, type UploadCompleteParams as UploadCompleteParams, }; + export { Parts as Parts, type UploadPart as UploadPart, type PartCreateParams as PartCreateParams }; +} +//# sourceMappingURL=uploads.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..a54b8ec252b95cdff746634cb9cf1117749a386c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../../src/resources/uploads/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE;OACvC,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItE;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;IAE1D;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAE9B;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC;CACjD;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;;OAGG;IACH,UAAiB,YAAY;QAC3B;;;WAGG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fcece716dffbcab667621e9e16b2adb1181357de --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts @@ -0,0 +1,157 @@ +import { APIResource } from "../../core/resource.js"; +import * as FilesAPI from "../files.js"; +import * as PartsAPI from "./parts.js"; +import { PartCreateParams, Parts, UploadPart } from "./parts.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class Uploads extends APIResource { + parts: PartsAPI.Parts; + /** + * Creates an intermediate + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object + * that you can add + * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to. + * Currently, an Upload can accept at most 8 GB in total and expires after an hour + * after you create it. + * + * Once you complete the Upload, we will create a + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * contains all the parts you uploaded. This File is usable in the rest of our + * platform as a regular File object. + * + * For certain `purpose` values, the correct `mime_type` must be specified. Please + * refer to documentation for the + * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files). + * + * For guidance on the proper filename extensions for each purpose, please follow + * the documentation on + * [creating a File](https://platform.openai.com/docs/api-reference/files/create). + */ + create(body: UploadCreateParams, options?: RequestOptions): APIPromise; + /** + * Cancels the Upload. No Parts may be added after an Upload is cancelled. + */ + cancel(uploadID: string, options?: RequestOptions): APIPromise; + /** + * Completes the + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object). + * + * Within the returned Upload object, there is a nested + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * is ready to use in the rest of the platform. + * + * You can specify the order of the Parts by passing in an ordered list of the Part + * IDs. + * + * The number of bytes uploaded upon completion must match the number of bytes + * initially specified when creating the Upload object. No Parts may be added after + * an Upload is completed. + */ + complete(uploadID: string, body: UploadCompleteParams, options?: RequestOptions): APIPromise; +} +/** + * The Upload object can accept byte chunks in the form of Parts. + */ +export interface Upload { + /** + * The Upload unique identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The intended number of bytes to be uploaded. + */ + bytes: number; + /** + * The Unix timestamp (in seconds) for when the Upload was created. + */ + created_at: number; + /** + * The Unix timestamp (in seconds) for when the Upload will expire. + */ + expires_at: number; + /** + * The name of the file to be uploaded. + */ + filename: string; + /** + * The object type, which is always "upload". + */ + object: 'upload'; + /** + * The intended purpose of the file. + * [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose) + * for acceptable values. + */ + purpose: string; + /** + * The status of the Upload. + */ + status: 'pending' | 'completed' | 'cancelled' | 'expired'; + /** + * The `File` object represents a document that has been uploaded to OpenAI. + */ + file?: FilesAPI.FileObject | null; +} +export interface UploadCreateParams { + /** + * The number of bytes in the file you are uploading. + */ + bytes: number; + /** + * The name of the file to upload. + */ + filename: string; + /** + * The MIME type of the file. + * + * This must fall within the supported MIME types for your file purpose. See the + * supported MIME types for assistants and vision. + */ + mime_type: string; + /** + * The intended purpose of the uploaded file. + * + * See the + * [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). + */ + purpose: FilesAPI.FilePurpose; + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + expires_after?: UploadCreateParams.ExpiresAfter; +} +export declare namespace UploadCreateParams { + /** + * The expiration policy for a file. By default, files with `purpose=batch` expire + * after 30 days and all other files are persisted until they are manually deleted. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `created_at`. + */ + anchor: 'created_at'; + /** + * The number of seconds after the anchor time that the file will expire. Must be + * between 3600 (1 hour) and 2592000 (30 days). + */ + seconds: number; + } +} +export interface UploadCompleteParams { + /** + * The ordered list of Part IDs. + */ + part_ids: Array; + /** + * The optional md5 checksum for the file contents to verify if the bytes uploaded + * matches what you expect. + */ + md5?: string; +} +export declare namespace Uploads { + export { type Upload as Upload, type UploadCreateParams as UploadCreateParams, type UploadCompleteParams as UploadCompleteParams, }; + export { Parts as Parts, type UploadPart as UploadPart, type PartCreateParams as PartCreateParams }; +} +//# sourceMappingURL=uploads.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..13bb19f2ff3f881508d8aa987bcaad5221427f48 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../../src/resources/uploads/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE;OACvC,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItE;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;IAE1D;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAE9B;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC;CACjD;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;;OAGG;IACH,UAAiB,YAAY;QAC3B;;;WAGG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js new file mode 100644 index 0000000000000000000000000000000000000000..64bdc2a40373b6521e67eaa9152199c96bd58f35 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js @@ -0,0 +1,66 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Uploads = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const PartsAPI = tslib_1.__importStar(require("./parts.js")); +const parts_1 = require("./parts.js"); +const path_1 = require("../../internal/utils/path.js"); +class Uploads extends resource_1.APIResource { + constructor() { + super(...arguments); + this.parts = new PartsAPI.Parts(this._client); + } + /** + * Creates an intermediate + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object + * that you can add + * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to. + * Currently, an Upload can accept at most 8 GB in total and expires after an hour + * after you create it. + * + * Once you complete the Upload, we will create a + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * contains all the parts you uploaded. This File is usable in the rest of our + * platform as a regular File object. + * + * For certain `purpose` values, the correct `mime_type` must be specified. Please + * refer to documentation for the + * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files). + * + * For guidance on the proper filename extensions for each purpose, please follow + * the documentation on + * [creating a File](https://platform.openai.com/docs/api-reference/files/create). + */ + create(body, options) { + return this._client.post('/uploads', { body, ...options }); + } + /** + * Cancels the Upload. No Parts may be added after an Upload is cancelled. + */ + cancel(uploadID, options) { + return this._client.post((0, path_1.path) `/uploads/${uploadID}/cancel`, options); + } + /** + * Completes the + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object). + * + * Within the returned Upload object, there is a nested + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * is ready to use in the rest of the platform. + * + * You can specify the order of the Parts by passing in an ordered list of the Part + * IDs. + * + * The number of bytes uploaded upon completion must match the number of bytes + * initially specified when creating the Upload object. No Parts may be added after + * an Upload is completed. + */ + complete(uploadID, body, options) { + return this._client.post((0, path_1.path) `/uploads/${uploadID}/complete`, { body, ...options }); + } +} +exports.Uploads = Uploads; +Uploads.Parts = parts_1.Parts; +//# sourceMappingURL=uploads.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js.map new file mode 100644 index 0000000000000000000000000000000000000000..bd9cc47866a1cd190d42d4bb90720eedb38094fd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../../src/resources/uploads/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAA8D;AAG9D,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD3D,CAAC;IAlDC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,QAAgB,EAAE,IAA0B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AArDD,0BAqDC;AAyHD,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs new file mode 100644 index 0000000000000000000000000000000000000000..40bed88762dd48e88fbc1da4d5f08db6fbe3141c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs @@ -0,0 +1,61 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as PartsAPI from "./parts.mjs"; +import { Parts } from "./parts.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Uploads extends APIResource { + constructor() { + super(...arguments); + this.parts = new PartsAPI.Parts(this._client); + } + /** + * Creates an intermediate + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object + * that you can add + * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to. + * Currently, an Upload can accept at most 8 GB in total and expires after an hour + * after you create it. + * + * Once you complete the Upload, we will create a + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * contains all the parts you uploaded. This File is usable in the rest of our + * platform as a regular File object. + * + * For certain `purpose` values, the correct `mime_type` must be specified. Please + * refer to documentation for the + * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files). + * + * For guidance on the proper filename extensions for each purpose, please follow + * the documentation on + * [creating a File](https://platform.openai.com/docs/api-reference/files/create). + */ + create(body, options) { + return this._client.post('/uploads', { body, ...options }); + } + /** + * Cancels the Upload. No Parts may be added after an Upload is cancelled. + */ + cancel(uploadID, options) { + return this._client.post(path `/uploads/${uploadID}/cancel`, options); + } + /** + * Completes the + * [Upload](https://platform.openai.com/docs/api-reference/uploads/object). + * + * Within the returned Upload object, there is a nested + * [File](https://platform.openai.com/docs/api-reference/files/object) object that + * is ready to use in the rest of the platform. + * + * You can specify the order of the Parts by passing in an ordered list of the Part + * IDs. + * + * The number of bytes uploaded upon completion must match the number of bytes + * initially specified when creating the Upload object. No Parts may be added after + * an Upload is completed. + */ + complete(uploadID, body, options) { + return this._client.post(path `/uploads/${uploadID}/complete`, { body, ...options }); + } +} +Uploads.Parts = Parts; +//# sourceMappingURL=uploads.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..ecc01fb015da6155a9bf89161713dfc5178d396e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/uploads/uploads.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../../src/resources/uploads/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EAAoB,KAAK,EAAc;OAGvC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD3D,CAAC;IAlDC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,QAAgB,EAAE,IAA0B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AAyHD,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..69ab0bf24dbfd8fc8eb8df93d050eba040ab4133 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts @@ -0,0 +1,2 @@ +export * from "./vector-stores/index.mjs"; +//# sourceMappingURL=vector-stores.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..93fa5bfaae1690ba68692db19296246f67605dae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../src/resources/vector-stores.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c5a77db3f077de9082fa20d80541433ef38157c4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts @@ -0,0 +1,2 @@ +export * from "./vector-stores/index.js"; +//# sourceMappingURL=vector-stores.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..9fa6ad9dd0f01dc19bd1898013632dd36957883f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.d.ts","sourceRoot":"","sources":["../src/resources/vector-stores.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js new file mode 100644 index 0000000000000000000000000000000000000000..b7fb5e7093a56825634863396f8cc7a696a700c4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js @@ -0,0 +1,6 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("../internal/tslib.js"); +tslib_1.__exportStar(require("./vector-stores/index.js"), exports); +//# sourceMappingURL=vector-stores.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js.map new file mode 100644 index 0000000000000000000000000000000000000000..2762844d3a7a87b4fc3cfc0dff27ff0a2ef6d17a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../src/resources/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAsC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs new file mode 100644 index 0000000000000000000000000000000000000000..6cd88834f2255dfc56b5a8f74cbb994267c331be --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export * from "./vector-stores/index.mjs"; +//# sourceMappingURL=vector-stores.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..3c740c61480421ff962efbf9e9f7d6b9c89da0bc --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.mjs","sourceRoot":"","sources":["../src/resources/vector-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..9ca49d711f73fb28eef55bbbefd4122e0e69c5ae --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts @@ -0,0 +1,172 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as FilesAPI from "./files.mjs"; +import { VectorStoreFilesPage } from "./files.mjs"; +import * as VectorStoresAPI from "./vector-stores.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { type CursorPageParams, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +import { type Uploadable } from "../../uploads.mjs"; +export declare class FileBatches extends APIResource { + /** + * Create a vector store file batch. + */ + create(vectorStoreID: string, body: FileBatchCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store file batch. + */ + retrieve(batchID: string, params: FileBatchRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Cancel a vector store file batch. This attempts to cancel the processing of + * files in this batch as soon as possible. + */ + cancel(batchID: string, params: FileBatchCancelParams, options?: RequestOptions): APIPromise; + /** + * Create a vector store batch and poll until all files have been processed. + */ + createAndPoll(vectorStoreId: string, body: FileBatchCreateParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Returns a list of vector store files in a batch. + */ + listFiles(batchID: string, params: FileBatchListFilesParams, options?: RequestOptions): PagePromise; + /** + * Wait for the given file batch to be processed. + * + * Note: this will return even if one of the files failed to process, you need to + * check batch.file_counts.failed_count to handle this case. + */ + poll(vectorStoreID: string, batchID: string, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Uploads the given files concurrently and then creates a vector store file batch. + * + * The concurrency limit is configurable using the `maxConcurrency` parameter. + */ + uploadAndPoll(vectorStoreId: string, { files, fileIds }: { + files: Uploadable[]; + fileIds?: string[]; + }, options?: RequestOptions & { + pollIntervalMs?: number; + maxConcurrency?: number; + }): Promise; +} +/** + * A batch of files attached to a vector store. + */ +export interface VectorStoreFileBatch { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store files batch was + * created. + */ + created_at: number; + file_counts: VectorStoreFileBatch.FileCounts; + /** + * The object type, which is always `vector_store.file_batch`. + */ + object: 'vector_store.files_batch'; + /** + * The status of the vector store files batch, which can be either `in_progress`, + * `completed`, `cancelled` or `failed`. + */ + status: 'in_progress' | 'completed' | 'cancelled' | 'failed'; + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * that the [File](https://platform.openai.com/docs/api-reference/files) is + * attached to. + */ + vector_store_id: string; +} +export declare namespace VectorStoreFileBatch { + interface FileCounts { + /** + * The number of files that where cancelled. + */ + cancelled: number; + /** + * The number of files that have been processed. + */ + completed: number; + /** + * The number of files that have failed to process. + */ + failed: number; + /** + * The number of files that are currently being processed. + */ + in_progress: number; + /** + * The total number of files. + */ + total: number; + } +} +export interface FileBatchCreateParams { + /** + * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that + * the vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_ids: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam; +} +export interface FileBatchRetrieveParams { + /** + * The ID of the vector store that the file batch belongs to. + */ + vector_store_id: string; +} +export interface FileBatchCancelParams { + /** + * The ID of the vector store that the file batch belongs to. + */ + vector_store_id: string; +} +export interface FileBatchListFilesParams extends CursorPageParams { + /** + * Path param: The ID of the vector store that the files belong to. + */ + vector_store_id: string; + /** + * Query param: A cursor for use in pagination. `before` is an object ID that + * defines your place in the list. For instance, if you make a list request and + * receive 100 objects, starting with obj_foo, your subsequent call can include + * before=obj_foo in order to fetch the previous page of the list. + */ + before?: string; + /** + * Query param: Filter by file status. One of `in_progress`, `completed`, `failed`, + * `cancelled`. + */ + filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled'; + /** + * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for + * ascending order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace FileBatches { + export { type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, }; +} +export { type VectorStoreFilesPage }; +//# sourceMappingURL=file-batches.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..b16800f66071937350aa179a63bac3a620ac5247 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"file-batches.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,oBAAoB,EAAE;OACxB,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;OAElB,EAAE,KAAK,UAAU,EAAE;AAI1B,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAQnC;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAQnC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAQnC;;OAEG;IACG,aAAa,CACjB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GAAG;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,GACrD,OAAO,CAAC,oBAAoB,CAAC;IAKhC;;OAEG;IACH,SAAS,CACP,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,E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IACpC;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEjE;;;OAGG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC,yBAAyB,CAAC;CAC/D;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IAE9D;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b10a7155d44cf1ffc938369667b739b4cf4ea5d5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts @@ -0,0 +1,172 @@ +import { APIResource } from "../../core/resource.js"; +import * as FilesAPI from "./files.js"; +import { VectorStoreFilesPage } from "./files.js"; +import * as VectorStoresAPI from "./vector-stores.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { type CursorPageParams, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +import { type Uploadable } from "../../uploads.js"; +export declare class FileBatches extends APIResource { + /** + * Create a vector store file batch. + */ + create(vectorStoreID: string, body: FileBatchCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store file batch. + */ + retrieve(batchID: string, params: FileBatchRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Cancel a vector store file batch. This attempts to cancel the processing of + * files in this batch as soon as possible. + */ + cancel(batchID: string, params: FileBatchCancelParams, options?: RequestOptions): APIPromise; + /** + * Create a vector store batch and poll until all files have been processed. + */ + createAndPoll(vectorStoreId: string, body: FileBatchCreateParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Returns a list of vector store files in a batch. + */ + listFiles(batchID: string, params: FileBatchListFilesParams, options?: RequestOptions): PagePromise; + /** + * Wait for the given file batch to be processed. + * + * Note: this will return even if one of the files failed to process, you need to + * check batch.file_counts.failed_count to handle this case. + */ + poll(vectorStoreID: string, batchID: string, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Uploads the given files concurrently and then creates a vector store file batch. + * + * The concurrency limit is configurable using the `maxConcurrency` parameter. + */ + uploadAndPoll(vectorStoreId: string, { files, fileIds }: { + files: Uploadable[]; + fileIds?: string[]; + }, options?: RequestOptions & { + pollIntervalMs?: number; + maxConcurrency?: number; + }): Promise; +} +/** + * A batch of files attached to a vector store. + */ +export interface VectorStoreFileBatch { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store files batch was + * created. + */ + created_at: number; + file_counts: VectorStoreFileBatch.FileCounts; + /** + * The object type, which is always `vector_store.file_batch`. + */ + object: 'vector_store.files_batch'; + /** + * The status of the vector store files batch, which can be either `in_progress`, + * `completed`, `cancelled` or `failed`. + */ + status: 'in_progress' | 'completed' | 'cancelled' | 'failed'; + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * that the [File](https://platform.openai.com/docs/api-reference/files) is + * attached to. + */ + vector_store_id: string; +} +export declare namespace VectorStoreFileBatch { + interface FileCounts { + /** + * The number of files that where cancelled. + */ + cancelled: number; + /** + * The number of files that have been processed. + */ + completed: number; + /** + * The number of files that have failed to process. + */ + failed: number; + /** + * The number of files that are currently being processed. + */ + in_progress: number; + /** + * The total number of files. + */ + total: number; + } +} +export interface FileBatchCreateParams { + /** + * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that + * the vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_ids: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam; +} +export interface FileBatchRetrieveParams { + /** + * The ID of the vector store that the file batch belongs to. + */ + vector_store_id: string; +} +export interface FileBatchCancelParams { + /** + * The ID of the vector store that the file batch belongs to. + */ + vector_store_id: string; +} +export interface FileBatchListFilesParams extends CursorPageParams { + /** + * Path param: The ID of the vector store that the files belong to. + */ + vector_store_id: string; + /** + * Query param: A cursor for use in pagination. `before` is an object ID that + * defines your place in the list. For instance, if you make a list request and + * receive 100 objects, starting with obj_foo, your subsequent call can include + * before=obj_foo in order to fetch the previous page of the list. + */ + before?: string; + /** + * Query param: Filter by file status. One of `in_progress`, `completed`, `failed`, + * `cancelled`. + */ + filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled'; + /** + * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for + * ascending order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export declare namespace FileBatches { + export { type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, }; +} +export { type VectorStoreFilesPage }; +//# sourceMappingURL=file-batches.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..ba1c734c48ed89ac8ad2499f50ae1950818f5213 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"file-batches.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,oBAAoB,EAAE;OACxB,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;OAElB,EAAE,KAAK,UAAU,EAAE;AAI1B,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAQnC;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;I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BAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js new file mode 100644 index 0000000000000000000000000000000000000000..3933a70e11230365a9854931c3b535fede69f440 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js @@ -0,0 +1,133 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FileBatches = void 0; +const resource_1 = require("../../core/resource.js"); +const pagination_1 = require("../../core/pagination.js"); +const headers_1 = require("../../internal/headers.js"); +const sleep_1 = require("../../internal/utils/sleep.js"); +const Util_1 = require("../../lib/Util.js"); +const path_1 = require("../../internal/utils/path.js"); +class FileBatches extends resource_1.APIResource { + /** + * Create a vector store file batch. + */ + create(vectorStoreID, body, options) { + return this._client.post((0, path_1.path) `/vector_stores/${vectorStoreID}/file_batches`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store file batch. + */ + retrieve(batchID, params, options) { + const { vector_store_id } = params; + return this._client.get((0, path_1.path) `/vector_stores/${vector_store_id}/file_batches/${batchID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Cancel a vector store file batch. This attempts to cancel the processing of + * files in this batch as soon as possible. + */ + cancel(batchID, params, options) { + const { vector_store_id } = params; + return this._client.post((0, path_1.path) `/vector_stores/${vector_store_id}/file_batches/${batchID}/cancel`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Create a vector store batch and poll until all files have been processed. + */ + async createAndPoll(vectorStoreId, body, options) { + const batch = await this.create(vectorStoreId, body); + return await this.poll(vectorStoreId, batch.id, options); + } + /** + * Returns a list of vector store files in a batch. + */ + listFiles(batchID, params, options) { + const { vector_store_id, ...query } = params; + return this._client.getAPIList((0, path_1.path) `/vector_stores/${vector_store_id}/file_batches/${batchID}/files`, (pagination_1.CursorPage), { query, ...options, headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]) }); + } + /** + * Wait for the given file batch to be processed. + * + * Note: this will return even if one of the files failed to process, you need to + * check batch.file_counts.failed_count to handle this case. + */ + async poll(vectorStoreID, batchID, options) { + const headers = (0, headers_1.buildHeaders)([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const { data: batch, response } = await this.retrieve(batchID, { vector_store_id: vectorStoreID }, { + ...options, + headers, + }).withResponse(); + switch (batch.status) { + case 'in_progress': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await (0, sleep_1.sleep)(sleepInterval); + break; + case 'failed': + case 'cancelled': + case 'completed': + return batch; + } + } + } + /** + * Uploads the given files concurrently and then creates a vector store file batch. + * + * The concurrency limit is configurable using the `maxConcurrency` parameter. + */ + async uploadAndPoll(vectorStoreId, { files, fileIds = [] }, options) { + if (files == null || files.length == 0) { + throw new Error(`No \`files\` provided to process. If you've already uploaded files you should use \`.createAndPoll()\` instead`); + } + const configuredConcurrency = options?.maxConcurrency ?? 5; + // We cap the number of workers at the number of files (so we don't start any unnecessary workers) + const concurrencyLimit = Math.min(configuredConcurrency, files.length); + const client = this._client; + const fileIterator = files.values(); + const allFileIds = [...fileIds]; + // This code is based on this design. The libraries don't accommodate our environment limits. + // https://stackoverflow.com/questions/40639432/what-is-the-best-way-to-limit-concurrency-when-using-es6s-promise-all + async function processFiles(iterator) { + for (let item of iterator) { + const fileObj = await client.files.create({ file: item, purpose: 'assistants' }, options); + allFileIds.push(fileObj.id); + } + } + // Start workers to process results + const workers = Array(concurrencyLimit).fill(fileIterator).map(processFiles); + // Wait for all processing to complete. + await (0, Util_1.allSettledWithThrow)(workers); + return await this.createAndPoll(vectorStoreId, { + file_ids: allFileIds, + }); + } +} +exports.FileBatches = FileBatches; +//# sourceMappingURL=file-batches.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js.map new file mode 100644 index 0000000000000000000000000000000000000000..03042b4dc4bf57cd71e649ef85ce00182ad9f193 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"file-batches.js","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAAuF;AACvF,uDAAsD;AAEtD,yDAAmD;AAEnD,4CAAqD;AACrD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,eAAe,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,E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AAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAE7E,uCAAuC;QACvC,MAAM,IAAA,0BAAmB,EAAC,OAAO,CAAC,CAAC;QAEnC,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE;YAC7C,QAAQ,EAAE,UAAU;SACrB,CAAC,CAAC;IACL,CAAC;CACF;AA7KD,kCA6KC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs new file mode 100644 index 0000000000000000000000000000000000000000..722cad205c4c90997cbf1d9f5b2a30969f3ade8b --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs @@ -0,0 +1,129 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { CursorPage } from "../../core/pagination.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { sleep } from "../../internal/utils/sleep.mjs"; +import { allSettledWithThrow } from "../../lib/Util.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class FileBatches extends APIResource { + /** + * Create a vector store file batch. + */ + create(vectorStoreID, body, options) { + return this._client.post(path `/vector_stores/${vectorStoreID}/file_batches`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store file batch. + */ + retrieve(batchID, params, options) { + const { vector_store_id } = params; + return this._client.get(path `/vector_stores/${vector_store_id}/file_batches/${batchID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Cancel a vector store file batch. This attempts to cancel the processing of + * files in this batch as soon as possible. + */ + cancel(batchID, params, options) { + const { vector_store_id } = params; + return this._client.post(path `/vector_stores/${vector_store_id}/file_batches/${batchID}/cancel`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Create a vector store batch and poll until all files have been processed. + */ + async createAndPoll(vectorStoreId, body, options) { + const batch = await this.create(vectorStoreId, body); + return await this.poll(vectorStoreId, batch.id, options); + } + /** + * Returns a list of vector store files in a batch. + */ + listFiles(batchID, params, options) { + const { vector_store_id, ...query } = params; + return this._client.getAPIList(path `/vector_stores/${vector_store_id}/file_batches/${batchID}/files`, (CursorPage), { query, ...options, headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]) }); + } + /** + * Wait for the given file batch to be processed. + * + * Note: this will return even if one of the files failed to process, you need to + * check batch.file_counts.failed_count to handle this case. + */ + async poll(vectorStoreID, batchID, options) { + const headers = buildHeaders([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const { data: batch, response } = await this.retrieve(batchID, { vector_store_id: vectorStoreID }, { + ...options, + headers, + }).withResponse(); + switch (batch.status) { + case 'in_progress': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await sleep(sleepInterval); + break; + case 'failed': + case 'cancelled': + case 'completed': + return batch; + } + } + } + /** + * Uploads the given files concurrently and then creates a vector store file batch. + * + * The concurrency limit is configurable using the `maxConcurrency` parameter. + */ + async uploadAndPoll(vectorStoreId, { files, fileIds = [] }, options) { + if (files == null || files.length == 0) { + throw new Error(`No \`files\` provided to process. If you've already uploaded files you should use \`.createAndPoll()\` instead`); + } + const configuredConcurrency = options?.maxConcurrency ?? 5; + // We cap the number of workers at the number of files (so we don't start any unnecessary workers) + const concurrencyLimit = Math.min(configuredConcurrency, files.length); + const client = this._client; + const fileIterator = files.values(); + const allFileIds = [...fileIds]; + // This code is based on this design. The libraries don't accommodate our environment limits. + // https://stackoverflow.com/questions/40639432/what-is-the-best-way-to-limit-concurrency-when-using-es6s-promise-all + async function processFiles(iterator) { + for (let item of iterator) { + const fileObj = await client.files.create({ file: item, purpose: 'assistants' }, options); + allFileIds.push(fileObj.id); + } + } + // Start workers to process results + const workers = Array(concurrencyLimit).fill(fileIterator).map(processFiles); + // Wait for all processing to complete. + await allSettledWithThrow(workers); + return await this.createAndPoll(vectorStoreId, { + file_ids: allFileIds, + }); + } +} +//# sourceMappingURL=file-batches.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1f6be0dbdb91dfafe1613874952097a3dd815c93 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/file-batches.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"file-batches.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,KAAK,EAAE;OAET,EAAE,mBAAmB,EAAE;OACvB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,aAAa,eAAe,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eA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CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAE7E,uCAAuC;QACvC,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAEnC,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE;YAC7C,QAAQ,EAAE,UAAU;SACrB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..303a268d0404fbab4f615833ef8f4c8fadd764e8 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts @@ -0,0 +1,231 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as VectorStoresAPI from "./vector-stores.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, PagePromise, Page } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +import { Uploadable } from "../../uploads.mjs"; +export declare class Files extends APIResource { + /** + * Create a vector store file by attaching a + * [File](https://platform.openai.com/docs/api-reference/files) to a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). + */ + create(vectorStoreID: string, body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store file. + */ + retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Update attributes on a vector store file. + */ + update(fileID: string, params: FileUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of vector store files. + */ + list(vectorStoreID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a vector store file. This will remove the file from the vector store but + * the file itself will not be deleted. To delete the file, use the + * [delete file](https://platform.openai.com/docs/api-reference/files/delete) + * endpoint. + */ + delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise; + /** + * Attach a file to the given vector store and wait for it to be processed. + */ + createAndPoll(vectorStoreId: string, body: FileCreateParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Wait for the vector store file to finish processing. + * + * Note: this will return even if the file failed to process, you need to check + * file.last_error and file.status to handle these cases + */ + poll(vectorStoreID: string, fileID: string, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Upload a file to the `files` API and then attach it to the given vector store. + * + * Note the file will be asynchronously processed (you can use the alternative + * polling helper method to wait for processing to complete). + */ + upload(vectorStoreId: string, file: Uploadable, options?: RequestOptions): Promise; + /** + * Add a file to a vector store and poll until processing is complete. + */ + uploadAndPoll(vectorStoreId: string, file: Uploadable, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Retrieve the parsed contents of a vector store file. + */ + content(fileID: string, params: FileContentParams, options?: RequestOptions): PagePromise; +} +export type VectorStoreFilesPage = CursorPage; +export type FileContentResponsesPage = Page; +/** + * A list of files attached to a vector store. + */ +export interface VectorStoreFile { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store file was created. + */ + created_at: number; + /** + * The last error associated with this vector store file. Will be `null` if there + * are no errors. + */ + last_error: VectorStoreFile.LastError | null; + /** + * The object type, which is always `vector_store.file`. + */ + object: 'vector_store.file'; + /** + * The status of the vector store file, which can be either `in_progress`, + * `completed`, `cancelled`, or `failed`. The status `completed` indicates that the + * vector store file is ready for use. + */ + status: 'in_progress' | 'completed' | 'cancelled' | 'failed'; + /** + * The total vector store usage in bytes. Note that this may be different from the + * original file size. + */ + usage_bytes: number; + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * that the [File](https://platform.openai.com/docs/api-reference/files) is + * attached to. + */ + vector_store_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The strategy used to chunk the file. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategy; +} +export declare namespace VectorStoreFile { + /** + * The last error associated with this vector store file. Will be `null` if there + * are no errors. + */ + interface LastError { + /** + * One of `server_error` or `rate_limit_exceeded`. + */ + code: 'server_error' | 'unsupported_file' | 'invalid_file'; + /** + * A human-readable description of the error. + */ + message: string; + } +} +export interface VectorStoreFileDeleted { + id: string; + deleted: boolean; + object: 'vector_store.file.deleted'; +} +export interface FileContentResponse { + /** + * The text content + */ + text?: string; + /** + * The content type (currently only `"text"`) + */ + type?: string; +} +export interface FileCreateParams { + /** + * A [File](https://platform.openai.com/docs/api-reference/files) ID that the + * vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam; +} +export interface FileRetrieveParams { + /** + * The ID of the vector store that the file belongs to. + */ + vector_store_id: string; +} +export interface FileUpdateParams { + /** + * Path param: The ID of the vector store the file belongs to. + */ + vector_store_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. Keys are + * strings with a maximum length of 64 characters. Values are strings with a + * maximum length of 512 characters, booleans, or numbers. + */ + attributes: { + [key: string]: string | number | boolean; + } | null; +} +export interface FileListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`. + */ + filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled'; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface FileDeleteParams { + /** + * The ID of the vector store that the file belongs to. + */ + vector_store_id: string; +} +export interface FileContentParams { + /** + * The ID of the vector store. + */ + vector_store_id: string; +} +export declare namespace Files { + export { type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, type VectorStoreFilesPage as VectorStoreFilesPage, type FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileContentParams as FileContentParams, }; +} +//# sourceMappingURL=files.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..6502d6c6c86c800a92ce612e10b31c96d5348552 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE;OAExD,EAAE,cAAc,EAAE;OAElB,EAAE,UAAU,EAAE;AAGrB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAA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AK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f3bdd719e825cb8ab70a2d1081dc2a4e0d136f03 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts @@ -0,0 +1,231 @@ +import { APIResource } from "../../core/resource.js"; +import * as VectorStoresAPI from "./vector-stores.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, PagePromise, Page } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +import { Uploadable } from "../../uploads.js"; +export declare class Files extends APIResource { + /** + * Create a vector store file by attaching a + * [File](https://platform.openai.com/docs/api-reference/files) to a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). + */ + create(vectorStoreID: string, body: FileCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store file. + */ + retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise; + /** + * Update attributes on a vector store file. + */ + update(fileID: string, params: FileUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of vector store files. + */ + list(vectorStoreID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a vector store file. This will remove the file from the vector store but + * the file itself will not be deleted. To delete the file, use the + * [delete file](https://platform.openai.com/docs/api-reference/files/delete) + * endpoint. + */ + delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise; + /** + * Attach a file to the given vector store and wait for it to be processed. + */ + createAndPoll(vectorStoreId: string, body: FileCreateParams, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Wait for the vector store file to finish processing. + * + * Note: this will return even if the file failed to process, you need to check + * file.last_error and file.status to handle these cases + */ + poll(vectorStoreID: string, fileID: string, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Upload a file to the `files` API and then attach it to the given vector store. + * + * Note the file will be asynchronously processed (you can use the alternative + * polling helper method to wait for processing to complete). + */ + upload(vectorStoreId: string, file: Uploadable, options?: RequestOptions): Promise; + /** + * Add a file to a vector store and poll until processing is complete. + */ + uploadAndPoll(vectorStoreId: string, file: Uploadable, options?: RequestOptions & { + pollIntervalMs?: number; + }): Promise; + /** + * Retrieve the parsed contents of a vector store file. + */ + content(fileID: string, params: FileContentParams, options?: RequestOptions): PagePromise; +} +export type VectorStoreFilesPage = CursorPage; +export type FileContentResponsesPage = Page; +/** + * A list of files attached to a vector store. + */ +export interface VectorStoreFile { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store file was created. + */ + created_at: number; + /** + * The last error associated with this vector store file. Will be `null` if there + * are no errors. + */ + last_error: VectorStoreFile.LastError | null; + /** + * The object type, which is always `vector_store.file`. + */ + object: 'vector_store.file'; + /** + * The status of the vector store file, which can be either `in_progress`, + * `completed`, `cancelled`, or `failed`. The status `completed` indicates that the + * vector store file is ready for use. + */ + status: 'in_progress' | 'completed' | 'cancelled' | 'failed'; + /** + * The total vector store usage in bytes. Note that this may be different from the + * original file size. + */ + usage_bytes: number; + /** + * The ID of the + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) + * that the [File](https://platform.openai.com/docs/api-reference/files) is + * attached to. + */ + vector_store_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The strategy used to chunk the file. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategy; +} +export declare namespace VectorStoreFile { + /** + * The last error associated with this vector store file. Will be `null` if there + * are no errors. + */ + interface LastError { + /** + * One of `server_error` or `rate_limit_exceeded`. + */ + code: 'server_error' | 'unsupported_file' | 'invalid_file'; + /** + * A human-readable description of the error. + */ + message: string; + } +} +export interface VectorStoreFileDeleted { + id: string; + deleted: boolean; + object: 'vector_store.file.deleted'; +} +export interface FileContentResponse { + /** + * The text content + */ + text?: string; + /** + * The content type (currently only `"text"`) + */ + type?: string; +} +export interface FileCreateParams { + /** + * A [File](https://platform.openai.com/docs/api-reference/files) ID that the + * vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_id: string; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes?: { + [key: string]: string | number | boolean; + } | null; + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam; +} +export interface FileRetrieveParams { + /** + * The ID of the vector store that the file belongs to. + */ + vector_store_id: string; +} +export interface FileUpdateParams { + /** + * Path param: The ID of the vector store the file belongs to. + */ + vector_store_id: string; + /** + * Body param: Set of 16 key-value pairs that can be attached to an object. This + * can be useful for storing additional information about the object in a + * structured format, and querying for objects via API or the dashboard. Keys are + * strings with a maximum length of 64 characters. Values are strings with a + * maximum length of 512 characters, booleans, or numbers. + */ + attributes: { + [key: string]: string | number | boolean; + } | null; +} +export interface FileListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`. + */ + filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled'; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface FileDeleteParams { + /** + * The ID of the vector store that the file belongs to. + */ + vector_store_id: string; +} +export interface FileContentParams { + /** + * The ID of the vector store. + */ + vector_store_id: string; +} +export declare namespace Files { + export { type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, type VectorStoreFilesPage as VectorStoreFilesPage, type FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileContentParams as FileContentParams, }; +} +//# sourceMappingURL=files.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..728488932da5f53b93b731fc90a64dde815fbc6c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE;OAExD,EAAE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AC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js new file mode 100644 index 0000000000000000000000000000000000000000..a1ba28e5e9447712f6f6f27a71e34502ac29fc00 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js @@ -0,0 +1,142 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Files = void 0; +const resource_1 = require("../../core/resource.js"); +const pagination_1 = require("../../core/pagination.js"); +const headers_1 = require("../../internal/headers.js"); +const utils_1 = require("../../internal/utils.js"); +const path_1 = require("../../internal/utils/path.js"); +class Files extends resource_1.APIResource { + /** + * Create a vector store file by attaching a + * [File](https://platform.openai.com/docs/api-reference/files) to a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). + */ + create(vectorStoreID, body, options) { + return this._client.post((0, path_1.path) `/vector_stores/${vectorStoreID}/files`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store file. + */ + retrieve(fileID, params, options) { + const { vector_store_id } = params; + return this._client.get((0, path_1.path) `/vector_stores/${vector_store_id}/files/${fileID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Update attributes on a vector store file. + */ + update(fileID, params, options) { + const { vector_store_id, ...body } = params; + return this._client.post((0, path_1.path) `/vector_stores/${vector_store_id}/files/${fileID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of vector store files. + */ + list(vectorStoreID, query = {}, options) { + return this._client.getAPIList((0, path_1.path) `/vector_stores/${vectorStoreID}/files`, (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a vector store file. This will remove the file from the vector store but + * the file itself will not be deleted. To delete the file, use the + * [delete file](https://platform.openai.com/docs/api-reference/files/delete) + * endpoint. + */ + delete(fileID, params, options) { + const { vector_store_id } = params; + return this._client.delete((0, path_1.path) `/vector_stores/${vector_store_id}/files/${fileID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Attach a file to the given vector store and wait for it to be processed. + */ + async createAndPoll(vectorStoreId, body, options) { + const file = await this.create(vectorStoreId, body, options); + return await this.poll(vectorStoreId, file.id, options); + } + /** + * Wait for the vector store file to finish processing. + * + * Note: this will return even if the file failed to process, you need to check + * file.last_error and file.status to handle these cases + */ + async poll(vectorStoreID, fileID, options) { + const headers = (0, headers_1.buildHeaders)([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const fileResponse = await this.retrieve(fileID, { + vector_store_id: vectorStoreID, + }, { ...options, headers }).withResponse(); + const file = fileResponse.data; + switch (file.status) { + case 'in_progress': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = fileResponse.response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await (0, utils_1.sleep)(sleepInterval); + break; + case 'failed': + case 'completed': + return file; + } + } + } + /** + * Upload a file to the `files` API and then attach it to the given vector store. + * + * Note the file will be asynchronously processed (you can use the alternative + * polling helper method to wait for processing to complete). + */ + async upload(vectorStoreId, file, options) { + const fileInfo = await this._client.files.create({ file: file, purpose: 'assistants' }, options); + return this.create(vectorStoreId, { file_id: fileInfo.id }, options); + } + /** + * Add a file to a vector store and poll until processing is complete. + */ + async uploadAndPoll(vectorStoreId, file, options) { + const fileInfo = await this.upload(vectorStoreId, file, options); + return await this.poll(vectorStoreId, fileInfo.id, options); + } + /** + * Retrieve the parsed contents of a vector store file. + */ + content(fileID, params, options) { + const { vector_store_id } = params; + return this._client.getAPIList((0, path_1.path) `/vector_stores/${vector_store_id}/files/${fileID}/content`, (pagination_1.Page), { ...options, headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]) }); + } +} +exports.Files = Files; +//# sourceMappingURL=files.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a308432077f498a753969d2e1bb221e6cbd095c6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sF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IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACH,KAAK,CAAC,aAAa,CACjB,aAAqB,EACrB,IAAgB,EAChB,OAAsD;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,OAAO,CACL,MAAc,EACd,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,eAAe,UAAU,MAAM,UAAU,EAC/D,CAAA,iBAAyB,CAAA,EACzB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;CACF;AAnLD,sBAmLC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs new file mode 100644 index 0000000000000000000000000000000000000000..8c6ea0b269562789b19da1e342be76474e47ba5f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs @@ -0,0 +1,138 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import { CursorPage, Page } from "../../core/pagination.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { sleep } from "../../internal/utils.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class Files extends APIResource { + /** + * Create a vector store file by attaching a + * [File](https://platform.openai.com/docs/api-reference/files) to a + * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). + */ + create(vectorStoreID, body, options) { + return this._client.post(path `/vector_stores/${vectorStoreID}/files`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store file. + */ + retrieve(fileID, params, options) { + const { vector_store_id } = params; + return this._client.get(path `/vector_stores/${vector_store_id}/files/${fileID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Update attributes on a vector store file. + */ + update(fileID, params, options) { + const { vector_store_id, ...body } = params; + return this._client.post(path `/vector_stores/${vector_store_id}/files/${fileID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of vector store files. + */ + list(vectorStoreID, query = {}, options) { + return this._client.getAPIList(path `/vector_stores/${vectorStoreID}/files`, (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a vector store file. This will remove the file from the vector store but + * the file itself will not be deleted. To delete the file, use the + * [delete file](https://platform.openai.com/docs/api-reference/files/delete) + * endpoint. + */ + delete(fileID, params, options) { + const { vector_store_id } = params; + return this._client.delete(path `/vector_stores/${vector_store_id}/files/${fileID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Attach a file to the given vector store and wait for it to be processed. + */ + async createAndPoll(vectorStoreId, body, options) { + const file = await this.create(vectorStoreId, body, options); + return await this.poll(vectorStoreId, file.id, options); + } + /** + * Wait for the vector store file to finish processing. + * + * Note: this will return even if the file failed to process, you need to check + * file.last_error and file.status to handle these cases + */ + async poll(vectorStoreID, fileID, options) { + const headers = buildHeaders([ + options?.headers, + { + 'X-Stainless-Poll-Helper': 'true', + 'X-Stainless-Custom-Poll-Interval': options?.pollIntervalMs?.toString() ?? undefined, + }, + ]); + while (true) { + const fileResponse = await this.retrieve(fileID, { + vector_store_id: vectorStoreID, + }, { ...options, headers }).withResponse(); + const file = fileResponse.data; + switch (file.status) { + case 'in_progress': + let sleepInterval = 5000; + if (options?.pollIntervalMs) { + sleepInterval = options.pollIntervalMs; + } + else { + const headerInterval = fileResponse.response.headers.get('openai-poll-after-ms'); + if (headerInterval) { + const headerIntervalMs = parseInt(headerInterval); + if (!isNaN(headerIntervalMs)) { + sleepInterval = headerIntervalMs; + } + } + } + await sleep(sleepInterval); + break; + case 'failed': + case 'completed': + return file; + } + } + } + /** + * Upload a file to the `files` API and then attach it to the given vector store. + * + * Note the file will be asynchronously processed (you can use the alternative + * polling helper method to wait for processing to complete). + */ + async upload(vectorStoreId, file, options) { + const fileInfo = await this._client.files.create({ file: file, purpose: 'assistants' }, options); + return this.create(vectorStoreId, { file_id: fileInfo.id }, options); + } + /** + * Add a file to a vector store and poll until processing is complete. + */ + async uploadAndPoll(vectorStoreId, file, options) { + const fileInfo = await this.upload(vectorStoreId, file, options); + return await this.poll(vectorStoreId, fileInfo.id, options); + } + /** + * Retrieve the parsed contents of a vector store file. + */ + content(fileID, params, options) { + const { vector_store_id } = params; + return this._client.getAPIList(path `/vector_stores/${vector_store_id}/files/${fileID}/content`, (Page), { ...options, headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]) }); + } +} +//# sourceMappingURL=files.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..af81a77dd45c6b9080c4513e0c79430ac789281f --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/files.mjs.map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E,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;QACjG,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACH,KAAK,CAAC,aAAa,CACjB,aAAqB,EACrB,IAAgB,EAChB,OAAsD;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,OAAO,CACL,MAAc,EACd,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,eAAe,UAAU,MAAM,UAAU,EAC/D,CAAA,IAAyB,CAAA,EACzB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a4d77af8cc2c14a371bfc771a003e8f8bdadb032 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts @@ -0,0 +1,4 @@ +export { FileBatches, type VectorStoreFileBatch, type FileBatchCreateParams, type FileBatchRetrieveParams, type FileBatchCancelParams, type FileBatchListFilesParams, } from "./file-batches.mjs"; +export { Files, type VectorStoreFile, type VectorStoreFileDeleted, type FileContentResponse, type FileCreateParams, type FileRetrieveParams, type FileUpdateParams, type FileListParams, type FileDeleteParams, type FileContentParams, type VectorStoreFilesPage, type FileContentResponsesPage, } from "./files.mjs"; +export { VectorStores, type AutoFileChunkingStrategyParam, type FileChunkingStrategy, type FileChunkingStrategyParam, type OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam, type VectorStore, type VectorStoreDeleted, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, type VectorStoresPage, type VectorStoreSearchResponsesPage, } from "./vector-stores.mjs"; +//# sourceMappingURL=index.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..b6518a98241ba876ba37bdd97a8520427d6eb882 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0780221d2862b81d1eb01c6310612c08e2025da4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts @@ -0,0 +1,4 @@ +export { FileBatches, type VectorStoreFileBatch, type FileBatchCreateParams, type FileBatchRetrieveParams, type FileBatchCancelParams, type FileBatchListFilesParams, } from "./file-batches.js"; +export { Files, type VectorStoreFile, type VectorStoreFileDeleted, type FileContentResponse, type FileCreateParams, type FileRetrieveParams, type FileUpdateParams, type FileListParams, type FileDeleteParams, type FileContentParams, type VectorStoreFilesPage, type FileContentResponsesPage, } from "./files.js"; +export { VectorStores, type AutoFileChunkingStrategyParam, type FileChunkingStrategy, type FileChunkingStrategyParam, type OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam, type VectorStore, type VectorStoreDeleted, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, type VectorStoresPage, type VectorStoreSearchResponsesPage, } from "./vector-stores.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..1df7cb4ed8c2487ffba26b7941a0f87d13cbb328 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,GACpC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js new file mode 100644 index 0000000000000000000000000000000000000000..f0e03076d817330f542b5f52b20ebf9de663a73a --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js @@ -0,0 +1,11 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VectorStores = exports.Files = exports.FileBatches = void 0; +var file_batches_1 = require("./file-batches.js"); +Object.defineProperty(exports, "FileBatches", { enumerable: true, get: function () { return file_batches_1.FileBatches; } }); +var files_1 = require("./files.js"); +Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } }); +var vector_stores_1 = require("./vector-stores.js"); +Object.defineProperty(exports, "VectorStores", { enumerable: true, get: function () { return vector_stores_1.VectorStores; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0a8e8d6e8fe58283cfdb22b0cf256cc3455c5472 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,oCAaiB;AAZf,8FAAA,KAAK,OAAA;AAaP,oDAkByB;AAjBvB,6GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs new file mode 100644 index 0000000000000000000000000000000000000000..9a44a01f8b6e840a4639c76ce3bc2c8610e65e44 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs @@ -0,0 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +export { FileBatches, } from "./file-batches.mjs"; +export { Files, } from "./files.mjs"; +export { VectorStores, } from "./vector-stores.mjs"; +//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..37bb194954c4cac19372d6f8626c064395a1b12c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAMZ;OACM,EACL,KAAK,GAYN;OACM,EACL,YAAY,GAiBb"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..af829e8d7441e7032c3a38997545a982038fe5d0 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts @@ -0,0 +1,373 @@ +import { APIResource } from "../../core/resource.mjs"; +import * as Shared from "../shared.mjs"; +import * as FileBatchesAPI from "./file-batches.mjs"; +import { FileBatchCancelParams, FileBatchCreateParams, FileBatchListFilesParams, FileBatchRetrieveParams, FileBatches, VectorStoreFileBatch } from "./file-batches.mjs"; +import * as FilesAPI from "./files.mjs"; +import { FileContentParams, FileContentResponse, FileContentResponsesPage, FileCreateParams, FileDeleteParams, FileListParams, FileRetrieveParams, FileUpdateParams, Files, VectorStoreFile, VectorStoreFileDeleted, VectorStoreFilesPage } from "./files.mjs"; +import { APIPromise } from "../../core/api-promise.mjs"; +import { CursorPage, type CursorPageParams, Page, PagePromise } from "../../core/pagination.mjs"; +import { RequestOptions } from "../../internal/request-options.mjs"; +export declare class VectorStores extends APIResource { + files: FilesAPI.Files; + fileBatches: FileBatchesAPI.FileBatches; + /** + * Create a vector store. + */ + create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store. + */ + retrieve(vectorStoreID: string, options?: RequestOptions): APIPromise; + /** + * Modifies a vector store. + */ + update(vectorStoreID: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of vector stores. + */ + list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a vector store. + */ + delete(vectorStoreID: string, options?: RequestOptions): APIPromise; + /** + * Search a vector store for relevant chunks based on a query and file attributes + * filter. + */ + search(vectorStoreID: string, body: VectorStoreSearchParams, options?: RequestOptions): PagePromise; +} +export type VectorStoresPage = CursorPage; +export type VectorStoreSearchResponsesPage = Page; +/** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ +export interface AutoFileChunkingStrategyParam { + /** + * Always `auto`. + */ + type: 'auto'; +} +/** + * The strategy used to chunk the file. + */ +export type FileChunkingStrategy = StaticFileChunkingStrategyObject | OtherFileChunkingStrategyObject; +/** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ +export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyObjectParam; +/** + * This is returned when the chunking strategy is unknown. Typically, this is + * because the file was indexed before the `chunking_strategy` concept was + * introduced in the API. + */ +export interface OtherFileChunkingStrategyObject { + /** + * Always `other`. + */ + type: 'other'; +} +export interface StaticFileChunkingStrategy { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; +} +export interface StaticFileChunkingStrategyObject { + static: StaticFileChunkingStrategy; + /** + * Always `static`. + */ + type: 'static'; +} +/** + * Customize your own chunking strategy by setting chunk size and chunk overlap. + */ +export interface StaticFileChunkingStrategyObjectParam { + static: StaticFileChunkingStrategy; + /** + * Always `static`. + */ + type: 'static'; +} +/** + * A vector store is a collection of processed files can be used by the + * `file_search` tool. + */ +export interface VectorStore { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store was created. + */ + created_at: number; + file_counts: VectorStore.FileCounts; + /** + * The Unix timestamp (in seconds) for when the vector store was last active. + */ + last_active_at: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name: string; + /** + * The object type, which is always `vector_store`. + */ + object: 'vector_store'; + /** + * The status of the vector store, which can be either `expired`, `in_progress`, or + * `completed`. A status of `completed` indicates that the vector store is ready + * for use. + */ + status: 'expired' | 'in_progress' | 'completed'; + /** + * The total number of bytes used by the files in the vector store. + */ + usage_bytes: number; + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStore.ExpiresAfter; + /** + * The Unix timestamp (in seconds) for when the vector store will expire. + */ + expires_at?: number | null; +} +export declare namespace VectorStore { + interface FileCounts { + /** + * The number of files that were cancelled. + */ + cancelled: number; + /** + * The number of files that have been successfully processed. + */ + completed: number; + /** + * The number of files that have failed to process. + */ + failed: number; + /** + * The number of files that are currently being processed. + */ + in_progress: number; + /** + * The total number of files. + */ + total: number; + } + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreDeleted { + id: string; + deleted: boolean; + object: 'vector_store.deleted'; +} +export interface VectorStoreSearchResponse { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes: { + [key: string]: string | number | boolean; + } | null; + /** + * Content chunks from the file. + */ + content: Array; + /** + * The ID of the vector store file. + */ + file_id: string; + /** + * The name of the vector store file. + */ + filename: string; + /** + * The similarity score for the result. + */ + score: number; +} +export declare namespace VectorStoreSearchResponse { + interface Content { + /** + * The text content returned from search. + */ + text: string; + /** + * The type of content. + */ + type: 'text'; + } +} +export interface VectorStoreCreateParams { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: FileChunkingStrategyParam; + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStoreCreateParams.ExpiresAfter; + /** + * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that + * the vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name?: string; +} +export declare namespace VectorStoreCreateParams { + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreUpdateParams { + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStoreUpdateParams.ExpiresAfter | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name?: string | null; +} +export declare namespace VectorStoreUpdateParams { + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface VectorStoreSearchParams { + /** + * A query string for a search + */ + query: string | Array; + /** + * A filter to apply based on file attributes. + */ + filters?: Shared.ComparisonFilter | Shared.CompoundFilter; + /** + * The maximum number of results to return. This number should be between 1 and 50 + * inclusive. + */ + max_num_results?: number; + /** + * Ranking options for search. + */ + ranking_options?: VectorStoreSearchParams.RankingOptions; + /** + * Whether to rewrite the natural language query for vector search. + */ + rewrite_query?: boolean; +} +export declare namespace VectorStoreSearchParams { + /** + * Ranking options for search. + */ + interface RankingOptions { + /** + * Enable re-ranking; set to `none` to disable, which can help reduce latency. + */ + ranker?: 'none' | 'auto' | 'default-2024-11-15'; + score_threshold?: number; + } +} +export declare namespace VectorStores { + export { type AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam, type FileChunkingStrategy as FileChunkingStrategy, type FileChunkingStrategyParam as FileChunkingStrategyParam, type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy as StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam, type VectorStore as VectorStore, type VectorStoreDeleted as VectorStoreDeleted, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresPage as VectorStoresPage, type VectorStoreSearchResponsesPage as VectorStoreSearchResponsesPage, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreSearchParams as VectorStoreSearchParams, }; + export { Files as Files, type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, type VectorStoreFilesPage as VectorStoreFilesPage, type FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileContentParams as FileContentParams, }; + export { FileBatches as FileBatches, type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, }; +} +//# sourceMappingURL=vector-stores.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..97a39c6a4a34dc342a696732ce60af828d7ee924 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACrB;OACM,KAAK,QAAQ;OACb,EACL,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB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ACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cb7afa7ce78acbd4adeded6952b3be16a0f433fd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts @@ -0,0 +1,373 @@ +import { APIResource } from "../../core/resource.js"; +import * as Shared from "../shared.js"; +import * as FileBatchesAPI from "./file-batches.js"; +import { FileBatchCancelParams, FileBatchCreateParams, FileBatchListFilesParams, FileBatchRetrieveParams, FileBatches, VectorStoreFileBatch } from "./file-batches.js"; +import * as FilesAPI from "./files.js"; +import { FileContentParams, FileContentResponse, FileContentResponsesPage, FileCreateParams, FileDeleteParams, FileListParams, FileRetrieveParams, FileUpdateParams, Files, VectorStoreFile, VectorStoreFileDeleted, VectorStoreFilesPage } from "./files.js"; +import { APIPromise } from "../../core/api-promise.js"; +import { CursorPage, type CursorPageParams, Page, PagePromise } from "../../core/pagination.js"; +import { RequestOptions } from "../../internal/request-options.js"; +export declare class VectorStores extends APIResource { + files: FilesAPI.Files; + fileBatches: FileBatchesAPI.FileBatches; + /** + * Create a vector store. + */ + create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise; + /** + * Retrieves a vector store. + */ + retrieve(vectorStoreID: string, options?: RequestOptions): APIPromise; + /** + * Modifies a vector store. + */ + update(vectorStoreID: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise; + /** + * Returns a list of vector stores. + */ + list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise; + /** + * Delete a vector store. + */ + delete(vectorStoreID: string, options?: RequestOptions): APIPromise; + /** + * Search a vector store for relevant chunks based on a query and file attributes + * filter. + */ + search(vectorStoreID: string, body: VectorStoreSearchParams, options?: RequestOptions): PagePromise; +} +export type VectorStoresPage = CursorPage; +export type VectorStoreSearchResponsesPage = Page; +/** + * The default strategy. This strategy currently uses a `max_chunk_size_tokens` of + * `800` and `chunk_overlap_tokens` of `400`. + */ +export interface AutoFileChunkingStrategyParam { + /** + * Always `auto`. + */ + type: 'auto'; +} +/** + * The strategy used to chunk the file. + */ +export type FileChunkingStrategy = StaticFileChunkingStrategyObject | OtherFileChunkingStrategyObject; +/** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ +export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyObjectParam; +/** + * This is returned when the chunking strategy is unknown. Typically, this is + * because the file was indexed before the `chunking_strategy` concept was + * introduced in the API. + */ +export interface OtherFileChunkingStrategyObject { + /** + * Always `other`. + */ + type: 'other'; +} +export interface StaticFileChunkingStrategy { + /** + * The number of tokens that overlap between chunks. The default value is `400`. + * + * Note that the overlap must not exceed half of `max_chunk_size_tokens`. + */ + chunk_overlap_tokens: number; + /** + * The maximum number of tokens in each chunk. The default value is `800`. The + * minimum value is `100` and the maximum value is `4096`. + */ + max_chunk_size_tokens: number; +} +export interface StaticFileChunkingStrategyObject { + static: StaticFileChunkingStrategy; + /** + * Always `static`. + */ + type: 'static'; +} +/** + * Customize your own chunking strategy by setting chunk size and chunk overlap. + */ +export interface StaticFileChunkingStrategyObjectParam { + static: StaticFileChunkingStrategy; + /** + * Always `static`. + */ + type: 'static'; +} +/** + * A vector store is a collection of processed files can be used by the + * `file_search` tool. + */ +export interface VectorStore { + /** + * The identifier, which can be referenced in API endpoints. + */ + id: string; + /** + * The Unix timestamp (in seconds) for when the vector store was created. + */ + created_at: number; + file_counts: VectorStore.FileCounts; + /** + * The Unix timestamp (in seconds) for when the vector store was last active. + */ + last_active_at: number | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name: string; + /** + * The object type, which is always `vector_store`. + */ + object: 'vector_store'; + /** + * The status of the vector store, which can be either `expired`, `in_progress`, or + * `completed`. A status of `completed` indicates that the vector store is ready + * for use. + */ + status: 'expired' | 'in_progress' | 'completed'; + /** + * The total number of bytes used by the files in the vector store. + */ + usage_bytes: number; + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStore.ExpiresAfter; + /** + * The Unix timestamp (in seconds) for when the vector store will expire. + */ + expires_at?: number | null; +} +export declare namespace VectorStore { + interface FileCounts { + /** + * The number of files that were cancelled. + */ + cancelled: number; + /** + * The number of files that have been successfully processed. + */ + completed: number; + /** + * The number of files that have failed to process. + */ + failed: number; + /** + * The number of files that are currently being processed. + */ + in_progress: number; + /** + * The total number of files. + */ + total: number; + } + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreDeleted { + id: string; + deleted: boolean; + object: 'vector_store.deleted'; +} +export interface VectorStoreSearchResponse { + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. Keys are strings with a maximum + * length of 64 characters. Values are strings with a maximum length of 512 + * characters, booleans, or numbers. + */ + attributes: { + [key: string]: string | number | boolean; + } | null; + /** + * Content chunks from the file. + */ + content: Array; + /** + * The ID of the vector store file. + */ + file_id: string; + /** + * The name of the vector store file. + */ + filename: string; + /** + * The similarity score for the result. + */ + score: number; +} +export declare namespace VectorStoreSearchResponse { + interface Content { + /** + * The text content returned from search. + */ + text: string; + /** + * The type of content. + */ + type: 'text'; + } +} +export interface VectorStoreCreateParams { + /** + * The chunking strategy used to chunk the file(s). If not set, will use the `auto` + * strategy. Only applicable if `file_ids` is non-empty. + */ + chunking_strategy?: FileChunkingStrategyParam; + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStoreCreateParams.ExpiresAfter; + /** + * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that + * the vector store should use. Useful for tools like `file_search` that can access + * files. + */ + file_ids?: Array; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name?: string; +} +export declare namespace VectorStoreCreateParams { + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreUpdateParams { + /** + * The expiration policy for a vector store. + */ + expires_after?: VectorStoreUpdateParams.ExpiresAfter | null; + /** + * Set of 16 key-value pairs that can be attached to an object. This can be useful + * for storing additional information about the object in a structured format, and + * querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings with + * a maximum length of 512 characters. + */ + metadata?: Shared.Metadata | null; + /** + * The name of the vector store. + */ + name?: string | null; +} +export declare namespace VectorStoreUpdateParams { + /** + * The expiration policy for a vector store. + */ + interface ExpiresAfter { + /** + * Anchor timestamp after which the expiration policy applies. Supported anchors: + * `last_active_at`. + */ + anchor: 'last_active_at'; + /** + * The number of days after the anchor time that the vector store will expire. + */ + days: number; + } +} +export interface VectorStoreListParams extends CursorPageParams { + /** + * A cursor for use in pagination. `before` is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, + * starting with obj_foo, your subsequent call can include before=obj_foo in order + * to fetch the previous page of the list. + */ + before?: string; + /** + * Sort order by the `created_at` timestamp of the objects. `asc` for ascending + * order and `desc` for descending order. + */ + order?: 'asc' | 'desc'; +} +export interface VectorStoreSearchParams { + /** + * A query string for a search + */ + query: string | Array; + /** + * A filter to apply based on file attributes. + */ + filters?: Shared.ComparisonFilter | Shared.CompoundFilter; + /** + * The maximum number of results to return. This number should be between 1 and 50 + * inclusive. + */ + max_num_results?: number; + /** + * Ranking options for search. + */ + ranking_options?: VectorStoreSearchParams.RankingOptions; + /** + * Whether to rewrite the natural language query for vector search. + */ + rewrite_query?: boolean; +} +export declare namespace VectorStoreSearchParams { + /** + * Ranking options for search. + */ + interface RankingOptions { + /** + * Enable re-ranking; set to `none` to disable, which can help reduce latency. + */ + ranker?: 'none' | 'auto' | 'default-2024-11-15'; + score_threshold?: number; + } +} +export declare namespace VectorStores { + export { type AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam, type FileChunkingStrategy as FileChunkingStrategy, type FileChunkingStrategyParam as FileChunkingStrategyParam, type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy as StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam, type VectorStore as VectorStore, type VectorStoreDeleted as VectorStoreDeleted, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresPage as VectorStoresPage, type VectorStoreSearchResponsesPage as VectorStoreSearchResponsesPage, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreSearchParams as VectorStoreSearchParams, }; + export { Files as Files, type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, type VectorStoreFilesPage as VectorStoreFilesPage, type FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileContentParams as FileContentParams, }; + export { FileBatches as FileBatches, type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, }; +} +//# sourceMappingURL=vector-stores.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..a47a967b85a261356090e48d9de2286550ee85b2 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACrB;OACM,KAAK,QAAQ;OACb,EACL,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACrB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,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AoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js new file mode 100644 index 0000000000000000000000000000000000000000..8d839a0a4aa68cb3cc6e71322780aa1bdacdeccd --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js @@ -0,0 +1,84 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VectorStores = void 0; +const tslib_1 = require("../../internal/tslib.js"); +const resource_1 = require("../../core/resource.js"); +const FileBatchesAPI = tslib_1.__importStar(require("./file-batches.js")); +const file_batches_1 = require("./file-batches.js"); +const FilesAPI = tslib_1.__importStar(require("./files.js")); +const files_1 = require("./files.js"); +const pagination_1 = require("../../core/pagination.js"); +const headers_1 = require("../../internal/headers.js"); +const path_1 = require("../../internal/utils/path.js"); +class VectorStores extends resource_1.APIResource { + constructor() { + super(...arguments); + this.files = new FilesAPI.Files(this._client); + this.fileBatches = new FileBatchesAPI.FileBatches(this._client); + } + /** + * Create a vector store. + */ + create(body, options) { + return this._client.post('/vector_stores', { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store. + */ + retrieve(vectorStoreID, options) { + return this._client.get((0, path_1.path) `/vector_stores/${vectorStoreID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a vector store. + */ + update(vectorStoreID, body, options) { + return this._client.post((0, path_1.path) `/vector_stores/${vectorStoreID}`, { + body, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of vector stores. + */ + list(query = {}, options) { + return this._client.getAPIList('/vector_stores', (pagination_1.CursorPage), { + query, + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a vector store. + */ + delete(vectorStoreID, options) { + return this._client.delete((0, path_1.path) `/vector_stores/${vectorStoreID}`, { + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Search a vector store for relevant chunks based on a query and file attributes + * filter. + */ + search(vectorStoreID, body, options) { + return this._client.getAPIList((0, path_1.path) `/vector_stores/${vectorStoreID}/search`, (pagination_1.Page), { + body, + method: 'post', + ...options, + headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +exports.VectorStores = VectorStores; +VectorStores.Files = files_1.Files; +VectorStores.FileBatches = file_batches_1.FileBatches; +//# sourceMappingURL=vector-stores.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js.map new file mode 100644 index 0000000000000000000000000000000000000000..25a0993b689251d08ecfe59f0e394fa0dc7ae2a1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,0EAAiD;AACjD,oDAOwB;AACxB,6DAAoC;AACpC,sCAaiB;AAEjB,yDAA6F;AAC7F,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa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CAAA,uBAAuB,CAAA,EAAE;YACxE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,EAAE,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,aAAa,SAAS,EAC5C,CAAA,iBAA+B,CAAA,EAC/B;YACE,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CACF,CAAC;IACJ,CAAC;CACF;AApFD,oCAoFC;AAuYD,YAAY,CAAC,KAAK,GAAG,aAAK,CAAC;AAC3B,YAAY,CAAC,WAAW,GAAG,0BAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs new file mode 100644 index 0000000000000000000000000000000000000000..aaae5d7b7cc6ada6cf6cd5b8ebf077324ef80249 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +import { APIResource } from "../../core/resource.mjs"; +import * as FileBatchesAPI from "./file-batches.mjs"; +import { FileBatches, } from "./file-batches.mjs"; +import * as FilesAPI from "./files.mjs"; +import { Files, } from "./files.mjs"; +import { CursorPage, Page } from "../../core/pagination.mjs"; +import { buildHeaders } from "../../internal/headers.mjs"; +import { path } from "../../internal/utils/path.mjs"; +export class VectorStores extends APIResource { + constructor() { + super(...arguments); + this.files = new FilesAPI.Files(this._client); + this.fileBatches = new FileBatchesAPI.FileBatches(this._client); + } + /** + * Create a vector store. + */ + create(body, options) { + return this._client.post('/vector_stores', { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Retrieves a vector store. + */ + retrieve(vectorStoreID, options) { + return this._client.get(path `/vector_stores/${vectorStoreID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Modifies a vector store. + */ + update(vectorStoreID, body, options) { + return this._client.post(path `/vector_stores/${vectorStoreID}`, { + body, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Returns a list of vector stores. + */ + list(query = {}, options) { + return this._client.getAPIList('/vector_stores', (CursorPage), { + query, + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Delete a vector store. + */ + delete(vectorStoreID, options) { + return this._client.delete(path `/vector_stores/${vectorStoreID}`, { + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } + /** + * Search a vector store for relevant chunks based on a query and file attributes + * filter. + */ + search(vectorStoreID, body, options) { + return this._client.getAPIList(path `/vector_stores/${vectorStoreID}/search`, (Page), { + body, + method: 'post', + ...options, + headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]), + }); + } +} +VectorStores.Files = Files; +VectorStores.FileBatches = FileBatches; +//# sourceMappingURL=vector-stores.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..2d841e740f0e6d07a7258139835722d5b9548479 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/vector-stores/vector-stores.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vector-stores.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EAKL,WAAW,GAEZ;OACM,KAAK,QAAQ;OACb,EASL,KAAK,GAIN;OAEM,EAAE,UAAU,EAAyB,IAAI,EAAe;OACxD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkFzF,CAAC;IAhFC;;OAEG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,C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kBAAkB,aAAa,SAAS,EAC5C,CAAA,IAA+B,CAAA,EAC/B;YACE,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CACF,CAAC;IACJ,CAAC;CACF;AAuYD,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,YAAY,CAAC,WAAW,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts new file mode 100644 index 0000000000000000000000000000000000000000..a0095a51498845cd5d36b891ebe693b05e6d238e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts @@ -0,0 +1,532 @@ +import { APIResource } from "../core/resource.mjs"; +import { HeadersLike } from "../internal/headers.mjs"; +export declare class Webhooks extends APIResource { + #private; + /** + * Validates that the given payload was sent by OpenAI and parses the payload. + */ + unwrap(payload: string, headers: HeadersLike, secret?: string | undefined | null, tolerance?: number): Promise; + /** + * Validates whether or not the webhook payload was sent by OpenAI. + * + * An error will be raised if the webhook payload was not sent by OpenAI. + * + * @param payload - The webhook payload + * @param headers - The webhook headers + * @param secret - The webhook secret (optional, will use client secret if not provided) + * @param tolerance - Maximum age of the webhook in seconds (default: 300 = 5 minutes) + */ + verifySignature(payload: string, headers: HeadersLike, secret?: string | undefined | null, tolerance?: number): Promise; +} +/** + * Sent when a batch API request has been cancelled. + */ +export interface BatchCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchCancelledWebhookEvent.Data; + /** + * The type of the event. Always `batch.cancelled`. + */ + type: 'batch.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has been completed. + */ +export interface BatchCompletedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request was completed. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchCompletedWebhookEvent.Data; + /** + * The type of the event. Always `batch.completed`. + */ + type: 'batch.completed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchCompletedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has expired. + */ +export interface BatchExpiredWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request expired. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchExpiredWebhookEvent.Data; + /** + * The type of the event. Always `batch.expired`. + */ + type: 'batch.expired'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchExpiredWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has failed. + */ +export interface BatchFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchFailedWebhookEvent.Data; + /** + * The type of the event. Always `batch.failed`. + */ + type: 'batch.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when an eval run has been canceled. + */ +export interface EvalRunCanceledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run was canceled. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunCanceledWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.canceled`. + */ + type: 'eval.run.canceled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunCanceledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when an eval run has failed. + */ +export interface EvalRunFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunFailedWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.failed`. + */ + type: 'eval.run.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when an eval run has succeeded. + */ +export interface EvalRunSucceededWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run succeeded. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunSucceededWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.succeeded`. + */ + type: 'eval.run.succeeded'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunSucceededWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has been cancelled. + */ +export interface FineTuningJobCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobCancelledWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.cancelled`. + */ + type: 'fine_tuning.job.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has failed. + */ +export interface FineTuningJobFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobFailedWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.failed`. + */ + type: 'fine_tuning.job.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has succeeded. + */ +export interface FineTuningJobSucceededWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job succeeded. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobSucceededWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.succeeded`. + */ + type: 'fine_tuning.job.succeeded'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobSucceededWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a background response has been cancelled. + */ +export interface ResponseCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseCancelledWebhookEvent.Data; + /** + * The type of the event. Always `response.cancelled`. + */ + type: 'response.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has been completed. + */ +export interface ResponseCompletedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was completed. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseCompletedWebhookEvent.Data; + /** + * The type of the event. Always `response.completed`. + */ + type: 'response.completed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseCompletedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has failed. + */ +export interface ResponseFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseFailedWebhookEvent.Data; + /** + * The type of the event. Always `response.failed`. + */ + type: 'response.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has been interrupted. + */ +export interface ResponseIncompleteWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was interrupted. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseIncompleteWebhookEvent.Data; + /** + * The type of the event. Always `response.incomplete`. + */ + type: 'response.incomplete'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseIncompleteWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a batch API request has been cancelled. + */ +export type UnwrapWebhookEvent = BatchCancelledWebhookEvent | BatchCompletedWebhookEvent | BatchExpiredWebhookEvent | BatchFailedWebhookEvent | EvalRunCanceledWebhookEvent | EvalRunFailedWebhookEvent | EvalRunSucceededWebhookEvent | FineTuningJobCancelledWebhookEvent | FineTuningJobFailedWebhookEvent | FineTuningJobSucceededWebhookEvent | ResponseCancelledWebhookEvent | ResponseCompletedWebhookEvent | ResponseFailedWebhookEvent | ResponseIncompleteWebhookEvent; +export declare namespace Webhooks { + export { type BatchCancelledWebhookEvent as BatchCancelledWebhookEvent, type BatchCompletedWebhookEvent as BatchCompletedWebhookEvent, type BatchExpiredWebhookEvent as BatchExpiredWebhookEvent, type BatchFailedWebhookEvent as BatchFailedWebhookEvent, type EvalRunCanceledWebhookEvent as EvalRunCanceledWebhookEvent, type EvalRunFailedWebhookEvent as EvalRunFailedWebhookEvent, type EvalRunSucceededWebhookEvent as EvalRunSucceededWebhookEvent, type FineTuningJobCancelledWebhookEvent as FineTuningJobCancelledWebhookEvent, type FineTuningJobFailedWebhookEvent as FineTuningJobFailedWebhookEvent, type FineTuningJobSucceededWebhookEvent as FineTuningJobSucceededWebhookEvent, type ResponseCancelledWebhookEvent as ResponseCancelledWebhookEvent, type ResponseCompletedWebhookEvent as ResponseCompletedWebhookEvent, type ResponseFailedWebhookEvent as ResponseFailedWebhookEvent, type ResponseIncompleteWebhookEvent as ResponseIncompleteWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, }; +} +//# sourceMappingURL=webhooks.d.mts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts.map new file mode 100644 index 0000000000000000000000000000000000000000..724dc3fb72504662ea6d0d1ed49814d9d912fc8d --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.mts.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAGO,EAAE,WAAW,EAAE;OACf,EAAgB,WAAW,EAAE;AAEpC,qBAAa,QAAS,SAAQ,WAAW;;IACvC;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,MAAM,GAAE,MAAM,GAAG,SAAS,GAAG,IAAiC,EAC9D,SAAS,GAAE,MAAY,GACtB,OAAO,CAAC,kBAAkB,CAAC;IAM9B;;;;;;;;;OASG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,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fbdc2167a884d4670233d97008ef43e158c3e986 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts @@ -0,0 +1,532 @@ +import { APIResource } from "../core/resource.js"; +import { HeadersLike } from "../internal/headers.js"; +export declare class Webhooks extends APIResource { + #private; + /** + * Validates that the given payload was sent by OpenAI and parses the payload. + */ + unwrap(payload: string, headers: HeadersLike, secret?: string | undefined | null, tolerance?: number): Promise; + /** + * Validates whether or not the webhook payload was sent by OpenAI. + * + * An error will be raised if the webhook payload was not sent by OpenAI. + * + * @param payload - The webhook payload + * @param headers - The webhook headers + * @param secret - The webhook secret (optional, will use client secret if not provided) + * @param tolerance - Maximum age of the webhook in seconds (default: 300 = 5 minutes) + */ + verifySignature(payload: string, headers: HeadersLike, secret?: string | undefined | null, tolerance?: number): Promise; +} +/** + * Sent when a batch API request has been cancelled. + */ +export interface BatchCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchCancelledWebhookEvent.Data; + /** + * The type of the event. Always `batch.cancelled`. + */ + type: 'batch.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has been completed. + */ +export interface BatchCompletedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request was completed. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchCompletedWebhookEvent.Data; + /** + * The type of the event. Always `batch.completed`. + */ + type: 'batch.completed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchCompletedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has expired. + */ +export interface BatchExpiredWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request expired. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchExpiredWebhookEvent.Data; + /** + * The type of the event. Always `batch.expired`. + */ + type: 'batch.expired'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchExpiredWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when a batch API request has failed. + */ +export interface BatchFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the batch API request failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: BatchFailedWebhookEvent.Data; + /** + * The type of the event. Always `batch.failed`. + */ + type: 'batch.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace BatchFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the batch API request. + */ + id: string; + } +} +/** + * Sent when an eval run has been canceled. + */ +export interface EvalRunCanceledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run was canceled. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunCanceledWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.canceled`. + */ + type: 'eval.run.canceled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunCanceledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when an eval run has failed. + */ +export interface EvalRunFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunFailedWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.failed`. + */ + type: 'eval.run.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when an eval run has succeeded. + */ +export interface EvalRunSucceededWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the eval run succeeded. + */ + created_at: number; + /** + * Event data payload. + */ + data: EvalRunSucceededWebhookEvent.Data; + /** + * The type of the event. Always `eval.run.succeeded`. + */ + type: 'eval.run.succeeded'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace EvalRunSucceededWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the eval run. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has been cancelled. + */ +export interface FineTuningJobCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobCancelledWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.cancelled`. + */ + type: 'fine_tuning.job.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has failed. + */ +export interface FineTuningJobFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobFailedWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.failed`. + */ + type: 'fine_tuning.job.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a fine-tuning job has succeeded. + */ +export interface FineTuningJobSucceededWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the fine-tuning job succeeded. + */ + created_at: number; + /** + * Event data payload. + */ + data: FineTuningJobSucceededWebhookEvent.Data; + /** + * The type of the event. Always `fine_tuning.job.succeeded`. + */ + type: 'fine_tuning.job.succeeded'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace FineTuningJobSucceededWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the fine-tuning job. + */ + id: string; + } +} +/** + * Sent when a background response has been cancelled. + */ +export interface ResponseCancelledWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was cancelled. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseCancelledWebhookEvent.Data; + /** + * The type of the event. Always `response.cancelled`. + */ + type: 'response.cancelled'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseCancelledWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has been completed. + */ +export interface ResponseCompletedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was completed. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseCompletedWebhookEvent.Data; + /** + * The type of the event. Always `response.completed`. + */ + type: 'response.completed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseCompletedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has failed. + */ +export interface ResponseFailedWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response failed. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseFailedWebhookEvent.Data; + /** + * The type of the event. Always `response.failed`. + */ + type: 'response.failed'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseFailedWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a background response has been interrupted. + */ +export interface ResponseIncompleteWebhookEvent { + /** + * The unique ID of the event. + */ + id: string; + /** + * The Unix timestamp (in seconds) of when the model response was interrupted. + */ + created_at: number; + /** + * Event data payload. + */ + data: ResponseIncompleteWebhookEvent.Data; + /** + * The type of the event. Always `response.incomplete`. + */ + type: 'response.incomplete'; + /** + * The object of the event. Always `event`. + */ + object?: 'event'; +} +export declare namespace ResponseIncompleteWebhookEvent { + /** + * Event data payload. + */ + interface Data { + /** + * The unique ID of the model response. + */ + id: string; + } +} +/** + * Sent when a batch API request has been cancelled. + */ +export type UnwrapWebhookEvent = BatchCancelledWebhookEvent | BatchCompletedWebhookEvent | BatchExpiredWebhookEvent | BatchFailedWebhookEvent | EvalRunCanceledWebhookEvent | EvalRunFailedWebhookEvent | EvalRunSucceededWebhookEvent | FineTuningJobCancelledWebhookEvent | FineTuningJobFailedWebhookEvent | FineTuningJobSucceededWebhookEvent | ResponseCancelledWebhookEvent | ResponseCompletedWebhookEvent | ResponseFailedWebhookEvent | ResponseIncompleteWebhookEvent; +export declare namespace Webhooks { + export { type BatchCancelledWebhookEvent as BatchCancelledWebhookEvent, type BatchCompletedWebhookEvent as BatchCompletedWebhookEvent, type BatchExpiredWebhookEvent as BatchExpiredWebhookEvent, type BatchFailedWebhookEvent as BatchFailedWebhookEvent, type EvalRunCanceledWebhookEvent as EvalRunCanceledWebhookEvent, type EvalRunFailedWebhookEvent as EvalRunFailedWebhookEvent, type EvalRunSucceededWebhookEvent as EvalRunSucceededWebhookEvent, type FineTuningJobCancelledWebhookEvent as FineTuningJobCancelledWebhookEvent, type FineTuningJobFailedWebhookEvent as FineTuningJobFailedWebhookEvent, type FineTuningJobSucceededWebhookEvent as FineTuningJobSucceededWebhookEvent, type ResponseCancelledWebhookEvent as ResponseCancelledWebhookEvent, type ResponseCompletedWebhookEvent as ResponseCompletedWebhookEvent, type ResponseFailedWebhookEvent as ResponseFailedWebhookEvent, type ResponseIncompleteWebhookEvent as ResponseIncompleteWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, }; +} +//# sourceMappingURL=webhooks.d.ts.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..4230d09b133612f3c1d0e912fbf17076da2baed6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAGO,EAAE,WAAW,EAAE;OACf,EAAgB,WAAW,EAAE;AAEpC,qBAAa,QAAS,SAAQ,WAAW;;IACvC;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,MAAM,GAAE,MAAM,GAAG,SAAS,GAAG,IAAiC,EAC9D,SAAS,GAAE,MAAY,GACtB,OAAO,CAAC,kBA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K,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js new file mode 100644 index 0000000000000000000000000000000000000000..74f44999f03a14362a3932ac0538f175addf3934 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js @@ -0,0 +1,101 @@ +"use strict"; +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +var _Webhooks_instances, _Webhooks_validateSecret, _Webhooks_getRequiredHeader; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Webhooks = void 0; +const tslib_1 = require("../internal/tslib.js"); +const error_1 = require("../error.js"); +const resource_1 = require("../core/resource.js"); +const headers_1 = require("../internal/headers.js"); +class Webhooks extends resource_1.APIResource { + constructor() { + super(...arguments); + _Webhooks_instances.add(this); + } + /** + * Validates that the given payload was sent by OpenAI and parses the payload. + */ + async unwrap(payload, headers, secret = this._client.webhookSecret, tolerance = 300) { + await this.verifySignature(payload, headers, secret, tolerance); + return JSON.parse(payload); + } + /** + * Validates whether or not the webhook payload was sent by OpenAI. + * + * An error will be raised if the webhook payload was not sent by OpenAI. + * + * @param payload - The webhook payload + * @param headers - The webhook headers + * @param secret - The webhook secret (optional, will use client secret if not provided) + * @param tolerance - Maximum age of the webhook in seconds (default: 300 = 5 minutes) + */ + async verifySignature(payload, headers, secret = this._client.webhookSecret, tolerance = 300) { + if (typeof crypto === 'undefined' || + typeof crypto.subtle.importKey !== 'function' || + typeof crypto.subtle.verify !== 'function') { + throw new Error('Webhook signature verification is only supported when the `crypto` global is defined'); + } + tslib_1.__classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_validateSecret).call(this, secret); + const headersObj = (0, headers_1.buildHeaders)([headers]).values; + const signatureHeader = tslib_1.__classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-signature'); + const timestamp = tslib_1.__classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-timestamp'); + const webhookId = tslib_1.__classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-id'); + // Validate timestamp to prevent replay attacks + const timestampSeconds = parseInt(timestamp, 10); + if (isNaN(timestampSeconds)) { + throw new error_1.InvalidWebhookSignatureError('Invalid webhook timestamp format'); + } + const nowSeconds = Math.floor(Date.now() / 1000); + if (nowSeconds - timestampSeconds > tolerance) { + throw new error_1.InvalidWebhookSignatureError('Webhook timestamp is too old'); + } + if (timestampSeconds > nowSeconds + tolerance) { + throw new error_1.InvalidWebhookSignatureError('Webhook timestamp is too new'); + } + // Extract signatures from v1, format + // The signature header can have multiple values, separated by spaces. + // Each value is in the format v1,. We should accept if any match. + const signatures = signatureHeader + .split(' ') + .map((part) => (part.startsWith('v1,') ? part.substring(3) : part)); + // Decode the secret if it starts with whsec_ + const decodedSecret = secret.startsWith('whsec_') ? + Buffer.from(secret.replace('whsec_', ''), 'base64') + : Buffer.from(secret, 'utf-8'); + // Create the signed payload: {webhook_id}.{timestamp}.{payload} + const signedPayload = webhookId ? `${webhookId}.${timestamp}.${payload}` : `${timestamp}.${payload}`; + // Import the secret as a cryptographic key for HMAC + const key = await crypto.subtle.importKey('raw', decodedSecret, { name: 'HMAC', hash: 'SHA-256' }, false, ['verify']); + // Check if any signature matches using timing-safe WebCrypto verify + for (const signature of signatures) { + try { + const signatureBytes = Buffer.from(signature, 'base64'); + const isValid = await crypto.subtle.verify('HMAC', key, signatureBytes, new TextEncoder().encode(signedPayload)); + if (isValid) { + return; // Valid signature found + } + } + catch { + // Invalid base64 or signature format, continue to next signature + continue; + } + } + throw new error_1.InvalidWebhookSignatureError('The given webhook signature does not match the expected signature'); + } +} +exports.Webhooks = Webhooks; +_Webhooks_instances = new WeakSet(), _Webhooks_validateSecret = function _Webhooks_validateSecret(secret) { + if (typeof secret !== 'string' || secret.length === 0) { + throw new Error(`The webhook secret must either be set using the env var, OPENAI_WEBHOOK_SECRET, on the client class, OpenAI({ webhookSecret: '123' }), or passed to this function`); + } +}, _Webhooks_getRequiredHeader = function _Webhooks_getRequiredHeader(headers, name) { + if (!headers) { + throw new Error(`Headers are required`); + } + const value = headers.get(name); + if (value === null || value === undefined) { + throw new Error(`Missing required header: ${name}`); + } + return value; +}; +//# sourceMappingURL=webhooks.js.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f39813ee6e1620e36147a5f76da3486e2e91206c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;AAEtF,uCAAwD;AACxD,kDAA+C;AAC/C,oDAAgE;AAEhE,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;;IAqIA,CAAC;IApIC;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa,EAC9D,YAAoB,GAAG;QAEvB,MAAM,I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AC;YACnC,IAAI,CAAC;gBACH,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;gBACxD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CACxC,MAAM,EACN,GAAG,EACH,cAAc,EACd,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CACxC,CAAC;gBAEF,IAAI,OAAO,EAAE,CAAC;oBACZ,OAAO,CAAC,wBAAwB;gBAClC,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,iEAAiE;gBACjE,SAAS;YACX,CAAC;QACH,CAAC;QAED,MAAM,IAAI,oCAA4B,CACpC,mEAAmE,CACpE,CAAC;IACJ,CAAC;CAuBF;AArID,4BAqIC;kGArBiB,MAAiC;IAC/C,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CACb,mKAAmK,CACpK,CAAC;IACJ,CAAC;AACH,CAAC,qEAEkB,OAAgB,EAAE,IAAY;IAC/C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs new file mode 100644 index 0000000000000000000000000000000000000000..6b887cf05dd750abd505a1306513ab69af444c74 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs @@ -0,0 +1,97 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +var _Webhooks_instances, _Webhooks_validateSecret, _Webhooks_getRequiredHeader; +import { __classPrivateFieldGet } from "../internal/tslib.mjs"; +import { InvalidWebhookSignatureError } from "../error.mjs"; +import { APIResource } from "../core/resource.mjs"; +import { buildHeaders } from "../internal/headers.mjs"; +export class Webhooks extends APIResource { + constructor() { + super(...arguments); + _Webhooks_instances.add(this); + } + /** + * Validates that the given payload was sent by OpenAI and parses the payload. + */ + async unwrap(payload, headers, secret = this._client.webhookSecret, tolerance = 300) { + await this.verifySignature(payload, headers, secret, tolerance); + return JSON.parse(payload); + } + /** + * Validates whether or not the webhook payload was sent by OpenAI. + * + * An error will be raised if the webhook payload was not sent by OpenAI. + * + * @param payload - The webhook payload + * @param headers - The webhook headers + * @param secret - The webhook secret (optional, will use client secret if not provided) + * @param tolerance - Maximum age of the webhook in seconds (default: 300 = 5 minutes) + */ + async verifySignature(payload, headers, secret = this._client.webhookSecret, tolerance = 300) { + if (typeof crypto === 'undefined' || + typeof crypto.subtle.importKey !== 'function' || + typeof crypto.subtle.verify !== 'function') { + throw new Error('Webhook signature verification is only supported when the `crypto` global is defined'); + } + __classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_validateSecret).call(this, secret); + const headersObj = buildHeaders([headers]).values; + const signatureHeader = __classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-signature'); + const timestamp = __classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-timestamp'); + const webhookId = __classPrivateFieldGet(this, _Webhooks_instances, "m", _Webhooks_getRequiredHeader).call(this, headersObj, 'webhook-id'); + // Validate timestamp to prevent replay attacks + const timestampSeconds = parseInt(timestamp, 10); + if (isNaN(timestampSeconds)) { + throw new InvalidWebhookSignatureError('Invalid webhook timestamp format'); + } + const nowSeconds = Math.floor(Date.now() / 1000); + if (nowSeconds - timestampSeconds > tolerance) { + throw new InvalidWebhookSignatureError('Webhook timestamp is too old'); + } + if (timestampSeconds > nowSeconds + tolerance) { + throw new InvalidWebhookSignatureError('Webhook timestamp is too new'); + } + // Extract signatures from v1, format + // The signature header can have multiple values, separated by spaces. + // Each value is in the format v1,. We should accept if any match. + const signatures = signatureHeader + .split(' ') + .map((part) => (part.startsWith('v1,') ? part.substring(3) : part)); + // Decode the secret if it starts with whsec_ + const decodedSecret = secret.startsWith('whsec_') ? + Buffer.from(secret.replace('whsec_', ''), 'base64') + : Buffer.from(secret, 'utf-8'); + // Create the signed payload: {webhook_id}.{timestamp}.{payload} + const signedPayload = webhookId ? `${webhookId}.${timestamp}.${payload}` : `${timestamp}.${payload}`; + // Import the secret as a cryptographic key for HMAC + const key = await crypto.subtle.importKey('raw', decodedSecret, { name: 'HMAC', hash: 'SHA-256' }, false, ['verify']); + // Check if any signature matches using timing-safe WebCrypto verify + for (const signature of signatures) { + try { + const signatureBytes = Buffer.from(signature, 'base64'); + const isValid = await crypto.subtle.verify('HMAC', key, signatureBytes, new TextEncoder().encode(signedPayload)); + if (isValid) { + return; // Valid signature found + } + } + catch { + // Invalid base64 or signature format, continue to next signature + continue; + } + } + throw new InvalidWebhookSignatureError('The given webhook signature does not match the expected signature'); + } +} +_Webhooks_instances = new WeakSet(), _Webhooks_validateSecret = function _Webhooks_validateSecret(secret) { + if (typeof secret !== 'string' || secret.length === 0) { + throw new Error(`The webhook secret must either be set using the env var, OPENAI_WEBHOOK_SECRET, on the client class, OpenAI({ webhookSecret: '123' }), or passed to this function`); + } +}, _Webhooks_getRequiredHeader = function _Webhooks_getRequiredHeader(headers, name) { + if (!headers) { + throw new Error(`Headers are required`); + } + const value = headers.get(name); + if (value === null || value === undefined) { + throw new Error(`Missing required header: ${name}`); + } + return value; +}; +//# sourceMappingURL=webhooks.mjs.map \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs.map b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c2d99a61686600916f3bae15fea5f5c4ab9f5b11 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/resources/webhooks.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAE/E,EAAE,4BAA4B,EAAE;OAChC,EAAE,WAAW,EAAE;OACf,EAAE,YAAY,EAAe;AAEpC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;;IAqIA,CAAC;IApIC;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa,EAC9D,YAAoB,GAAG;QAEvB,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAuB,CAAC;IACnD,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,eAAe,CACnB,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa,EAC9D,YAAoB,GAAG;QAEvB,IACE,OAAO,MAAM,KAAK,WAAW;YAC7B,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,KAAK,UAAU;YAC7C,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,UAAU,EAC1C,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,sFAAsF,CAAC,CAAC;QAC1G,CAAC;QAED,uBAAA,IAAI,qDAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;QAE7B,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;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H,CAAC,qEAEkB,OAAgB,EAAE,IAAY;IAC/C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/api-promise.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/api-promise.ts new file mode 100644 index 0000000000000000000000000000000000000000..8c775ee697019eb33f8b2805251379155e89114c --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/api-promise.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/api-promise instead */ +export * from './core/api-promise'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/azure.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/azure.ts new file mode 100644 index 0000000000000000000000000000000000000000..490b82b9fc6d44b5f4df82dec3f430f5b683f1ea --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/azure.ts @@ -0,0 +1,198 @@ +import type { RequestInit } from './internal/builtin-types'; +import * as Errors from './error'; +import { FinalRequestOptions } from './internal/request-options'; +import { isObj, readEnv } from './internal/utils'; +import { ClientOptions, OpenAI } from './client'; +import { buildHeaders, NullableHeaders } from './internal/headers'; + +/** API Client for interfacing with the Azure OpenAI API. */ +export interface AzureClientOptions extends ClientOptions { + /** + * Defaults to process.env['OPENAI_API_VERSION']. + */ + apiVersion?: string | undefined; + + /** + * Your Azure endpoint, including the resource, e.g. `https://example-resource.azure.openai.com/` + */ + endpoint?: string | undefined; + + /** + * A model deployment, if given, sets the base client URL to include `/deployments/{deployment}`. + * Note: this means you won't be able to use non-deployment endpoints. Not supported with Assistants APIs. + */ + deployment?: string | undefined; + + /** + * Defaults to process.env['AZURE_OPENAI_API_KEY']. + */ + apiKey?: string | undefined; + + /** + * A function that returns an access token for Microsoft Entra (formerly known as Azure Active Directory), + * which will be invoked on every request. + */ + azureADTokenProvider?: (() => Promise) | undefined; +} + +/** API Client for interfacing with the Azure OpenAI API. */ +export class AzureOpenAI extends OpenAI { + private _azureADTokenProvider: (() => Promise) | undefined; + deploymentName: string | undefined; + apiVersion: string = ''; + + /** + * API Client for interfacing with the Azure OpenAI API. + * + * @param {string | undefined} [opts.apiVersion=process.env['OPENAI_API_VERSION'] ?? undefined] + * @param {string | undefined} [opts.endpoint=process.env['AZURE_OPENAI_ENDPOINT'] ?? undefined] - Your Azure endpoint, including the resource, e.g. `https://example-resource.azure.openai.com/` + * @param {string | undefined} [opts.apiKey=process.env['AZURE_OPENAI_API_KEY'] ?? undefined] + * @param {string | undefined} opts.deployment - A model deployment, if given, sets the base client URL to include `/deployments/{deployment}`. + * @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null] + * @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL']] - Sets the base URL for the API, e.g. `https://example-resource.azure.openai.com/openai/`. + * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. + * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections. + * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. + * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request. + * @param {Headers} opts.defaultHeaders - Default headers to include with every request to the API. + * @param {DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API. + * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers. + */ + constructor({ + baseURL = readEnv('OPENAI_BASE_URL'), + apiKey = readEnv('AZURE_OPENAI_API_KEY'), + apiVersion = readEnv('OPENAI_API_VERSION'), + endpoint, + deployment, + azureADTokenProvider, + dangerouslyAllowBrowser, + ...opts + }: AzureClientOptions = {}) { + if (!apiVersion) { + throw new Errors.OpenAIError( + "The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).", + ); + } + + if (typeof azureADTokenProvider === 'function') { + dangerouslyAllowBrowser = true; + } + + if (!azureADTokenProvider && !apiKey) { + throw new Errors.OpenAIError( + 'Missing credentials. Please pass one of `apiKey` and `azureADTokenProvider`, or set the `AZURE_OPENAI_API_KEY` environment variable.', + ); + } + + if (azureADTokenProvider && apiKey) { + throw new Errors.OpenAIError( + 'The `apiKey` and `azureADTokenProvider` arguments are mutually exclusive; only one can be passed at a time.', + ); + } + + // define a sentinel value to avoid any typing issues + apiKey ??= API_KEY_SENTINEL; + + opts.defaultQuery = { ...opts.defaultQuery, 'api-version': apiVersion }; + + if (!baseURL) { + if (!endpoint) { + endpoint = process.env['AZURE_OPENAI_ENDPOINT']; + } + + if (!endpoint) { + throw new Errors.OpenAIError( + 'Must provide one of the `baseURL` or `endpoint` arguments, or the `AZURE_OPENAI_ENDPOINT` environment variable', + ); + } + + baseURL = `${endpoint}/openai`; + } else { + if (endpoint) { + throw new Errors.OpenAIError('baseURL and endpoint are mutually exclusive'); + } + } + + super({ + apiKey, + baseURL, + ...opts, + ...(dangerouslyAllowBrowser !== undefined ? { dangerouslyAllowBrowser } : {}), + }); + + this._azureADTokenProvider = azureADTokenProvider; + this.apiVersion = apiVersion; + this.deploymentName = deployment; + } + + override async buildRequest( + options: FinalRequestOptions, + props: { retryCount?: number } = {}, + ): Promise<{ req: RequestInit & { headers: Headers }; url: string; timeout: number }> { + if (_deployments_endpoints.has(options.path) && options.method === 'post' && options.body !== undefined) { + if (!isObj(options.body)) { + throw new Error('Expected request body to be an object'); + } + const model = this.deploymentName || options.body['model'] || options.__metadata?.['model']; + if (model !== undefined && !this.baseURL.includes('/deployments')) { + options.path = `/deployments/${model}${options.path}`; + } + } + return super.buildRequest(options, props); + } + + async _getAzureADToken(): Promise { + if (typeof this._azureADTokenProvider === 'function') { + const token = await this._azureADTokenProvider(); + if (!token || typeof token !== 'string') { + throw new Errors.OpenAIError( + `Expected 'azureADTokenProvider' argument to return a string but it returned ${token}`, + ); + } + return token; + } + return undefined; + } + + protected override async authHeaders(opts: FinalRequestOptions): Promise { + return; + } + + protected override async prepareOptions(opts: FinalRequestOptions): Promise { + opts.headers = buildHeaders([opts.headers]); + + /** + * The user should provide a bearer token provider if they want + * to use Azure AD authentication. The user shouldn't set the + * Authorization header manually because the header is overwritten + * with the Azure AD token if a bearer token provider is provided. + */ + if (opts.headers.values.get('Authorization') || opts.headers.values.get('api-key')) { + return super.prepareOptions(opts); + } + + const token = await this._getAzureADToken(); + if (token) { + opts.headers.values.set('Authorization', `Bearer ${token}`); + } else if (this.apiKey !== API_KEY_SENTINEL) { + opts.headers.values.set('api-key', this.apiKey); + } else { + throw new Errors.OpenAIError('Unable to handle auth'); + } + return super.prepareOptions(opts); + } +} + +const _deployments_endpoints = new Set([ + '/completions', + '/chat/completions', + '/embeddings', + '/audio/transcriptions', + '/audio/translations', + '/audio/speech', + '/images/generations', + '/batches', + '/images/edits', +]); + +const API_KEY_SENTINEL = ''; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/client.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/client.ts new file mode 100644 index 0000000000000000000000000000000000000000..78e29664aabf56229584d07caf0826efe84de9c1 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/client.ts @@ -0,0 +1,1212 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types'; +import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types'; +import { uuid4 } from './internal/utils/uuid'; +import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values'; +import { sleep } from './internal/utils/sleep'; +export type { Logger, LogLevel } from './internal/utils/log'; +import { castToError, isAbortError } from './internal/errors'; +import type { APIResponseProps } from './internal/parse'; +import { getPlatformHeaders } from './internal/detect-platform'; +import * as Shims from './internal/shims'; +import * as Opts from './internal/request-options'; +import * as qs from './internal/qs'; +import { VERSION } from './version'; +import * as Errors from './core/error'; +import * as Pagination from './core/pagination'; +import { + AbstractPage, + type ConversationCursorPageParams, + ConversationCursorPageResponse, + type CursorPageParams, + CursorPageResponse, + PageResponse, +} from './core/pagination'; +import * as Uploads from './core/uploads'; +import * as API from './resources/index'; +import { APIPromise } from './core/api-promise'; +import { + Batch, + BatchCreateParams, + BatchError, + BatchListParams, + BatchRequestCounts, + Batches, + BatchesPage, +} from './resources/batches'; +import { + Completion, + CompletionChoice, + CompletionCreateParams, + CompletionCreateParamsNonStreaming, + CompletionCreateParamsStreaming, + CompletionUsage, + Completions, +} from './resources/completions'; +import { + CreateEmbeddingResponse, + Embedding, + EmbeddingCreateParams, + EmbeddingModel, + Embeddings, +} from './resources/embeddings'; +import { + FileContent, + FileCreateParams, + FileDeleted, + FileListParams, + FileObject, + FileObjectsPage, + FilePurpose, + Files, +} from './resources/files'; +import { + Image, + ImageCreateVariationParams, + ImageEditCompletedEvent, + ImageEditParams, + ImageEditParamsNonStreaming, + ImageEditParamsStreaming, + ImageEditPartialImageEvent, + ImageEditStreamEvent, + ImageGenCompletedEvent, + ImageGenPartialImageEvent, + ImageGenStreamEvent, + ImageGenerateParams, + ImageGenerateParamsNonStreaming, + ImageGenerateParamsStreaming, + ImageModel, + Images, + ImagesResponse, +} from './resources/images'; +import { Model, ModelDeleted, Models, ModelsPage } from './resources/models'; +import { + Moderation, + ModerationCreateParams, + ModerationCreateResponse, + ModerationImageURLInput, + ModerationModel, + ModerationMultiModalInput, + ModerationTextInput, + Moderations, +} from './resources/moderations'; +import { Webhooks } from './resources/webhooks'; +import { Audio, AudioModel, AudioResponseFormat } from './resources/audio/audio'; +import { Beta } from './resources/beta/beta'; +import { Chat } from './resources/chat/chat'; +import { + ContainerCreateParams, + ContainerCreateResponse, + ContainerListParams, + ContainerListResponse, + ContainerListResponsesPage, + ContainerRetrieveResponse, + Containers, +} from './resources/containers/containers'; +import { Conversations } from './resources/conversations/conversations'; +import { + EvalCreateParams, + EvalCreateResponse, + EvalCustomDataSourceConfig, + EvalDeleteResponse, + EvalListParams, + EvalListResponse, + EvalListResponsesPage, + EvalRetrieveResponse, + EvalStoredCompletionsDataSourceConfig, + EvalUpdateParams, + EvalUpdateResponse, + Evals, +} from './resources/evals/evals'; +import { FineTuning } from './resources/fine-tuning/fine-tuning'; +import { Graders } from './resources/graders/graders'; +import { Responses } from './resources/responses/responses'; +import { + Upload, + UploadCompleteParams, + UploadCreateParams, + Uploads as UploadsAPIUploads, +} from './resources/uploads/uploads'; +import { + AutoFileChunkingStrategyParam, + FileChunkingStrategy, + FileChunkingStrategyParam, + OtherFileChunkingStrategyObject, + StaticFileChunkingStrategy, + StaticFileChunkingStrategyObject, + StaticFileChunkingStrategyObjectParam, + VectorStore, + VectorStoreCreateParams, + VectorStoreDeleted, + VectorStoreListParams, + VectorStoreSearchParams, + VectorStoreSearchResponse, + VectorStoreSearchResponsesPage, + VectorStoreUpdateParams, + VectorStores, + VectorStoresPage, +} from './resources/vector-stores/vector-stores'; +import { + ChatCompletion, + ChatCompletionAllowedToolChoice, + ChatCompletionAllowedTools, + ChatCompletionAssistantMessageParam, + ChatCompletionAudio, + ChatCompletionAudioParam, + ChatCompletionChunk, + ChatCompletionContentPart, + ChatCompletionContentPartImage, + ChatCompletionContentPartInputAudio, + ChatCompletionContentPartRefusal, + ChatCompletionContentPartText, + ChatCompletionCreateParams, + ChatCompletionCreateParamsNonStreaming, + ChatCompletionCreateParamsStreaming, + ChatCompletionCustomTool, + ChatCompletionDeleted, + ChatCompletionDeveloperMessageParam, + ChatCompletionFunctionCallOption, + ChatCompletionFunctionMessageParam, + ChatCompletionFunctionTool, + ChatCompletionListParams, + ChatCompletionMessage, + ChatCompletionMessageCustomToolCall, + ChatCompletionMessageFunctionToolCall, + ChatCompletionMessageParam, + ChatCompletionMessageToolCall, + ChatCompletionModality, + ChatCompletionNamedToolChoice, + ChatCompletionNamedToolChoiceCustom, + ChatCompletionPredictionContent, + ChatCompletionReasoningEffort, + ChatCompletionRole, + ChatCompletionStoreMessage, + ChatCompletionStreamOptions, + ChatCompletionSystemMessageParam, + ChatCompletionTokenLogprob, + ChatCompletionTool, + ChatCompletionToolChoiceOption, + ChatCompletionToolMessageParam, + ChatCompletionUpdateParams, + ChatCompletionUserMessageParam, + ChatCompletionsPage, +} from './resources/chat/completions/completions'; +import { type Fetch } from './internal/builtin-types'; +import { isRunningInBrowser } from './internal/detect-platform'; +import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers'; +import { FinalRequestOptions, RequestOptions } from './internal/request-options'; +import { readEnv } from './internal/utils/env'; +import { + type LogLevel, + type Logger, + formatRequestDetails, + loggerFor, + parseLogLevel, +} from './internal/utils/log'; +import { isEmptyObj } from './internal/utils/values'; + +export interface ClientOptions { + /** + * Defaults to process.env['OPENAI_API_KEY']. + */ + apiKey?: string | undefined; + + /** + * Defaults to process.env['OPENAI_ORG_ID']. + */ + organization?: string | null | undefined; + + /** + * Defaults to process.env['OPENAI_PROJECT_ID']. + */ + project?: string | null | undefined; + + /** + * Defaults to process.env['OPENAI_WEBHOOK_SECRET']. + */ + webhookSecret?: string | null | undefined; + + /** + * Override the default base URL for the API, e.g., "https://api.example.com/v2/" + * + * Defaults to process.env['OPENAI_BASE_URL']. + */ + baseURL?: string | null | undefined; + + /** + * The maximum amount of time (in milliseconds) that the client should wait for a response + * from the server before timing out a single request. + * + * Note that request timeouts are retried by default, so in a worst-case scenario you may wait + * much longer than this timeout before the promise succeeds or fails. + * + * @unit milliseconds + */ + timeout?: number | undefined; + /** + * Additional `RequestInit` options to be passed to `fetch` calls. + * Properties will be overridden by per-request `fetchOptions`. + */ + fetchOptions?: MergedRequestInit | undefined; + + /** + * Specify a custom `fetch` function implementation. + * + * If not provided, we expect that `fetch` is defined globally. + */ + fetch?: Fetch | undefined; + + /** + * The maximum number of times that the client will retry a request in case of a + * temporary failure, like a network error or a 5XX error from the server. + * + * @default 2 + */ + maxRetries?: number | undefined; + + /** + * Default headers to include with every request to the API. + * + * These can be removed in individual requests by explicitly setting the + * header to `null` in request options. + */ + defaultHeaders?: HeadersLike | undefined; + + /** + * Default query parameters to include with every request to the API. + * + * These can be removed in individual requests by explicitly setting the + * param to `undefined` in request options. + */ + defaultQuery?: Record | undefined; + + /** + * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers. + * Only set this option to `true` if you understand the risks and have appropriate mitigations in place. + */ + dangerouslyAllowBrowser?: boolean | undefined; + + /** + * Set the log level. + * + * Defaults to process.env['OPENAI_LOG'] or 'warn' if it isn't set. + */ + logLevel?: LogLevel | undefined; + + /** + * Set the logger. + * + * Defaults to globalThis.console. + */ + logger?: Logger | undefined; +} + +/** + * API Client for interfacing with the OpenAI API. + */ +export class OpenAI { + apiKey: string; + organization: string | null; + project: string | null; + webhookSecret: string | null; + + baseURL: string; + maxRetries: number; + timeout: number; + logger: Logger | undefined; + logLevel: LogLevel | undefined; + fetchOptions: MergedRequestInit | undefined; + + private fetch: Fetch; + #encoder: Opts.RequestEncoder; + protected idempotencyHeader?: string; + private _options: ClientOptions; + + /** + * API Client for interfacing with the OpenAI API. + * + * @param {string | undefined} [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined] + * @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null] + * @param {string | null | undefined} [opts.project=process.env['OPENAI_PROJECT_ID'] ?? null] + * @param {string | null | undefined} [opts.webhookSecret=process.env['OPENAI_WEBHOOK_SECRET'] ?? null] + * @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL'] ?? https://api.openai.com/v1] - Override the default base URL for the API. + * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. + * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls. + * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. + * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request. + * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API. + * @param {Record} opts.defaultQuery - Default query parameters to include with every request to the API. + * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers. + */ + constructor({ + baseURL = readEnv('OPENAI_BASE_URL'), + apiKey = readEnv('OPENAI_API_KEY'), + organization = readEnv('OPENAI_ORG_ID') ?? null, + project = readEnv('OPENAI_PROJECT_ID') ?? null, + webhookSecret = readEnv('OPENAI_WEBHOOK_SECRET') ?? null, + ...opts + }: ClientOptions = {}) { + if (apiKey === undefined) { + throw new Errors.OpenAIError( + "The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).", + ); + } + + const options: ClientOptions = { + apiKey, + organization, + project, + webhookSecret, + ...opts, + baseURL: baseURL || `https://api.openai.com/v1`, + }; + + if (!options.dangerouslyAllowBrowser && isRunningInBrowser()) { + throw new Errors.OpenAIError( + "It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n", + ); + } + + this.baseURL = options.baseURL!; + this.timeout = options.timeout ?? OpenAI.DEFAULT_TIMEOUT /* 10 minutes */; + this.logger = options.logger ?? console; + const defaultLogLevel = 'warn'; + // Set default logLevel early so that we can log a warning in parseLogLevel. + this.logLevel = defaultLogLevel; + this.logLevel = + parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ?? + parseLogLevel(readEnv('OPENAI_LOG'), "process.env['OPENAI_LOG']", this) ?? + defaultLogLevel; + this.fetchOptions = options.fetchOptions; + this.maxRetries = options.maxRetries ?? 2; + this.fetch = options.fetch ?? Shims.getDefaultFetch(); + this.#encoder = Opts.FallbackEncoder; + + this._options = options; + + this.apiKey = apiKey; + this.organization = organization; + this.project = project; + this.webhookSecret = webhookSecret; + } + + /** + * Create a new client instance re-using the same options given to the current client with optional overriding. + */ + withOptions(options: Partial): this { + const client = new (this.constructor as any as new (props: ClientOptions) => typeof this)({ + ...this._options, + baseURL: this.baseURL, + maxRetries: this.maxRetries, + timeout: this.timeout, + logger: this.logger, + logLevel: this.logLevel, + fetch: this.fetch, + fetchOptions: this.fetchOptions, + apiKey: this.apiKey, + organization: this.organization, + project: this.project, + webhookSecret: this.webhookSecret, + ...options, + }); + return client; + } + + /** + * Check whether the base URL is set to its default. + */ + #baseURLOverridden(): boolean { + return this.baseURL !== 'https://api.openai.com/v1'; + } + + protected defaultQuery(): Record | undefined { + return this._options.defaultQuery; + } + + protected validateHeaders({ values, nulls }: NullableHeaders) { + return; + } + + protected async authHeaders(opts: FinalRequestOptions): Promise { + return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]); + } + + protected stringifyQuery(query: Record): string { + return qs.stringify(query, { arrayFormat: 'brackets' }); + } + + private getUserAgent(): string { + return `${this.constructor.name}/JS ${VERSION}`; + } + + protected defaultIdempotencyKey(): string { + return `stainless-node-retry-${uuid4()}`; + } + + protected makeStatusError( + status: number, + error: Object, + message: string | undefined, + headers: Headers, + ): Errors.APIError { + return Errors.APIError.generate(status, error, message, headers); + } + + buildURL( + path: string, + query: Record | null | undefined, + defaultBaseURL?: string | undefined, + ): string { + const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL; + const url = + isAbsoluteURL(path) ? + new URL(path) + : new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path)); + + const defaultQuery = this.defaultQuery(); + if (!isEmptyObj(defaultQuery)) { + query = { ...defaultQuery, ...query }; + } + + if (typeof query === 'object' && query && !Array.isArray(query)) { + url.search = this.stringifyQuery(query as Record); + } + + return url.toString(); + } + + /** + * Used as a callback for mutating the given `FinalRequestOptions` object. + */ + protected async prepareOptions(options: FinalRequestOptions): Promise {} + + /** + * Used as a callback for mutating the given `RequestInit` object. + * + * This is useful for cases where you want to add certain headers based off of + * the request properties, e.g. `method` or `url`. + */ + protected async prepareRequest( + request: RequestInit, + { url, options }: { url: string; options: FinalRequestOptions }, + ): Promise {} + + get(path: string, opts?: PromiseOrValue): APIPromise { + return this.methodRequest('get', path, opts); + } + + post(path: string, opts?: PromiseOrValue): APIPromise { + return this.methodRequest('post', path, opts); + } + + patch(path: string, opts?: PromiseOrValue): APIPromise { + return this.methodRequest('patch', path, opts); + } + + put(path: string, opts?: PromiseOrValue): APIPromise { + return this.methodRequest('put', path, opts); + } + + delete(path: string, opts?: PromiseOrValue): APIPromise { + return this.methodRequest('delete', path, opts); + } + + private methodRequest( + method: HTTPMethod, + path: string, + opts?: PromiseOrValue, + ): APIPromise { + return this.request( + Promise.resolve(opts).then((opts) => { + return { method, path, ...opts }; + }), + ); + } + + request( + options: PromiseOrValue, + remainingRetries: number | null = null, + ): APIPromise { + return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined)); + } + + private async makeRequest( + optionsInput: PromiseOrValue, + retriesRemaining: number | null, + retryOfRequestLogID: string | undefined, + ): Promise { + const options = await optionsInput; + const maxRetries = options.maxRetries ?? this.maxRetries; + if (retriesRemaining == null) { + retriesRemaining = maxRetries; + } + + await this.prepareOptions(options); + + const { req, url, timeout } = await this.buildRequest(options, { + retryCount: maxRetries - retriesRemaining, + }); + + await this.prepareRequest(req, { url, options }); + + /** Not an API request ID, just for correlating local log entries. */ + const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0'); + const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`; + const startTime = Date.now(); + + loggerFor(this).debug( + `[${requestLogID}] sending request`, + formatRequestDetails({ + retryOfRequestLogID, + method: options.method, + url, + options, + headers: req.headers, + }), + ); + + if (options.signal?.aborted) { + throw new Errors.APIUserAbortError(); + } + + const controller = new AbortController(); + const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError); + const headersTime = Date.now(); + + if (response instanceof Error) { + const retryMessage = `retrying, ${retriesRemaining} attempts remaining`; + if (options.signal?.aborted) { + throw new Errors.APIUserAbortError(); + } + // detect native connection timeout errors + // deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)" + // undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)" + // others do not provide enough information to distinguish timeouts from other connection errors + const isTimeout = + isAbortError(response) || + /timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : '')); + if (retriesRemaining) { + loggerFor(this).info( + `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`, + ); + loggerFor(this).debug( + `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`, + formatRequestDetails({ + retryOfRequestLogID, + url, + durationMs: headersTime - startTime, + message: response.message, + }), + ); + return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID); + } + loggerFor(this).info( + `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`, + ); + loggerFor(this).debug( + `[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`, + formatRequestDetails({ + retryOfRequestLogID, + url, + durationMs: headersTime - startTime, + message: response.message, + }), + ); + if (isTimeout) { + throw new Errors.APIConnectionTimeoutError(); + } + throw new Errors.APIConnectionError({ cause: response }); + } + + const specialHeaders = [...response.headers.entries()] + .filter(([name]) => name === 'x-request-id') + .map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value)) + .join(''); + const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${ + response.ok ? 'succeeded' : 'failed' + } with status ${response.status} in ${headersTime - startTime}ms`; + + if (!response.ok) { + const shouldRetry = await this.shouldRetry(response); + if (retriesRemaining && shouldRetry) { + const retryMessage = `retrying, ${retriesRemaining} attempts remaining`; + + // We don't need the body of this response. + await Shims.CancelReadableStream(response.body); + loggerFor(this).info(`${responseInfo} - ${retryMessage}`); + loggerFor(this).debug( + `[${requestLogID}] response error (${retryMessage})`, + formatRequestDetails({ + retryOfRequestLogID, + url: response.url, + status: response.status, + headers: response.headers, + durationMs: headersTime - startTime, + }), + ); + return this.retryRequest( + options, + retriesRemaining, + retryOfRequestLogID ?? requestLogID, + response.headers, + ); + } + + const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`; + + loggerFor(this).info(`${responseInfo} - ${retryMessage}`); + + const errText = await response.text().catch((err: any) => castToError(err).message); + const errJSON = safeJSON(errText); + const errMessage = errJSON ? undefined : errText; + + loggerFor(this).debug( + `[${requestLogID}] response error (${retryMessage})`, + formatRequestDetails({ + retryOfRequestLogID, + url: response.url, + status: response.status, + headers: response.headers, + message: errMessage, + durationMs: Date.now() - startTime, + }), + ); + + const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers); + throw err; + } + + loggerFor(this).info(responseInfo); + loggerFor(this).debug( + `[${requestLogID}] response start`, + formatRequestDetails({ + retryOfRequestLogID, + url: response.url, + status: response.status, + headers: response.headers, + durationMs: headersTime - startTime, + }), + ); + + return { response, options, controller, requestLogID, retryOfRequestLogID, startTime }; + } + + getAPIList = Pagination.AbstractPage>( + path: string, + Page: new (...args: any[]) => PageClass, + opts?: RequestOptions, + ): Pagination.PagePromise { + return this.requestAPIList(Page, { method: 'get', path, ...opts }); + } + + requestAPIList< + Item = unknown, + PageClass extends Pagination.AbstractPage = Pagination.AbstractPage, + >( + Page: new (...args: ConstructorParameters) => PageClass, + options: FinalRequestOptions, + ): Pagination.PagePromise { + const request = this.makeRequest(options, null, undefined); + return new Pagination.PagePromise(this as any as OpenAI, request, Page); + } + + async fetchWithTimeout( + url: RequestInfo, + init: RequestInit | undefined, + ms: number, + controller: AbortController, + ): Promise { + const { signal, method, ...options } = init || {}; + if (signal) signal.addEventListener('abort', () => controller.abort()); + + const timeout = setTimeout(() => controller.abort(), ms); + + const isReadableBody = + ((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) || + (typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body); + + const fetchOptions: RequestInit = { + signal: controller.signal as any, + ...(isReadableBody ? { duplex: 'half' } : {}), + method: 'GET', + ...options, + }; + if (method) { + // Custom methods like 'patch' need to be uppercased + // See https://github.com/nodejs/undici/issues/2294 + fetchOptions.method = method.toUpperCase(); + } + + try { + // use undefined this binding; fetch errors if bound to something else in browser/cloudflare + return await this.fetch.call(undefined, url, fetchOptions); + } finally { + clearTimeout(timeout); + } + } + + private async shouldRetry(response: Response): Promise { + // Note this is not a standard header. + const shouldRetryHeader = response.headers.get('x-should-retry'); + + // If the server explicitly says whether or not to retry, obey. + if (shouldRetryHeader === 'true') return true; + if (shouldRetryHeader === 'false') return false; + + // Retry on request timeouts. + if (response.status === 408) return true; + + // Retry on lock timeouts. + if (response.status === 409) return true; + + // Retry on rate limits. + if (response.status === 429) return true; + + // Retry internal errors. + if (response.status >= 500) return true; + + return false; + } + + private async retryRequest( + options: FinalRequestOptions, + retriesRemaining: number, + requestLogID: string, + responseHeaders?: Headers | undefined, + ): Promise { + let timeoutMillis: number | undefined; + + // Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it. + const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms'); + if (retryAfterMillisHeader) { + const timeoutMs = parseFloat(retryAfterMillisHeader); + if (!Number.isNaN(timeoutMs)) { + timeoutMillis = timeoutMs; + } + } + + // About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After + const retryAfterHeader = responseHeaders?.get('retry-after'); + if (retryAfterHeader && !timeoutMillis) { + const timeoutSeconds = parseFloat(retryAfterHeader); + if (!Number.isNaN(timeoutSeconds)) { + timeoutMillis = timeoutSeconds * 1000; + } else { + timeoutMillis = Date.parse(retryAfterHeader) - Date.now(); + } + } + + // If the API asks us to wait a certain amount of time (and it's a reasonable amount), + // just do what it says, but otherwise calculate a default + if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) { + const maxRetries = options.maxRetries ?? this.maxRetries; + timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries); + } + await sleep(timeoutMillis); + + return this.makeRequest(options, retriesRemaining - 1, requestLogID); + } + + private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, maxRetries: number): number { + const initialRetryDelay = 0.5; + const maxRetryDelay = 8.0; + + const numRetries = maxRetries - retriesRemaining; + + // Apply exponential backoff, but not more than the max. + const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay); + + // Apply some jitter, take up to at most 25 percent of the retry time. + const jitter = 1 - Math.random() * 0.25; + + return sleepSeconds * jitter * 1000; + } + + async buildRequest( + inputOptions: FinalRequestOptions, + { retryCount = 0 }: { retryCount?: number } = {}, + ): Promise<{ req: FinalizedRequestInit; url: string; timeout: number }> { + const options = { ...inputOptions }; + const { method, path, query, defaultBaseURL } = options; + + const url = this.buildURL(path!, query as Record, defaultBaseURL); + if ('timeout' in options) validatePositiveInteger('timeout', options.timeout); + options.timeout = options.timeout ?? this.timeout; + const { bodyHeaders, body } = this.buildBody({ options }); + const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount }); + + const req: FinalizedRequestInit = { + method, + headers: reqHeaders, + ...(options.signal && { signal: options.signal }), + ...((globalThis as any).ReadableStream && + body instanceof (globalThis as any).ReadableStream && { duplex: 'half' }), + ...(body && { body }), + ...((this.fetchOptions as any) ?? {}), + ...((options.fetchOptions as any) ?? {}), + }; + + return { req, url, timeout: options.timeout }; + } + + private async buildHeaders({ + options, + method, + bodyHeaders, + retryCount, + }: { + options: FinalRequestOptions; + method: HTTPMethod; + bodyHeaders: HeadersLike; + retryCount: number; + }): Promise { + let idempotencyHeaders: HeadersLike = {}; + if (this.idempotencyHeader && method !== 'get') { + if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey(); + idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey; + } + + const headers = buildHeaders([ + idempotencyHeaders, + { + Accept: 'application/json', + 'User-Agent': this.getUserAgent(), + 'X-Stainless-Retry-Count': String(retryCount), + ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}), + ...getPlatformHeaders(), + 'OpenAI-Organization': this.organization, + 'OpenAI-Project': this.project, + }, + await this.authHeaders(options), + this._options.defaultHeaders, + bodyHeaders, + options.headers, + ]); + + this.validateHeaders(headers); + + return headers.values; + } + + private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): { + bodyHeaders: HeadersLike; + body: BodyInit | undefined; + } { + if (!body) { + return { bodyHeaders: undefined, body: undefined }; + } + const headers = buildHeaders([rawHeaders]); + if ( + // Pass raw type verbatim + ArrayBuffer.isView(body) || + body instanceof ArrayBuffer || + body instanceof DataView || + (typeof body === 'string' && + // Preserve legacy string encoding behavior for now + headers.values.has('content-type')) || + // `Blob` is superset of `File` + ((globalThis as any).Blob && body instanceof (globalThis as any).Blob) || + // `FormData` -> `multipart/form-data` + body instanceof FormData || + // `URLSearchParams` -> `application/x-www-form-urlencoded` + body instanceof URLSearchParams || + // Send chunked stream (each chunk has own `length`) + ((globalThis as any).ReadableStream && body instanceof (globalThis as any).ReadableStream) + ) { + return { bodyHeaders: undefined, body: body as BodyInit }; + } else if ( + typeof body === 'object' && + (Symbol.asyncIterator in body || + (Symbol.iterator in body && 'next' in body && typeof body.next === 'function')) + ) { + return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable) }; + } else { + return this.#encoder({ body, headers }); + } + } + + static OpenAI = this; + static DEFAULT_TIMEOUT = 600000; // 10 minutes + + static OpenAIError = Errors.OpenAIError; + static APIError = Errors.APIError; + static APIConnectionError = Errors.APIConnectionError; + static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError; + static APIUserAbortError = Errors.APIUserAbortError; + static NotFoundError = Errors.NotFoundError; + static ConflictError = Errors.ConflictError; + static RateLimitError = Errors.RateLimitError; + static BadRequestError = Errors.BadRequestError; + static AuthenticationError = Errors.AuthenticationError; + static InternalServerError = Errors.InternalServerError; + static PermissionDeniedError = Errors.PermissionDeniedError; + static UnprocessableEntityError = Errors.UnprocessableEntityError; + static InvalidWebhookSignatureError = Errors.InvalidWebhookSignatureError; + + static toFile = Uploads.toFile; + + completions: API.Completions = new API.Completions(this); + chat: API.Chat = new API.Chat(this); + embeddings: API.Embeddings = new API.Embeddings(this); + files: API.Files = new API.Files(this); + images: API.Images = new API.Images(this); + audio: API.Audio = new API.Audio(this); + moderations: API.Moderations = new API.Moderations(this); + models: API.Models = new API.Models(this); + fineTuning: API.FineTuning = new API.FineTuning(this); + graders: API.Graders = new API.Graders(this); + vectorStores: API.VectorStores = new API.VectorStores(this); + webhooks: API.Webhooks = new API.Webhooks(this); + beta: API.Beta = new API.Beta(this); + batches: API.Batches = new API.Batches(this); + uploads: API.Uploads = new API.Uploads(this); + responses: API.Responses = new API.Responses(this); + conversations: API.Conversations = new API.Conversations(this); + evals: API.Evals = new API.Evals(this); + containers: API.Containers = new API.Containers(this); +} + +OpenAI.Completions = Completions; +OpenAI.Chat = Chat; +OpenAI.Embeddings = Embeddings; +OpenAI.Files = Files; +OpenAI.Images = Images; +OpenAI.Audio = Audio; +OpenAI.Moderations = Moderations; +OpenAI.Models = Models; +OpenAI.FineTuning = FineTuning; +OpenAI.Graders = Graders; +OpenAI.VectorStores = VectorStores; +OpenAI.Webhooks = Webhooks; +OpenAI.Beta = Beta; +OpenAI.Batches = Batches; +OpenAI.Uploads = UploadsAPIUploads; +OpenAI.Responses = Responses; +OpenAI.Conversations = Conversations; +OpenAI.Evals = Evals; +OpenAI.Containers = Containers; + +export declare namespace OpenAI { + export type RequestOptions = Opts.RequestOptions; + + export import Page = Pagination.Page; + export { type PageResponse as PageResponse }; + + export import CursorPage = Pagination.CursorPage; + export { type CursorPageParams as CursorPageParams, type CursorPageResponse as CursorPageResponse }; + + export import ConversationCursorPage = Pagination.ConversationCursorPage; + export { + type ConversationCursorPageParams as ConversationCursorPageParams, + type ConversationCursorPageResponse as ConversationCursorPageResponse, + }; + + export { + Completions as Completions, + type Completion as Completion, + type CompletionChoice as CompletionChoice, + type CompletionUsage as CompletionUsage, + type CompletionCreateParams as CompletionCreateParams, + type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, + }; + + export { + Chat as Chat, + type ChatCompletion as ChatCompletion, + type ChatCompletionAllowedToolChoice as ChatCompletionAllowedToolChoice, + type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, + type ChatCompletionAudio as ChatCompletionAudio, + type ChatCompletionAudioParam as ChatCompletionAudioParam, + type ChatCompletionChunk as ChatCompletionChunk, + type ChatCompletionContentPart as ChatCompletionContentPart, + type ChatCompletionContentPartImage as ChatCompletionContentPartImage, + type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, + type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, + type ChatCompletionContentPartText as ChatCompletionContentPartText, + type ChatCompletionCustomTool as ChatCompletionCustomTool, + type ChatCompletionDeleted as ChatCompletionDeleted, + type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, + type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, + type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, + type ChatCompletionFunctionTool as ChatCompletionFunctionTool, + type ChatCompletionMessage as ChatCompletionMessage, + type ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, + type ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, + type ChatCompletionMessageParam as ChatCompletionMessageParam, + type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, + type ChatCompletionModality as ChatCompletionModality, + type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, + type ChatCompletionNamedToolChoiceCustom as ChatCompletionNamedToolChoiceCustom, + type ChatCompletionPredictionContent as ChatCompletionPredictionContent, + type ChatCompletionRole as ChatCompletionRole, + type ChatCompletionStoreMessage as ChatCompletionStoreMessage, + type ChatCompletionStreamOptions as ChatCompletionStreamOptions, + type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, + type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, + type ChatCompletionTool as ChatCompletionTool, + type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, + type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, + type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, + type ChatCompletionAllowedTools as ChatCompletionAllowedTools, + type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort, + type ChatCompletionsPage as ChatCompletionsPage, + type ChatCompletionCreateParams as ChatCompletionCreateParams, + type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, + type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, + type ChatCompletionUpdateParams as ChatCompletionUpdateParams, + type ChatCompletionListParams as ChatCompletionListParams, + }; + + export { + Embeddings as Embeddings, + type CreateEmbeddingResponse as CreateEmbeddingResponse, + type Embedding as Embedding, + type EmbeddingModel as EmbeddingModel, + type EmbeddingCreateParams as EmbeddingCreateParams, + }; + + export { + Files as Files, + type FileContent as FileContent, + type FileDeleted as FileDeleted, + type FileObject as FileObject, + type FilePurpose as FilePurpose, + type FileObjectsPage as FileObjectsPage, + type FileCreateParams as FileCreateParams, + type FileListParams as FileListParams, + }; + + export { + Images as Images, + type Image as Image, + type ImageEditCompletedEvent as ImageEditCompletedEvent, + type ImageEditPartialImageEvent as ImageEditPartialImageEvent, + type ImageEditStreamEvent as ImageEditStreamEvent, + type ImageGenCompletedEvent as ImageGenCompletedEvent, + type ImageGenPartialImageEvent as ImageGenPartialImageEvent, + type ImageGenStreamEvent as ImageGenStreamEvent, + type ImageModel as ImageModel, + type ImagesResponse as ImagesResponse, + type ImageCreateVariationParams as ImageCreateVariationParams, + type ImageEditParams as ImageEditParams, + type ImageEditParamsNonStreaming as ImageEditParamsNonStreaming, + type ImageEditParamsStreaming as ImageEditParamsStreaming, + type ImageGenerateParams as ImageGenerateParams, + type ImageGenerateParamsNonStreaming as ImageGenerateParamsNonStreaming, + type ImageGenerateParamsStreaming as ImageGenerateParamsStreaming, + }; + + export { Audio as Audio, type AudioModel as AudioModel, type AudioResponseFormat as AudioResponseFormat }; + + export { + Moderations as Moderations, + type Moderation as Moderation, + type ModerationImageURLInput as ModerationImageURLInput, + type ModerationModel as ModerationModel, + type ModerationMultiModalInput as ModerationMultiModalInput, + type ModerationTextInput as ModerationTextInput, + type ModerationCreateResponse as ModerationCreateResponse, + type ModerationCreateParams as ModerationCreateParams, + }; + + export { + Models as Models, + type Model as Model, + type ModelDeleted as ModelDeleted, + type ModelsPage as ModelsPage, + }; + + export { FineTuning as FineTuning }; + + export { Graders as Graders }; + + export { + VectorStores as VectorStores, + type AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam, + type FileChunkingStrategy as FileChunkingStrategy, + type FileChunkingStrategyParam as FileChunkingStrategyParam, + type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject, + type StaticFileChunkingStrategy as StaticFileChunkingStrategy, + type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject, + type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam, + type VectorStore as VectorStore, + type VectorStoreDeleted as VectorStoreDeleted, + type VectorStoreSearchResponse as VectorStoreSearchResponse, + type VectorStoresPage as VectorStoresPage, + type VectorStoreSearchResponsesPage as VectorStoreSearchResponsesPage, + type VectorStoreCreateParams as VectorStoreCreateParams, + type VectorStoreUpdateParams as VectorStoreUpdateParams, + type VectorStoreListParams as VectorStoreListParams, + type VectorStoreSearchParams as VectorStoreSearchParams, + }; + + export { Webhooks as Webhooks }; + + export { Beta as Beta }; + + export { + Batches as Batches, + type Batch as Batch, + type BatchError as BatchError, + type BatchRequestCounts as BatchRequestCounts, + type BatchesPage as BatchesPage, + type BatchCreateParams as BatchCreateParams, + type BatchListParams as BatchListParams, + }; + + export { + UploadsAPIUploads as Uploads, + type Upload as Upload, + type UploadCreateParams as UploadCreateParams, + type UploadCompleteParams as UploadCompleteParams, + }; + + export { Responses as Responses }; + + export { Conversations as Conversations }; + + export { + Evals as Evals, + type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, + type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, + type EvalCreateResponse as EvalCreateResponse, + type EvalRetrieveResponse as EvalRetrieveResponse, + type EvalUpdateResponse as EvalUpdateResponse, + type EvalListResponse as EvalListResponse, + type EvalDeleteResponse as EvalDeleteResponse, + type EvalListResponsesPage as EvalListResponsesPage, + type EvalCreateParams as EvalCreateParams, + type EvalUpdateParams as EvalUpdateParams, + type EvalListParams as EvalListParams, + }; + + export { + Containers as Containers, + type ContainerCreateResponse as ContainerCreateResponse, + type ContainerRetrieveResponse as ContainerRetrieveResponse, + type ContainerListResponse as ContainerListResponse, + type ContainerListResponsesPage as ContainerListResponsesPage, + type ContainerCreateParams as ContainerCreateParams, + type ContainerListParams as ContainerListParams, + }; + + export type AllModels = API.AllModels; + export type ChatModel = API.ChatModel; + export type ComparisonFilter = API.ComparisonFilter; + export type CompoundFilter = API.CompoundFilter; + export type CustomToolInputFormat = API.CustomToolInputFormat; + export type ErrorObject = API.ErrorObject; + export type FunctionDefinition = API.FunctionDefinition; + export type FunctionParameters = API.FunctionParameters; + export type Metadata = API.Metadata; + export type Reasoning = API.Reasoning; + export type ReasoningEffort = API.ReasoningEffort; + export type ResponseFormatJSONObject = API.ResponseFormatJSONObject; + export type ResponseFormatJSONSchema = API.ResponseFormatJSONSchema; + export type ResponseFormatText = API.ResponseFormatText; + export type ResponseFormatTextGrammar = API.ResponseFormatTextGrammar; + export type ResponseFormatTextPython = API.ResponseFormatTextPython; + export type ResponsesModel = API.ResponsesModel; +} diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/error.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/error.ts new file mode 100644 index 0000000000000000000000000000000000000000..fc55f46c03ebe50da5ed012f61fe1a78478dbfc5 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/error.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/error instead */ +export * from './core/error'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/index.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..7ae9b1b4e838345b4b5f9c72ee7a9ff5c7e9a27e --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/index.ts @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { OpenAI as default } from './client'; + +export { type Uploadable, toFile } from './core/uploads'; +export { APIPromise } from './core/api-promise'; +export { OpenAI, type ClientOptions } from './client'; +export { PagePromise } from './core/pagination'; +export { + OpenAIError, + APIError, + APIConnectionError, + APIConnectionTimeoutError, + APIUserAbortError, + NotFoundError, + ConflictError, + RateLimitError, + BadRequestError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, + InvalidWebhookSignatureError, +} from './core/error'; + +export { AzureOpenAI } from './azure'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/pagination.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/pagination.ts new file mode 100644 index 0000000000000000000000000000000000000000..90bf015e124ad08b8f3a5fa818f0ab115d8e72f6 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/pagination.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/pagination instead */ +export * from './core/pagination'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resource.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resource.ts new file mode 100644 index 0000000000000000000000000000000000000000..363e3516b1499158e04fab6c25c747f9c01f3a99 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resource.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/resource instead */ +export * from './core/resource'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resources.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resources.ts new file mode 100644 index 0000000000000000000000000000000000000000..b283d5781de54a4df740f51ff11277e0787cb714 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/resources.ts @@ -0,0 +1 @@ +export * from './resources/index'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/streaming.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/streaming.ts new file mode 100644 index 0000000000000000000000000000000000000000..9e6da1063287d75edc54a69e4f6d03b5cd631667 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/streaming.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/streaming instead */ +export * from './core/streaming'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/tsconfig.json b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..c550e2996bc6f4af070fef8250f2a4ee8cdb5255 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/tsconfig.json @@ -0,0 +1,11 @@ +{ + // this config is included in the published src directory to prevent TS errors + // from appearing when users go to source, and VSCode opens the source .ts file + // via declaration maps + "include": ["index.ts"], + "compilerOptions": { + "target": "ES2015", + "lib": ["DOM", "DOM.Iterable", "ES2018"], + "moduleResolution": "node" + } +} diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/uploads.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/uploads.ts new file mode 100644 index 0000000000000000000000000000000000000000..b2ef64710fb618f1115aaee5650edd3aaa82ec45 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/uploads.ts @@ -0,0 +1,2 @@ +/** @deprecated Import from ./core/uploads instead */ +export * from './core/uploads'; diff --git a/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/version.ts b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/version.ts new file mode 100644 index 0000000000000000000000000000000000000000..cf8aa54187d4b4d9ccd762edf5190a6d938a9ed4 --- /dev/null +++ b/novas/novacore-zephyr/claude-code-router/node_modules/openai/src/version.ts @@ -0,0 +1 @@ +export const VERSION = '5.16.0'; // x-release-please-version