Skip to content

Commit

Permalink
Note about concurrency limit
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Jan 3, 2024
1 parent f228aad commit c717225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See the [function metadata](https://github.com/robatwilliams/openai-excel-functi

<!-- prettier-ignore -->
> [!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

Expand Down
2 changes: 2 additions & 0 deletions src/functions/ConcurrencyLimitedFetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c717225

Please sign in to comment.