• Resolved asa777

    (@asa777)


    Error while calling OpenAI: Rate limit reached for default-gpt-3.5-turbo in organization org-xxxxxxxxxxxxx on requests per min. Limit: 20 / min. Current: 30 / min. Contact [email protected] if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter asa777

    (@asa777)

    Also, two additional requirements: Can a feature be developed to allow for cyclic calls using multiple API keys? I’m not very familiar with coding. Second, can a limit be set on the maximum number of input text characters?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    I don’t recommend doing this, you should probably contact OpenAI instead ?? Though they are not really into replying to their customers these days, I found a bug in their API (something minor but still, a bug) and they never ever replied.

    Meanwhile, you can do something like this:

    add_filter( 'mwai_ai_query', function ( $query ) {
      $apiKeys = array( 'apiKey1', 'apiKey2', 'apiKey3', 'apiKey4' );
      $randomApiKey = $apiKeys[array_rand($apiKeys)];
      $query->setApiKey( $randomApiKey );
      return $query;
    }, 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to modify the text for frequent errors?’ is closed to new replies.