supercompat 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openai/index.js
CHANGED
|
@@ -6890,7 +6890,7 @@ var completionsRunAdapter = function() {
|
|
|
6890
6890
|
handleRun: function(param) {
|
|
6891
6891
|
var client = param.client, run5 = param.run, onEvent3 = param.onEvent, getMessages3 = param.getMessages;
|
|
6892
6892
|
return _async_to_generator(function() {
|
|
6893
|
-
var _message5_toolCalls, opts, _tmp, providerResponse, e, _ref, _ref1, _e_cause, message5, toolCallsRunStep, currentContent, currentToolCalls, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, chunk, _chunk_choices, choices, choice, delta, _delta_content, err, messageToolCalls, functionToolCalls, pendingFunctionToolCalls, requiredToolCalls;
|
|
6893
|
+
var _message5_toolCalls, opts, _tmp, providerResponse, e, _ref, _ref1, _ref2, _e_status, _e_cause, message5, toolCallsRunStep, currentContent, currentToolCalls, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, chunk, _chunk_choices, choices, choice, delta, _delta_content, err, messageToolCalls, functionToolCalls, pendingFunctionToolCalls, requiredToolCalls;
|
|
6894
6894
|
return _ts_generator(this, function(_state) {
|
|
6895
6895
|
switch(_state.label){
|
|
6896
6896
|
case 0:
|
|
@@ -6964,8 +6964,8 @@ var completionsRunAdapter = function() {
|
|
|
6964
6964
|
failed_at: dayjs().unix(),
|
|
6965
6965
|
status: "in_progress",
|
|
6966
6966
|
last_error: {
|
|
6967
|
-
code: "server_error",
|
|
6968
|
-
message: "".concat((
|
|
6967
|
+
code: (_ref = (_ref1 = e === null || e === void 0 ? void 0 : e.code) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_status = e.status) === null || _e_status === void 0 ? void 0 : _e_status.toString()) !== null && _ref !== void 0 ? _ref : "server_error",
|
|
6968
|
+
message: "".concat((_ref2 = e === null || e === void 0 ? void 0 : e.message) !== null && _ref2 !== void 0 ? _ref2 : "Unknown error").concat((e === null || e === void 0 ? void 0 : (_e_cause = e.cause) === null || _e_cause === void 0 ? void 0 : _e_cause.message) ? " (cause: ".concat(e.cause.message, ")") : "").concat((e === null || e === void 0 ? void 0 : e.status) ? " [status: ".concat(e.status, "]") : "")
|
|
6969
6969
|
}
|
|
6970
6970
|
})
|
|
6971
6971
|
})
|
|
@@ -15046,7 +15046,7 @@ var post15 = function(param) {
|
|
|
15046
15046
|
readableStream = new ReadableStream({
|
|
15047
15047
|
start: function start(controller) {
|
|
15048
15048
|
return _async_to_generator(function() {
|
|
15049
|
-
var error, _ref, _ref1, _error_cause;
|
|
15049
|
+
var error, _ref, _ref1, _ref2, _error_status, _error_cause;
|
|
15050
15050
|
return _ts_generator(this, function(_state) {
|
|
15051
15051
|
switch(_state.label){
|
|
15052
15052
|
case 0:
|
|
@@ -15096,8 +15096,8 @@ var post15 = function(param) {
|
|
|
15096
15096
|
id: run5.id,
|
|
15097
15097
|
failed_at: dayjs21().unix(),
|
|
15098
15098
|
last_error: {
|
|
15099
|
-
code: "server_error",
|
|
15100
|
-
message: "".concat((
|
|
15099
|
+
code: (_ref = (_ref1 = error === null || error === void 0 ? void 0 : error.code) !== null && _ref1 !== void 0 ? _ref1 : error === null || error === void 0 ? void 0 : (_error_status = error.status) === null || _error_status === void 0 ? void 0 : _error_status.toString()) !== null && _ref !== void 0 ? _ref : "server_error",
|
|
15100
|
+
message: "".concat((_ref2 = error === null || error === void 0 ? void 0 : error.message) !== null && _ref2 !== void 0 ? _ref2 : "Unknown error").concat((error === null || error === void 0 ? void 0 : (_error_cause = error.cause) === null || _error_cause === void 0 ? void 0 : _error_cause.message) ? " (cause: ".concat(error.cause.message, ")") : "").concat((error === null || error === void 0 ? void 0 : error.status) ? " [status: ".concat(error.status, "]") : "")
|
|
15101
15101
|
}
|
|
15102
15102
|
}
|
|
15103
15103
|
});
|
|
@@ -20560,7 +20560,7 @@ var createRunStream = function(param) {
|
|
|
20560
20560
|
readableStream = new ReadableStream({
|
|
20561
20561
|
start: function start(controller) {
|
|
20562
20562
|
return _async_to_generator(function() {
|
|
20563
|
-
var error, _ref, _ref1, _error_cause;
|
|
20563
|
+
var error, _ref, _ref1, _ref2, _error_status, _error_cause;
|
|
20564
20564
|
return _ts_generator(this, function(_state) {
|
|
20565
20565
|
switch(_state.label){
|
|
20566
20566
|
case 0:
|
|
@@ -20610,8 +20610,8 @@ var createRunStream = function(param) {
|
|
|
20610
20610
|
id: run5.id,
|
|
20611
20611
|
failed_at: dayjs32().unix(),
|
|
20612
20612
|
last_error: {
|
|
20613
|
-
code: "server_error",
|
|
20614
|
-
message: "".concat((
|
|
20613
|
+
code: (_ref = (_ref1 = error === null || error === void 0 ? void 0 : error.code) !== null && _ref1 !== void 0 ? _ref1 : error === null || error === void 0 ? void 0 : (_error_status = error.status) === null || _error_status === void 0 ? void 0 : _error_status.toString()) !== null && _ref !== void 0 ? _ref : "server_error",
|
|
20614
|
+
message: "".concat((_ref2 = error === null || error === void 0 ? void 0 : error.message) !== null && _ref2 !== void 0 ? _ref2 : "Unknown error").concat((error === null || error === void 0 ? void 0 : (_error_cause = error.cause) === null || _error_cause === void 0 ? void 0 : _error_cause.message) ? " (cause: ".concat(error.cause.message, ")") : "").concat((error === null || error === void 0 ? void 0 : error.status) ? " [status: ".concat(error.status, "]") : "")
|
|
20615
20615
|
}
|
|
20616
20616
|
}
|
|
20617
20617
|
});
|