From c7172252802457c16d5590712cf5f9ba300294b6 Mon Sep 17 00:00:00 2001 From: Robat Williams Date: Wed, 3 Jan 2024 12:16:43 +0000 Subject: [PATCH] Note about concurrency limit --- README.md | 2 +- src/functions/ConcurrencyLimitedFetch.mjs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b8717ec..60493a9 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ See the [function metadata](https://github.com/robatwilliams/openai-excel-functi > [!CAUTION] -> We advise caution to avoid unintentionally incurring excessive costs when working with many completion cells or expensive completions. Changes to dependency cells can cause mass recalculation, and certain actions in Excel can trigger full recalculation. You may wish to switch the calculation mode in Excel from automatic to manual. +> We advise caution to avoid unintentionally incurring excessive costs when working with many completion cells or expensive completions. Changes to dependency cells can cause mass recalculation, and certain actions in Excel can trigger full recalculation. You may wish to switch the calculation mode in Excel from automatic to manual. A maximum of 10 API requests are made in parallel - to cancel waiting or pending requests, undo your change or delete the formula. ## Using completion results diff --git a/src/functions/ConcurrencyLimitedFetch.mjs b/src/functions/ConcurrencyLimitedFetch.mjs index 62bcbe4..87e75a8 100644 --- a/src/functions/ConcurrencyLimitedFetch.mjs +++ b/src/functions/ConcurrencyLimitedFetch.mjs @@ -12,6 +12,8 @@ export default class ConcurrencyLimitedFetch { * scenarios in reasonable time. * Low enough to avoid incurring excessive costs before the user has a chance * to cancel, even for large model input/output sizes. + * + * Keep the readme in sync with this behaviour and chosen limit. */ static _PENDING_LIMIT = 10;