reasoning-machines / pal

PaL: Program-Aided Language Models (ICML 2023)
https://reasonwithpal.com
Apache License 2.0
462 stars 58 forks source link

batching requests to OpenAI when using multiple completions, so we won't hit the rate limit #7

Closed urialon closed 1 year ago

urialon commented 1 year ago

The rate limits have changed, and we can no longer ask for 32 completions using the same prompt. Instead, let's sample 8 completions N times, such that 8*N >= 32.

luyug commented 1 year ago

lgtm, thanks!