@copilotkit/react-textarea 1.4.8-next.2 → 1.4.8

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 +9 -16
  2. package/dist/{chunk-BNBGJBBM.mjs → chunk-53RID4IZ.mjs} +3 -3
  3. package/dist/{chunk-QFXR6DOA.mjs → chunk-GUZIMGGZ.mjs} +1 -1
  4. package/dist/chunk-GUZIMGGZ.mjs.map +1 -0
  5. package/dist/{chunk-F6GMWOLE.mjs → chunk-PTPNOBEI.mjs} +3 -4
  6. package/dist/chunk-PTPNOBEI.mjs.map +1 -0
  7. package/dist/{chunk-MGYT7RNL.mjs → chunk-ZTYA6QOT.mjs} +2 -2
  8. package/dist/components/copilot-textarea/copilot-textarea.js +2 -3
  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 +2 -3
  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 +2 -3
  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 +2 -3
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +5 -5
  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 +0 -1
  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 +0 -1
  32. package/dist/chunk-F6GMWOLE.mjs.map +0 -1
  33. package/dist/chunk-QFXR6DOA.mjs.map +0 -1
  34. /package/dist/{chunk-BNBGJBBM.mjs.map → chunk-53RID4IZ.mjs.map} +0 -0
  35. /package/dist/{chunk-MGYT7RNL.mjs.map → chunk-ZTYA6QOT.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  CopilotTextarea
3
- } from "../../chunk-BNBGJBBM.mjs";
3
+ } from "../../chunk-53RID4IZ.mjs";
4
4
  import "../../chunk-RXV67GJN.mjs";
5
- import "../../chunk-F6GMWOLE.mjs";
5
+ import "../../chunk-PTPNOBEI.mjs";
6
6
  import "../../chunk-RUV6NBIF.mjs";
7
- import "../../chunk-MGYT7RNL.mjs";
7
+ import "../../chunk-ZTYA6QOT.mjs";
8
8
  import "../../chunk-EJGGLWWR.mjs";
9
9
  import "../../chunk-MCNXIA4Q.mjs";
10
- import "../../chunk-QFXR6DOA.mjs";
10
+ import "../../chunk-GUZIMGGZ.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, temperature = 0 } = apiConfig;
1824
+ const { maxTokens, stop } = 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,8 +1860,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
1860
1860
  },
1861
1861
  forwardedParameters: {
1862
1862
  maxTokens,
1863
- stop,
1864
- temperature
1863
+ stop
1865
1864
  }
1866
1865
  },
1867
1866
  properties,