@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.
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-53RID4IZ.mjs → chunk-BNBGJBBM.mjs} +3 -3
- package/dist/{chunk-PTPNOBEI.mjs → chunk-F6GMWOLE.mjs} +4 -3
- package/dist/chunk-F6GMWOLE.mjs.map +1 -0
- package/dist/{chunk-ZTYA6QOT.mjs → chunk-MGYT7RNL.mjs} +2 -2
- package/dist/{chunk-GUZIMGGZ.mjs → chunk-QFXR6DOA.mjs} +1 -1
- package/dist/chunk-QFXR6DOA.mjs.map +1 -0
- package/dist/components/copilot-textarea/copilot-textarea.js +3 -2
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +4 -4
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +3 -2
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/types/autosuggestions-config/autosuggestions-config.js.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +2 -2
- package/dist/types/autosuggestions-config/index.js.map +1 -1
- package/dist/types/autosuggestions-config/index.mjs +2 -2
- package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +1 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.js.map +1 -1
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +2 -2
- package/package.json +4 -4
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +2 -2
- package/src/types/autosuggestions-config/suggestions-api-config.tsx +1 -0
- package/dist/chunk-GUZIMGGZ.mjs.map +0 -1
- package/dist/chunk-PTPNOBEI.mjs.map +0 -1
- /package/dist/{chunk-53RID4IZ.mjs.map → chunk-BNBGJBBM.mjs.map} +0 -0
- /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-
|
|
3
|
+
} from "../../chunk-BNBGJBBM.mjs";
|
|
4
4
|
import "../../chunk-RXV67GJN.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-F6GMWOLE.mjs";
|
|
6
6
|
import "../../chunk-RUV6NBIF.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-MGYT7RNL.mjs";
|
|
8
8
|
import "../../chunk-EJGGLWWR.mjs";
|
|
9
9
|
import "../../chunk-MCNXIA4Q.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-QFXR6DOA.mjs";
|
|
11
11
|
import "../../chunk-PZYM7K4Y.mjs";
|
|
12
12
|
import "../../chunk-2C7O2EVM.mjs";
|
|
13
13
|
import "../../chunk-GQN2HYFJ.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -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,
|