@copilotkit/runtime 1.9.2-next.11 → 1.9.2-next.13
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/CHANGELOG.md +13 -0
- package/dist/{chunk-ZIEDTGZF.mjs → chunk-6V6X7HZO.mjs} +2 -2
- package/dist/{chunk-NI7RVCMB.mjs → chunk-CSXEYW65.mjs} +19 -19
- package/dist/chunk-CSXEYW65.mjs.map +1 -0
- package/dist/{chunk-GS7DO47Q.mjs → chunk-JTFQ5GIL.mjs} +1 -25
- package/dist/chunk-JTFQ5GIL.mjs.map +1 -0
- package/dist/{chunk-B2BL6HPT.mjs → chunk-LNXBP675.mjs} +2 -2
- package/dist/{chunk-CBVVBPVJ.mjs → chunk-NV2UY5BF.mjs} +2 -2
- package/dist/{chunk-VVXCPFVN.mjs → chunk-WY337BWR.mjs} +2 -2
- package/dist/index.js +17 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/lib/index.js +17 -41
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.js +0 -24
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +17 -15
- package/src/service-adapters/openai/openai-adapter.ts +0 -14
- package/dist/chunk-GS7DO47Q.mjs.map +0 -1
- package/dist/chunk-NI7RVCMB.mjs.map +0 -1
- /package/dist/{chunk-ZIEDTGZF.mjs.map → chunk-6V6X7HZO.mjs.map} +0 -0
- /package/dist/{chunk-B2BL6HPT.mjs.map → chunk-LNXBP675.mjs.map} +0 -0
- /package/dist/{chunk-CBVVBPVJ.mjs.map → chunk-NV2UY5BF.mjs.map} +0 -0
- /package/dist/{chunk-VVXCPFVN.mjs.map → chunk-WY337BWR.mjs.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-CSXEYW65.mjs";
|
|
4
4
|
import "../../../chunk-SHBDMA63.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-JTFQ5GIL.mjs";
|
|
6
6
|
import "../../../chunk-XWBDEXDA.mjs";
|
|
7
7
|
import "../../../chunk-AMUJQ6IR.mjs";
|
|
8
8
|
import "../../../chunk-2OZAGFV3.mjs";
|
|
@@ -374,7 +374,6 @@ var OpenAIAdapter = class {
|
|
|
374
374
|
const { threadId: threadIdFromRequest, model = this.model, messages, actions, eventSource, forwardedParameters } = request;
|
|
375
375
|
const tools = actions.map(convertActionInputToOpenAITool);
|
|
376
376
|
const threadId = threadIdFromRequest ?? (0, import_shared3.randomUUID)();
|
|
377
|
-
console.log("messages", messages);
|
|
378
377
|
const validToolUseIds = /* @__PURE__ */ new Set();
|
|
379
378
|
for (const message of messages) {
|
|
380
379
|
if (message.isActionExecutionMessage()) {
|
|
@@ -404,29 +403,6 @@ var OpenAIAdapter = class {
|
|
|
404
403
|
}
|
|
405
404
|
};
|
|
406
405
|
}
|
|
407
|
-
console.log("INPUT", {
|
|
408
|
-
model,
|
|
409
|
-
stream: true,
|
|
410
|
-
messages: openaiMessages,
|
|
411
|
-
...tools.length > 0 && {
|
|
412
|
-
tools
|
|
413
|
-
},
|
|
414
|
-
...(forwardedParameters == null ? void 0 : forwardedParameters.maxTokens) && {
|
|
415
|
-
max_tokens: forwardedParameters.maxTokens
|
|
416
|
-
},
|
|
417
|
-
...(forwardedParameters == null ? void 0 : forwardedParameters.stop) && {
|
|
418
|
-
stop: forwardedParameters.stop
|
|
419
|
-
},
|
|
420
|
-
...toolChoice && {
|
|
421
|
-
tool_choice: toolChoice
|
|
422
|
-
},
|
|
423
|
-
...this.disableParallelToolCalls && {
|
|
424
|
-
parallel_tool_calls: false
|
|
425
|
-
},
|
|
426
|
-
...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
|
|
427
|
-
temperature: forwardedParameters.temperature
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
406
|
try {
|
|
431
407
|
const stream = this.openai.beta.chat.completions.stream({
|
|
432
408
|
model,
|