@copilotkit/react-textarea 1.5.1-next.1 → 1.5.1-next.3

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 (46) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{chunk-MGYT7RNL.mjs → chunk-4PNWGPAR.mjs} +5 -5
  3. package/dist/{chunk-PZYM7K4Y.mjs → chunk-AMQQHDWZ.mjs} +19 -19
  4. package/dist/{chunk-2VMZ5ZWT.mjs → chunk-BZBSPKHQ.mjs} +4 -4
  5. package/dist/{chunk-4XXU5BSA.mjs → chunk-EVEUQINY.mjs} +2 -2
  6. package/dist/{chunk-QFXR6DOA.mjs → chunk-GUZIMGGZ.mjs} +1 -1
  7. package/dist/chunk-GUZIMGGZ.mjs.map +1 -0
  8. package/dist/{chunk-F6GMWOLE.mjs → chunk-PTPNOBEI.mjs} +3 -4
  9. package/dist/chunk-PTPNOBEI.mjs.map +1 -0
  10. package/dist/{chunk-ABYCGF77.mjs → chunk-TIS7PLZC.mjs} +2 -2
  11. package/dist/{chunk-BNBGJBBM.mjs → chunk-VU4BKPKI.mjs} +7 -7
  12. package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +17 -17
  13. package/dist/components/copilot-textarea/copilot-textarea.js +2 -3
  14. package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
  15. package/dist/components/copilot-textarea/copilot-textarea.mjs +24 -24
  16. package/dist/components/hovering-toolbar/hovering-toolbar.mjs +8 -8
  17. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +5 -5
  18. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +6 -6
  19. package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +6 -6
  20. package/dist/components/index.js +2 -3
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +24 -24
  23. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +2 -3
  24. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
  25. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +1 -1
  26. package/dist/index.js +2 -3
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +30 -30
  29. package/dist/types/autosuggestions-config/autosuggestions-config.js.map +1 -1
  30. package/dist/types/autosuggestions-config/autosuggestions-config.mjs +3 -3
  31. package/dist/types/autosuggestions-config/index.js.map +1 -1
  32. package/dist/types/autosuggestions-config/index.mjs +3 -3
  33. package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +0 -1
  34. package/dist/types/autosuggestions-config/suggestions-api-config.js.map +1 -1
  35. package/dist/types/autosuggestions-config/suggestions-api-config.mjs +1 -1
  36. package/dist/types/index.js.map +1 -1
  37. package/dist/types/index.mjs +3 -3
  38. package/package.json +4 -4
  39. package/dist/chunk-F6GMWOLE.mjs.map +0 -1
  40. package/dist/chunk-QFXR6DOA.mjs.map +0 -1
  41. /package/dist/{chunk-MGYT7RNL.mjs.map → chunk-4PNWGPAR.mjs.map} +0 -0
  42. /package/dist/{chunk-PZYM7K4Y.mjs.map → chunk-AMQQHDWZ.mjs.map} +0 -0
  43. /package/dist/{chunk-2VMZ5ZWT.mjs.map → chunk-BZBSPKHQ.mjs.map} +0 -0
  44. /package/dist/{chunk-4XXU5BSA.mjs.map → chunk-EVEUQINY.mjs.map} +0 -0
  45. /package/dist/{chunk-ABYCGF77.mjs.map → chunk-TIS7PLZC.mjs.map} +0 -0
  46. /package/dist/{chunk-BNBGJBBM.mjs.map → chunk-VU4BKPKI.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # ui
2
2
 
3
+ ## 1.5.1-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - test prerelease #3
8
+ - Updated dependencies
9
+ - @copilotkit/react-core@1.5.1-next.3
10
+ - @copilotkit/runtime-client-gql@1.5.1-next.3
11
+ - @copilotkit/shared@1.5.1-next.3
12
+
13
+ ## 1.5.1-next.2
14
+
15
+ ### Patch Changes
16
+
17
+ - da280ed: Test prerelease script
18
+ - Updated dependencies [ed39d40]
19
+ - Updated dependencies [da280ed]
20
+ - Updated dependencies [649ebcc]
21
+ - @copilotkit/react-core@1.5.1-next.2
22
+ - @copilotkit/runtime-client-gql@1.5.1-next.2
23
+ - @copilotkit/shared@1.5.1-next.2
24
+
3
25
  ## 1.5.1-next.1
4
26
 
5
27
  ### Patch Changes
@@ -1,12 +1,12 @@
1
- import {
2
- defaultEditingApiConfig
3
- } from "./chunk-EJGGLWWR.mjs";
4
1
  import {
5
2
  defaultInsertionsApiConfig
6
3
  } from "./chunk-MCNXIA4Q.mjs";
7
4
  import {
8
5
  defaultSuggestionsApiConfig
9
- } from "./chunk-QFXR6DOA.mjs";
6
+ } from "./chunk-GUZIMGGZ.mjs";
7
+ import {
8
+ defaultEditingApiConfig
9
+ } from "./chunk-EJGGLWWR.mjs";
10
10
  import {
11
11
  defaultBaseAutosuggestionsConfig
12
12
  } from "./chunk-4CVSOOJY.mjs";
@@ -29,4 +29,4 @@ var defaultAutosuggestionsConfig = __spreadProps(__spreadValues({}, defaultBaseA
29
29
  export {
30
30
  defaultAutosuggestionsConfig
31
31
  };
32
- //# sourceMappingURL=chunk-MGYT7RNL.mjs.map
32
+ //# sourceMappingURL=chunk-4PNWGPAR.mjs.map
@@ -1,9 +1,6 @@
1
1
  import {
2
- addAutocompletionsToEditor
3
- } from "./chunk-2C7O2EVM.mjs";
4
- import {
5
- clearAutocompletionsFromEditor
6
- } from "./chunk-GQN2HYFJ.mjs";
2
+ useAddBrandingCss
3
+ } from "./chunk-7LSRNPNI.mjs";
7
4
  import {
8
5
  useAutosuggestions
9
6
  } from "./chunk-23Q6A46J.mjs";
@@ -14,30 +11,33 @@ import {
14
11
  usePopulateCopilotTextareaRef
15
12
  } from "./chunk-QJNFNPWH.mjs";
16
13
  import {
17
- replaceEditorText
18
- } from "./chunk-5UNJXFUO.mjs";
14
+ makeRenderElementFunction
15
+ } from "./chunk-7L6GIHDM.mjs";
16
+ import {
17
+ makeRenderPlaceholderFunction
18
+ } from "./chunk-XW3ICO4S.mjs";
19
19
  import {
20
20
  TrackerTextEditedSinceLastCursorMovement
21
21
  } from "./chunk-LQ2OWQU7.mjs";
22
22
  import {
23
- useAddBrandingCss
24
- } from "./chunk-7LSRNPNI.mjs";
23
+ addAutocompletionsToEditor
24
+ } from "./chunk-2C7O2EVM.mjs";
25
25
  import {
26
- HoveringToolbar
27
- } from "./chunk-4XXU5BSA.mjs";
26
+ clearAutocompletionsFromEditor
27
+ } from "./chunk-GQN2HYFJ.mjs";
28
28
  import {
29
- HoveringEditorProvider,
30
- useHoveringEditorContext
31
- } from "./chunk-LYB4B6MK.mjs";
29
+ replaceEditorText
30
+ } from "./chunk-5UNJXFUO.mjs";
32
31
  import {
33
32
  defaultBaseAutosuggestionsConfig
34
33
  } from "./chunk-4CVSOOJY.mjs";
35
34
  import {
36
- makeRenderElementFunction
37
- } from "./chunk-7L6GIHDM.mjs";
35
+ HoveringToolbar
36
+ } from "./chunk-EVEUQINY.mjs";
38
37
  import {
39
- makeRenderPlaceholderFunction
40
- } from "./chunk-XW3ICO4S.mjs";
38
+ HoveringEditorProvider,
39
+ useHoveringEditorContext
40
+ } from "./chunk-LYB4B6MK.mjs";
41
41
  import {
42
42
  getFullEditorTextWithNewlines,
43
43
  getTextAroundCollapsedCursor
@@ -262,4 +262,4 @@ function makeSemiFakeReactTextAreaEvent(currentText) {
262
262
  export {
263
263
  BaseCopilotTextarea
264
264
  };
265
- //# sourceMappingURL=chunk-PZYM7K4Y.mjs.map
265
+ //# sourceMappingURL=chunk-AMQQHDWZ.mjs.map
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  IncludedFilesPreview
3
3
  } from "./chunk-KMVGEY7Q.mjs";
4
+ import {
5
+ SourceSearchBox
6
+ } from "./chunk-WGWQRALG.mjs";
4
7
  import {
5
8
  use_autosize_textarea_default
6
9
  } from "./chunk-3PQ7GSFE.mjs";
@@ -13,9 +16,6 @@ import {
13
16
  import {
14
17
  useHoveringEditorContext
15
18
  } from "./chunk-LYB4B6MK.mjs";
16
- import {
17
- SourceSearchBox
18
- } from "./chunk-WGWQRALG.mjs";
19
19
  import {
20
20
  streamPromiseFlatten
21
21
  } from "./chunk-2QDCE7PD.mjs";
@@ -226,4 +226,4 @@ var HoveringInsertionPromptBoxCore = ({
226
226
  export {
227
227
  HoveringInsertionPromptBoxCore
228
228
  };
229
- //# sourceMappingURL=chunk-2VMZ5ZWT.mjs.map
229
+ //# sourceMappingURL=chunk-BZBSPKHQ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HoveringInsertionPromptBox
3
- } from "./chunk-ABYCGF77.mjs";
3
+ } from "./chunk-TIS7PLZC.mjs";
4
4
  import {
5
5
  useHoveringEditorContext
6
6
  } from "./chunk-LYB4B6MK.mjs";
@@ -122,4 +122,4 @@ function editorState(editor, selection) {
122
122
  export {
123
123
  HoveringToolbar
124
124
  };
125
- //# sourceMappingURL=chunk-4XXU5BSA.mjs.map
125
+ //# sourceMappingURL=chunk-EVEUQINY.mjs.map
@@ -61,4 +61,4 @@ export {
61
61
  defaultSuggestionsFewShotMessages,
62
62
  defaultSuggestionsApiConfig
63
63
  };
64
- //# sourceMappingURL=chunk-QFXR6DOA.mjs.map
64
+ //# sourceMappingURL=chunk-GUZIMGGZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/autosuggestions-config/suggestions-api-config.tsx"],"sourcesContent":["import { Message, Role, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { MakeSystemPrompt } from \"./subtypes/make-system-prompt\";\n\nexport interface SuggestionsApiConfig {\n makeSystemPrompt: MakeSystemPrompt;\n fewShotMessages: Message[];\n maxTokens?: number;\n stop?: string[];\n}\n\nexport const defaultSuggestionsMakeSystemPrompt: MakeSystemPrompt = (\n textareaPurpose,\n contextString,\n) => {\n return `You are a versatile writing assistant.\n \nThe user is writing some text.\nThe purpose is: \\\"${textareaPurpose}\\\"\n\nYour job is to guess what the user will write next AS BEST YOU CAN.\nOnly guess a SHORT distance ahead. Usually 1 sentence, or at most 1 paragraph.\n\nAdjust yourself to the user's style and implied intent.\n\nThe user will provide both the text before and after the cursor. You should use this to infer what the user is likely to write next.\n<TextAfterCursor>\n<TextBeforeCursor>\n<YourSuggestion>\n\nIf we need to add a whitespace character to the suggested text, make sure to explicitly add it in.\nRefrain from adding <YourSuggestion> tags when responding\n\nThe following external context is also provided. Use it to help you make better suggestions!!!\n\\`\\`\\`\n${contextString}\n\\`\\`\\`\n`;\n};\n\nexport const defaultSuggestionsFewShotMessages: Message[] = [\n new TextMessage({\n role: Role.User,\n content:\n \"<TextAfterCursor>While I was there I also picked up some apples, oranges, and bananas.</TextAfterCursor>\",\n }),\n new TextMessage({\n role: Role.User,\n content: \"This morning I woke up and went straight to the grocery store.\",\n }),\n new TextMessage({\n role: Role.Assistant,\n content:\n \" When I arrived I went straight to the produce section and picked out a big watermelon. \",\n }),\n new TextMessage({\n role: Role.User,\n content:\n \"<TextAfterCursor>and (iii) to the appointment of the Equityholders' Representative pursuant to Section 10.7 of the Merger Agreement and to the provisions thereof.</TextAfterCursor>\",\n }),\n new TextMessage({\n role: Role.User,\n content:\n '<TextBeforeCursor>The Optionholder, in the Optionholder\\'s capacity as a holder of vested Options, hereby irrevocably and unconditionally agrees: (i) that the Optionholder shall be deemed an \"Equityholder\" under the Merger Agreement and shall be entitled to the rights and benefits, and subject to the obligations, of an \"Equityholder\" thereunder;</TextBeforeCursor>',\n }),\n new TextMessage({\n role: Role.Assistant,\n content:\n ' (ii) that, for purposes of this Agreement and the Merger Agreement, the applicable percentage set forth opposite the name of the Optionholder in the Distribution Waterfall shall be such the Optionholder\\'s \"Pro Rata Share\"; ',\n }),\n];\n\nexport const defaultSuggestionsApiConfig: SuggestionsApiConfig = {\n makeSystemPrompt: defaultSuggestionsMakeSystemPrompt,\n fewShotMessages: defaultSuggestionsFewShotMessages,\n};\n"],"mappings":";AAAA,SAAkB,MAAM,mBAAmB;AAUpC,IAAM,qCAAuD,CAClE,iBACA,kBACG;AACH,SAAO;AAAA;AAAA;AAAA,mBAGW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBlB;AAAA;AAAA;AAGF;AAEO,IAAM,oCAA+C;AAAA,EAC1D,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SACE;AAAA,EACJ,CAAC;AAAA,EACD,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SAAS;AAAA,EACX,CAAC;AAAA,EACD,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SACE;AAAA,EACJ,CAAC;AAAA,EACD,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SACE;AAAA,EACJ,CAAC;AAAA,EACD,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SACE;AAAA,EACJ,CAAC;AAAA,EACD,IAAI,YAAY;AAAA,IACd,MAAM,KAAK;AAAA,IACX,SACE;AAAA,EACJ,CAAC;AACH;AAEO,IAAM,8BAAoD;AAAA,EAC/D,kBAAkB;AAAA,EAClB,iBAAiB;AACnB;","names":[]}
@@ -22,7 +22,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
22
22
  const { getContextString, copilotApiConfig, runtimeClient } = useCopilotContext();
23
23
  const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;
24
24
  const headers = __spreadValues(__spreadValues({}, copilotApiConfig.headers), publicApiKey ? { [COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
25
- const { maxTokens, stop, temperature = 0 } = apiConfig;
25
+ const { maxTokens, stop } = apiConfig;
26
26
  return useCallback(
27
27
  (editorState, abortSignal) => __async(this, null, function* () {
28
28
  const res = yield retry(() => __async(this, null, function* () {
@@ -61,8 +61,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
61
61
  },
62
62
  forwardedParameters: {
63
63
  maxTokens,
64
- stop,
65
- temperature
64
+ stop
66
65
  }
67
66
  },
68
67
  properties,
@@ -90,4 +89,4 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
90
89
  export {
91
90
  useMakeStandardAutosuggestionFunction
92
91
  };
93
- //# sourceMappingURL=chunk-F6GMWOLE.mjs.map
92
+ //# sourceMappingURL=chunk-PTPNOBEI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx"],"sourcesContent":["import { COPILOT_CLOUD_PUBLIC_API_KEY_HEADER } from \"@copilotkit/shared\";\nimport { useCopilotContext } from \"@copilotkit/react-core\";\nimport { useCallback } from \"react\";\nimport { AutosuggestionsBareFunction } from \"../../types\";\nimport { retry } from \"../../lib/retry\";\nimport { InsertionEditorState } from \"../../types/base/autosuggestions-bare-function\";\nimport { SuggestionsApiConfig } from \"../../types/autosuggestions-config/suggestions-api-config\";\nimport {\n CopilotRuntimeClient,\n Message,\n Role,\n TextMessage,\n convertGqlOutputToMessages,\n convertMessagesToGqlInput,\n filterAgentStateMessages,\n CopilotRequestType,\n} from \"@copilotkit/runtime-client-gql\";\n\n/**\n * Returns a memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.\n * The function takes in the text before and after the cursor, and an abort signal.\n * It sends a POST request to the API endpoint with the messages array containing the system message, few shot messages, and user messages.\n * The function returns the suggestion from the API response.\n *\n * @param textareaPurpose - The purpose of the textarea. This is included in the system message.\n * @param apiEndpoint - The API endpoint to send the autosuggestion request to.\n * @param makeSystemMessage - A function that takes in a context string and returns a system message to include in the autosuggestion request.\n * @param fewShotMessages - An array of few shot messages to include in the autosuggestion request.\n * @param contextCategories - The categories of context strings we want to include. By default, we include the (default) \"global\" context category.\n * @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.\n */\nexport function useMakeStandardAutosuggestionFunction(\n textareaPurpose: string,\n contextCategories: string[],\n apiConfig: SuggestionsApiConfig,\n): AutosuggestionsBareFunction {\n const { getContextString, copilotApiConfig, runtimeClient } = useCopilotContext();\n const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;\n const headers = {\n ...copilotApiConfig.headers,\n ...(publicApiKey ? { [COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {}),\n };\n const { maxTokens, stop } = apiConfig;\n\n return useCallback(\n async (editorState: InsertionEditorState, abortSignal: AbortSignal) => {\n const res = await retry(async () => {\n // @ts-expect-error -- Passing null is forbidden, but we're filtering it later\n const messages: Message[] = [\n new TextMessage({\n role: Role.System,\n content: apiConfig.makeSystemPrompt(\n textareaPurpose,\n getContextString([], contextCategories),\n ),\n }),\n ...apiConfig.fewShotMessages,\n editorState.textAfterCursor != \"\"\n ? new TextMessage({\n role: Role.User,\n content: editorState.textAfterCursor,\n })\n : null,\n new TextMessage({\n role: Role.User,\n content: `<TextAfterCursor>${editorState.textAfterCursor}</TextAfterCursor>`,\n }),\n new TextMessage({\n role: Role.User,\n content: `<TextBeforeCursor>${editorState.textBeforeCursor}</TextBeforeCursor>`,\n }),\n ].filter(Boolean);\n\n const response = await runtimeClient\n .generateCopilotResponse({\n data: {\n frontend: {\n actions: [],\n url: window.location.href,\n },\n messages: convertMessagesToGqlInput(filterAgentStateMessages(messages)),\n metadata: {\n requestType: CopilotRequestType.TextareaCompletion,\n },\n forwardedParameters: {\n maxTokens,\n stop,\n },\n },\n properties,\n signal: abortSignal,\n })\n .toPromise();\n\n let result = \"\";\n for (const message of convertGqlOutputToMessages(\n response.data?.generateCopilotResponse?.messages ?? [],\n )) {\n if (abortSignal.aborted) {\n break;\n }\n if (message.isTextMessage()) {\n result += message.content;\n }\n }\n\n return result;\n });\n\n return res;\n },\n [apiConfig, getContextString, contextCategories, textareaPurpose],\n );\n}\n"],"mappings":";;;;;;;;;AAAA,SAAS,2CAA2C;AACpD,SAAS,yBAAyB;AAClC,SAAS,mBAAmB;AAK5B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAeA,SAAS,sCACd,iBACA,mBACA,WAC6B;AAC7B,QAAM,EAAE,kBAAkB,kBAAkB,cAAc,IAAI,kBAAkB;AAChF,QAAM,EAAE,iBAAiB,KAAK,cAAc,aAAa,WAAW,IAAI;AACxE,QAAM,UAAU,kCACX,iBAAiB,UAChB,eAAe,EAAE,CAAC,mCAAmC,GAAG,aAAa,IAAI,CAAC;AAEhF,QAAM,EAAE,WAAW,KAAK,IAAI;AAE5B,SAAO;AAAA,IACL,CAAO,aAAmC,gBAA6B;AACrE,YAAM,MAAM,MAAM,MAAM,MAAY;AA9C1C;AAgDQ,cAAM,WAAsB;AAAA,UAC1B,IAAI,YAAY;AAAA,YACd,MAAM,KAAK;AAAA,YACX,SAAS,UAAU;AAAA,cACjB;AAAA,cACA,iBAAiB,CAAC,GAAG,iBAAiB;AAAA,YACxC;AAAA,UACF,CAAC;AAAA,UACD,GAAG,UAAU;AAAA,UACb,YAAY,mBAAmB,KAC3B,IAAI,YAAY;AAAA,YACd,MAAM,KAAK;AAAA,YACX,SAAS,YAAY;AAAA,UACvB,CAAC,IACD;AAAA,UACJ,IAAI,YAAY;AAAA,YACd,MAAM,KAAK;AAAA,YACX,SAAS,oBAAoB,YAAY;AAAA,UAC3C,CAAC;AAAA,UACD,IAAI,YAAY;AAAA,YACd,MAAM,KAAK;AAAA,YACX,SAAS,qBAAqB,YAAY;AAAA,UAC5C,CAAC;AAAA,QACH,EAAE,OAAO,OAAO;AAEhB,cAAM,WAAW,MAAM,cACpB,wBAAwB;AAAA,UACvB,MAAM;AAAA,YACJ,UAAU;AAAA,cACR,SAAS,CAAC;AAAA,cACV,KAAK,OAAO,SAAS;AAAA,YACvB;AAAA,YACA,UAAU,0BAA0B,yBAAyB,QAAQ,CAAC;AAAA,YACtE,UAAU;AAAA,cACR,aAAa,mBAAmB;AAAA,YAClC;AAAA,YACA,qBAAqB;AAAA,cACnB;AAAA,cACA;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,UACA,QAAQ;AAAA,QACV,CAAC,EACA,UAAU;AAEb,YAAI,SAAS;AACb,mBAAW,WAAW;AAAA,WACpB,0BAAS,SAAT,mBAAe,4BAAf,mBAAwC,aAAxC,YAAoD,CAAC;AAAA,QACvD,GAAG;AACD,cAAI,YAAY,SAAS;AACvB;AAAA,UACF;AACA,cAAI,QAAQ,cAAc,GAAG;AAC3B,sBAAU,QAAQ;AAAA,UACpB;AAAA,QACF;AAEA,eAAO;AAAA,MACT,EAAC;AAED,aAAO;AAAA,IACT;AAAA,IACA,CAAC,WAAW,kBAAkB,mBAAmB,eAAe;AAAA,EAClE;AACF;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HoveringInsertionPromptBoxCore
3
- } from "./chunk-2VMZ5ZWT.mjs";
3
+ } from "./chunk-BZBSPKHQ.mjs";
4
4
 
5
5
  // src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -28,4 +28,4 @@ var HoveringInsertionPromptBox = (props) => {
28
28
  export {
29
29
  HoveringInsertionPromptBox
30
30
  };
31
- //# sourceMappingURL=chunk-ABYCGF77.mjs.map
31
+ //# sourceMappingURL=chunk-TIS7PLZC.mjs.map
@@ -1,15 +1,15 @@
1
+ import {
2
+ useMakeStandardAutosuggestionFunction
3
+ } from "./chunk-PTPNOBEI.mjs";
1
4
  import {
2
5
  useMakeStandardInsertionOrEditingFunction
3
6
  } from "./chunk-RXV67GJN.mjs";
4
7
  import {
5
- useMakeStandardAutosuggestionFunction
6
- } from "./chunk-F6GMWOLE.mjs";
8
+ BaseCopilotTextarea
9
+ } from "./chunk-AMQQHDWZ.mjs";
7
10
  import {
8
11
  defaultAutosuggestionsConfig
9
- } from "./chunk-MGYT7RNL.mjs";
10
- import {
11
- BaseCopilotTextarea
12
- } from "./chunk-PZYM7K4Y.mjs";
12
+ } from "./chunk-4PNWGPAR.mjs";
13
13
  import {
14
14
  __objRest,
15
15
  __spreadProps,
@@ -57,4 +57,4 @@ var CopilotTextarea = React.forwardRef(
57
57
  export {
58
58
  CopilotTextarea
59
59
  };
60
- //# sourceMappingURL=chunk-BNBGJBBM.mjs.map
60
+ //# sourceMappingURL=chunk-VU4BKPKI.mjs.map
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  BaseCopilotTextarea
3
- } from "../../chunk-PZYM7K4Y.mjs";
4
- import "../../chunk-2C7O2EVM.mjs";
5
- import "../../chunk-GQN2HYFJ.mjs";
3
+ } from "../../chunk-AMQQHDWZ.mjs";
4
+ import "../../chunk-7LSRNPNI.mjs";
6
5
  import "../../chunk-23Q6A46J.mjs";
7
6
  import "../../chunk-AJ5OMEXM.mjs";
8
7
  import "../../chunk-DRV2FOHZ.mjs";
9
8
  import "../../chunk-4NHVQZ67.mjs";
10
9
  import "../../chunk-QJNFNPWH.mjs";
11
- import "../../chunk-5UNJXFUO.mjs";
10
+ import "../../chunk-7L6GIHDM.mjs";
11
+ import "../../chunk-XW3ICO4S.mjs";
12
12
  import "../../chunk-LQ2OWQU7.mjs";
13
- import "../../chunk-7LSRNPNI.mjs";
14
- import "../../chunk-4XXU5BSA.mjs";
13
+ import "../../chunk-2C7O2EVM.mjs";
14
+ import "../../chunk-GQN2HYFJ.mjs";
15
+ import "../../chunk-5UNJXFUO.mjs";
16
+ import "../../chunk-WJHSY5T6.mjs";
17
+ import "../../chunk-4CVSOOJY.mjs";
18
+ import "../../chunk-EVEUQINY.mjs";
15
19
  import "../../chunk-L7VVZH4Q.mjs";
16
- import "../../chunk-ABYCGF77.mjs";
17
- import "../../chunk-2VMZ5ZWT.mjs";
20
+ import "../../chunk-TIS7PLZC.mjs";
21
+ import "../../chunk-BZBSPKHQ.mjs";
18
22
  import "../../chunk-KMVGEY7Q.mjs";
23
+ import "../../chunk-WGWQRALG.mjs";
19
24
  import "../../chunk-3PQ7GSFE.mjs";
20
25
  import "../../chunk-4PDYALMP.mjs";
21
- import "../../chunk-D47EKHIF.mjs";
22
- import "../../chunk-LYB4B6MK.mjs";
23
- import "../../chunk-HDBI2WN5.mjs";
24
- import "../../chunk-WGWQRALG.mjs";
25
26
  import "../../chunk-VSVQZUPW.mjs";
26
27
  import "../../chunk-I72DKFHD.mjs";
27
- import "../../chunk-2QDCE7PD.mjs";
28
+ import "../../chunk-D47EKHIF.mjs";
28
29
  import "../../chunk-YLFAIYRY.mjs";
29
- import "../../chunk-WJHSY5T6.mjs";
30
- import "../../chunk-4CVSOOJY.mjs";
31
- import "../../chunk-7L6GIHDM.mjs";
32
- import "../../chunk-XW3ICO4S.mjs";
30
+ import "../../chunk-LYB4B6MK.mjs";
31
+ import "../../chunk-HDBI2WN5.mjs";
33
32
  import "../../chunk-DFTV4TST.mjs";
34
33
  import "../../chunk-T6MTDQZ7.mjs";
35
34
  import "../../chunk-ECR45NSD.mjs";
35
+ import "../../chunk-2QDCE7PD.mjs";
36
36
  import "../../chunk-MRXNTQOX.mjs";
37
37
  export {
38
38
  BaseCopilotTextarea
@@ -110,7 +110,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
110
110
  const { getContextString, copilotApiConfig, runtimeClient } = (0, import_react_core.useCopilotContext)();
111
111
  const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;
112
112
  const headers = __spreadValues(__spreadValues({}, copilotApiConfig.headers), publicApiKey ? { [import_shared.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
113
- const { maxTokens, stop, temperature = 0 } = apiConfig;
113
+ const { maxTokens, stop } = apiConfig;
114
114
  return (0, import_react.useCallback)(
115
115
  (editorState2, abortSignal) => __async(this, null, function* () {
116
116
  const res = yield retry(() => __async(this, null, function* () {
@@ -149,8 +149,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
149
149
  },
150
150
  forwardedParameters: {
151
151
  maxTokens,
152
- stop,
153
- temperature
152
+ stop
154
153
  }
155
154
  },
156
155
  properties,