@copilotkit/runtime 1.4.8-next.1 → 1.4.8-next.2

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 (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-CGGI46KC.mjs → chunk-4DFIC23L.mjs} +2 -2
  3. package/dist/{chunk-EU52BTKR.mjs → chunk-4OJDHGJU.mjs} +2 -2
  4. package/dist/{chunk-KO4QCMY4.mjs → chunk-6SSIGQER.mjs} +2 -2
  5. package/dist/{chunk-W7GP2EOT.mjs → chunk-AKGNTDRV.mjs} +14 -1
  6. package/dist/chunk-AKGNTDRV.mjs.map +1 -0
  7. package/dist/{chunk-5KJYPVQJ.mjs → chunk-MCVGZ4ZG.mjs} +3 -3
  8. package/dist/{chunk-5KJYPVQJ.mjs.map → chunk-MCVGZ4ZG.mjs.map} +1 -1
  9. package/dist/index.js +14 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +5 -5
  12. package/dist/lib/index.js +11 -1
  13. package/dist/lib/index.js.map +1 -1
  14. package/dist/lib/index.mjs +5 -5
  15. package/dist/lib/integrations/index.js +1 -1
  16. package/dist/lib/integrations/index.js.map +1 -1
  17. package/dist/lib/integrations/index.mjs +5 -5
  18. package/dist/lib/integrations/nest/index.js +1 -1
  19. package/dist/lib/integrations/nest/index.js.map +1 -1
  20. package/dist/lib/integrations/nest/index.mjs +3 -3
  21. package/dist/lib/integrations/node-express/index.js +1 -1
  22. package/dist/lib/integrations/node-express/index.js.map +1 -1
  23. package/dist/lib/integrations/node-express/index.mjs +3 -3
  24. package/dist/lib/integrations/node-http/index.js +1 -1
  25. package/dist/lib/integrations/node-http/index.js.map +1 -1
  26. package/dist/lib/integrations/node-http/index.mjs +2 -2
  27. package/dist/service-adapters/index.js +13 -0
  28. package/dist/service-adapters/index.js.map +1 -1
  29. package/dist/service-adapters/index.mjs +1 -1
  30. package/package.json +2 -2
  31. package/src/service-adapters/anthropic/anthropic-adapter.ts +1 -0
  32. package/src/service-adapters/groq/groq-adapter.ts +1 -0
  33. package/src/service-adapters/openai/openai-adapter.ts +1 -0
  34. package/src/service-adapters/unify/unify-adapter.ts +2 -0
  35. package/dist/chunk-W7GP2EOT.mjs.map +0 -1
  36. /package/dist/{chunk-CGGI46KC.mjs.map → chunk-4DFIC23L.mjs.map} +0 -0
  37. /package/dist/{chunk-EU52BTKR.mjs.map → chunk-4OJDHGJU.mjs.map} +0 -0
  38. /package/dist/{chunk-KO4QCMY4.mjs.map → chunk-6SSIGQER.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.4.8-next.1",
47
+ version: "1.4.8-next.2",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -427,6 +427,9 @@ var OpenAIAdapter = class {
427
427
  },
428
428
  ...this.disableParallelToolCalls && {
429
429
  parallel_tool_calls: false
430
+ },
431
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
432
+ temperature: forwardedParameters.temperature
430
433
  }
431
434
  });
432
435
  eventSource.stream(async (eventStream$) => {
@@ -897,6 +900,7 @@ var UnifyAdapter = class {
897
900
  apiKey: this.apiKey,
898
901
  baseURL: "https://api.unify.ai/v0/"
899
902
  });
903
+ const forwardedParameters = request.forwardedParameters;
900
904
  const messages = request.messages.map(convertMessageToOpenAIMessage);
901
905
  const stream = await openai.chat.completions.create({
902
906
  model: this.model,
@@ -904,6 +908,9 @@ var UnifyAdapter = class {
904
908
  stream: true,
905
909
  ...tools.length > 0 && {
906
910
  tools
911
+ },
912
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
913
+ temperature: forwardedParameters.temperature
907
914
  }
908
915
  });
909
916
  let model = null;
@@ -1007,6 +1014,9 @@ var GroqAdapter = class {
1007
1014
  },
1008
1015
  ...this.disableParallelToolCalls && {
1009
1016
  parallel_tool_calls: false
1017
+ },
1018
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
1019
+ temperature: forwardedParameters.temperature
1010
1020
  }
1011
1021
  });
1012
1022
  eventSource.stream(async (eventStream$) => {
@@ -1224,6 +1234,9 @@ var AnthropicAdapter = class {
1224
1234
  model: this.model,
1225
1235
  messages: anthropicMessages,
1226
1236
  max_tokens: (forwardedParameters == null ? void 0 : forwardedParameters.maxTokens) || 1024,
1237
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) ? {
1238
+ temperature: forwardedParameters.temperature
1239
+ } : {},
1227
1240
  ...tools.length > 0 && {
1228
1241
  tools
1229
1242
  },