continue icon indicating copy to clipboard operation
continue copied to clipboard

[CON-274] Take into account maximum token count for embeddings provider batches

Open sestinj opened this issue 1 year ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS:*
- Continue:*
- IDE:*

Description

Example error here: https://discord.com/channels/1108621136150929458/1289672061568028722

We have a maxBatchSize, but not a maxBatchTokens, which causes us to go over limits for some APIs (e.g. Mistral limits are 128 and 16,384, so with chunk size 512 * 128 = 65,536, we exceed the limit by a bit)

To reproduce

No response

Log output

No response

CON-274

sestinj avatar Sep 29 '24 04:09 sestinj