@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{chunk-ZIEDTGZF.mjs → chunk-6V6X7HZO.mjs} +2 -2
  3. package/dist/{chunk-NI7RVCMB.mjs → chunk-CSXEYW65.mjs} +19 -19
  4. package/dist/chunk-CSXEYW65.mjs.map +1 -0
  5. package/dist/{chunk-GS7DO47Q.mjs → chunk-JTFQ5GIL.mjs} +1 -25
  6. package/dist/chunk-JTFQ5GIL.mjs.map +1 -0
  7. package/dist/{chunk-B2BL6HPT.mjs → chunk-LNXBP675.mjs} +2 -2
  8. package/dist/{chunk-CBVVBPVJ.mjs → chunk-NV2UY5BF.mjs} +2 -2
  9. package/dist/{chunk-VVXCPFVN.mjs → chunk-WY337BWR.mjs} +2 -2
  10. package/dist/index.js +17 -41
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +6 -6
  13. package/dist/lib/index.js +17 -41
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/index.mjs +6 -6
  16. package/dist/lib/integrations/index.js +1 -1
  17. package/dist/lib/integrations/index.js.map +1 -1
  18. package/dist/lib/integrations/index.mjs +5 -5
  19. package/dist/lib/integrations/nest/index.js +1 -1
  20. package/dist/lib/integrations/nest/index.js.map +1 -1
  21. package/dist/lib/integrations/nest/index.mjs +3 -3
  22. package/dist/lib/integrations/node-express/index.js +1 -1
  23. package/dist/lib/integrations/node-express/index.js.map +1 -1
  24. package/dist/lib/integrations/node-express/index.mjs +3 -3
  25. package/dist/lib/integrations/node-http/index.js +1 -1
  26. package/dist/lib/integrations/node-http/index.js.map +1 -1
  27. package/dist/lib/integrations/node-http/index.mjs +2 -2
  28. package/dist/service-adapters/index.js +0 -24
  29. package/dist/service-adapters/index.js.map +1 -1
  30. package/dist/service-adapters/index.mjs +1 -1
  31. package/package.json +2 -2
  32. package/src/lib/runtime/copilot-runtime.ts +17 -15
  33. package/src/service-adapters/openai/openai-adapter.ts +0 -14
  34. package/dist/chunk-GS7DO47Q.mjs.map +0 -1
  35. package/dist/chunk-NI7RVCMB.mjs.map +0 -1
  36. /package/dist/{chunk-ZIEDTGZF.mjs.map → chunk-6V6X7HZO.mjs.map} +0 -0
  37. /package/dist/{chunk-B2BL6HPT.mjs.map → chunk-LNXBP675.mjs.map} +0 -0
  38. /package/dist/{chunk-CBVVBPVJ.mjs.map → chunk-NV2UY5BF.mjs.map} +0 -0
  39. /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-NI7RVCMB.mjs";
3
+ } from "../../../chunk-CSXEYW65.mjs";
4
4
  import "../../../chunk-SHBDMA63.mjs";
5
- import "../../../chunk-GS7DO47Q.mjs";
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,