@copilotkit/react-textarea 1.78.0 → 1.79.1-canary.1792034358

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/dist/index.umd.js CHANGED
@@ -1430,11 +1430,7 @@ lodash_merge = __toESM(lodash_merge);
1430
1430
  */
1431
1431
  function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategories, apiConfig) {
1432
1432
  const { getContextString, copilotApiConfig } = (0, _copilotkit_react_core.useCopilotContext)();
1433
- const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;
1434
- ({
1435
- ...copilotApiConfig.headers,
1436
- ...publicApiKey ? { [_copilotkit_shared.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {}
1437
- });
1433
+ const { chatApiEndpoint: url, credentials, properties } = copilotApiConfig;
1438
1434
  const { maxTokens, stop, temperature = 0 } = apiConfig;
1439
1435
  return (0, react.useCallback)(async (editorState, abortSignal) => {
1440
1436
  return await retry(async () => {