@copilotkit/react-textarea 1.4.8-next.0 → 1.4.8-next.1

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 (35) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-53RID4IZ.mjs → chunk-BNBGJBBM.mjs} +3 -3
  3. package/dist/{chunk-PTPNOBEI.mjs → chunk-F6GMWOLE.mjs} +4 -3
  4. package/dist/chunk-F6GMWOLE.mjs.map +1 -0
  5. package/dist/{chunk-ZTYA6QOT.mjs → chunk-MGYT7RNL.mjs} +2 -2
  6. package/dist/{chunk-GUZIMGGZ.mjs → chunk-QFXR6DOA.mjs} +1 -1
  7. package/dist/chunk-QFXR6DOA.mjs.map +1 -0
  8. package/dist/components/copilot-textarea/copilot-textarea.js +3 -2
  9. package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
  10. package/dist/components/copilot-textarea/copilot-textarea.mjs +4 -4
  11. package/dist/components/index.js +3 -2
  12. package/dist/components/index.js.map +1 -1
  13. package/dist/components/index.mjs +4 -4
  14. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +3 -2
  15. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
  16. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +1 -1
  17. package/dist/index.js +3 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +4 -4
  20. package/dist/types/autosuggestions-config/autosuggestions-config.js.map +1 -1
  21. package/dist/types/autosuggestions-config/autosuggestions-config.mjs +2 -2
  22. package/dist/types/autosuggestions-config/index.js.map +1 -1
  23. package/dist/types/autosuggestions-config/index.mjs +2 -2
  24. package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +1 -0
  25. package/dist/types/autosuggestions-config/suggestions-api-config.js.map +1 -1
  26. package/dist/types/autosuggestions-config/suggestions-api-config.mjs +1 -1
  27. package/dist/types/index.js.map +1 -1
  28. package/dist/types/index.mjs +2 -2
  29. package/package.json +4 -4
  30. package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +2 -2
  31. package/src/types/autosuggestions-config/suggestions-api-config.tsx +1 -0
  32. package/dist/chunk-GUZIMGGZ.mjs.map +0 -1
  33. package/dist/chunk-PTPNOBEI.mjs.map +0 -1
  34. /package/dist/{chunk-53RID4IZ.mjs.map → chunk-BNBGJBBM.mjs.map} +0 -0
  35. /package/dist/{chunk-ZTYA6QOT.mjs.map → chunk-MGYT7RNL.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  CopilotTextarea
3
- } from "../../chunk-53RID4IZ.mjs";
3
+ } from "../../chunk-BNBGJBBM.mjs";
4
4
  import "../../chunk-RXV67GJN.mjs";
5
- import "../../chunk-PTPNOBEI.mjs";
5
+ import "../../chunk-F6GMWOLE.mjs";
6
6
  import "../../chunk-RUV6NBIF.mjs";
7
- import "../../chunk-ZTYA6QOT.mjs";
7
+ import "../../chunk-MGYT7RNL.mjs";
8
8
  import "../../chunk-EJGGLWWR.mjs";
9
9
  import "../../chunk-MCNXIA4Q.mjs";
10
- import "../../chunk-GUZIMGGZ.mjs";
10
+ import "../../chunk-QFXR6DOA.mjs";
11
11
  import "../../chunk-PZYM7K4Y.mjs";
12
12
  import "../../chunk-2C7O2EVM.mjs";
13
13
  import "../../chunk-GQN2HYFJ.mjs";
@@ -1821,7 +1821,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
1821
1821
  const { getContextString, copilotApiConfig, runtimeClient } = (0, import_react_core3.useCopilotContext)();
1822
1822
  const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;
1823
1823
  const headers = __spreadValues(__spreadValues({}, copilotApiConfig.headers), publicApiKey ? { [import_shared.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
1824
- const { maxTokens, stop } = apiConfig;
1824
+ const { maxTokens, stop, temperature = 0 } = apiConfig;
1825
1825
  return (0, import_react13.useCallback)(
1826
1826
  (editorState2, abortSignal) => __async(this, null, function* () {
1827
1827
  const res = yield retry(() => __async(this, null, function* () {
@@ -1860,7 +1860,8 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
1860
1860
  },
1861
1861
  forwardedParameters: {
1862
1862
  maxTokens,
1863
- stop
1863
+ stop,
1864
+ temperature
1864
1865
  }
1865
1866
  },
1866
1867
  properties,