supercompat 3.9.2 → 3.9.4
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/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6724,7 +6724,9 @@ var serializeStatus2 = function(param) {
|
|
|
6724
6724
|
return item.status;
|
|
6725
6725
|
};
|
|
6726
6726
|
var serializeItemAsImageGenerationRunStep = function(param) {
|
|
6727
|
-
var item = param.item, openaiAssistant = param.openaiAssistant, threadId = param.threadId, runId = param.runId, _param_completedAt = param.completedAt, completedAt = _param_completedAt === void 0 ? dayjs14().unix() : _param_completedAt
|
|
6727
|
+
var item = param.item, openaiAssistant = param.openaiAssistant, threadId = param.threadId, runId = param.runId, _param_completedAt = param.completedAt, completedAt = _param_completedAt === void 0 ? dayjs14().unix() : _param_completedAt, tmp = param.status, status3 = tmp === void 0 ? serializeStatus2({
|
|
6728
|
+
item: item
|
|
6729
|
+
}) : tmp;
|
|
6728
6730
|
var toolCall = {
|
|
6729
6731
|
id: "ftc".concat(item.id),
|
|
6730
6732
|
type: "function",
|
|
@@ -6754,9 +6756,7 @@ var serializeItemAsImageGenerationRunStep = function(param) {
|
|
|
6754
6756
|
assistant_id: openaiAssistant.id,
|
|
6755
6757
|
thread_id: threadId,
|
|
6756
6758
|
run_id: runId,
|
|
6757
|
-
status:
|
|
6758
|
-
item: item
|
|
6759
|
-
}),
|
|
6759
|
+
status: status3,
|
|
6760
6760
|
last_error: null,
|
|
6761
6761
|
expired_at: null,
|
|
6762
6762
|
cancelled_at: null,
|
|
@@ -7198,13 +7198,13 @@ var get17 = function(param) {
|
|
|
7198
7198
|
];
|
|
7199
7199
|
} else if (item.type === "image_generation_call") {
|
|
7200
7200
|
return [
|
|
7201
|
-
step,
|
|
7202
7201
|
serializeItemAsImageGenerationRunStep({
|
|
7203
7202
|
item: item,
|
|
7204
7203
|
openaiAssistant: openaiAssistant,
|
|
7205
7204
|
threadId: threadId,
|
|
7206
7205
|
runId: response.id
|
|
7207
|
-
})
|
|
7206
|
+
}),
|
|
7207
|
+
step
|
|
7208
7208
|
];
|
|
7209
7209
|
} else if (item.type === "web_search_call") {
|
|
7210
7210
|
return [
|
|
@@ -8243,7 +8243,8 @@ var responsesRunAdapter = function(param) {
|
|
|
8243
8243
|
event: "thread.run.step.created"
|
|
8244
8244
|
};
|
|
8245
8245
|
_tmp26 = {
|
|
8246
|
-
item: event.item
|
|
8246
|
+
item: event.item,
|
|
8247
|
+
threadId: threadId
|
|
8247
8248
|
};
|
|
8248
8249
|
return [
|
|
8249
8250
|
4,
|
|
@@ -8257,8 +8258,8 @@ var responsesRunAdapter = function(param) {
|
|
|
8257
8258
|
return [
|
|
8258
8259
|
4,
|
|
8259
8260
|
onEvent2.apply(void 0, [
|
|
8260
|
-
(_tmp25.data =
|
|
8261
|
-
(_tmp26.openaiAssistant = _state.sent(), _tmp26.
|
|
8261
|
+
(_tmp25.data = serializeItemAsMessageCreationRunStep.apply(void 0, [
|
|
8262
|
+
(_tmp26.openaiAssistant = _state.sent(), _tmp26.runId = responseCreatedResponse.id, _tmp26.status = "in_progress", _tmp26.completedAt = null, _tmp26)
|
|
8262
8263
|
]), _tmp25)
|
|
8263
8264
|
])
|
|
8264
8265
|
];
|
|
@@ -8268,8 +8269,7 @@ var responsesRunAdapter = function(param) {
|
|
|
8268
8269
|
event: "thread.run.step.created"
|
|
8269
8270
|
};
|
|
8270
8271
|
_tmp28 = {
|
|
8271
|
-
item: event.item
|
|
8272
|
-
threadId: threadId
|
|
8272
|
+
item: event.item
|
|
8273
8273
|
};
|
|
8274
8274
|
return [
|
|
8275
8275
|
4,
|
|
@@ -8283,8 +8283,8 @@ var responsesRunAdapter = function(param) {
|
|
|
8283
8283
|
return [
|
|
8284
8284
|
4,
|
|
8285
8285
|
onEvent2.apply(void 0, [
|
|
8286
|
-
(_tmp27.data =
|
|
8287
|
-
(_tmp28.openaiAssistant = _state.sent(), _tmp28.runId = responseCreatedResponse.id, _tmp28.status = "in_progress", _tmp28.completedAt = null, _tmp28)
|
|
8286
|
+
(_tmp27.data = serializeItemAsImageGenerationRunStep.apply(void 0, [
|
|
8287
|
+
(_tmp28.openaiAssistant = _state.sent(), _tmp28.threadId = threadId, _tmp28.runId = responseCreatedResponse.id, _tmp28.status = "in_progress", _tmp28.completedAt = null, _tmp28)
|
|
8288
8288
|
]), _tmp27)
|
|
8289
8289
|
])
|
|
8290
8290
|
];
|