Skip to main content

GPT for Docs issues

This article covers a wide range of issues that can be encountered with GPT for Docs. We'll provide fixes and guidance for troubleshooting everything from API key issues to script errors and rate limits.

Errors

Set OpenAI API key

Please set OpenAI API key in Extensions menu > GPT for Sheets™ and Docs™ > Set API keys

Problem (1): You haven't set any API key in GPT for Docs.

Problem (2): You're using multiple Google accounts in the same browser session.

Solution
  1. Create a dedicated Chrome profile.
  2. Create a new document.
  3. Set up your API key in this new document.
  4. Try submitting a prompt again.

OpenAI free trial expired

Problem: The OpenAI free trial period associated with your account may have expired.

Warning
  • ChatGPT Plus/Pro subscriptions don't cover the use of OpenAI APIs, used by GPT for Docs.
  • Verifying your account with a phone number that hasn’t been used before is necessary to benefit from a free trial.
Solutions
  1. Go to OpenAI billing settings.
  2. Add payment details.
  3. Purchase OpenAI credits.
  4. In Google Sheets, go to Extensions > GPT for Sheets and Docs > Open, then select API keys in the add-on menu to ensure your OpenAI organization is correctly configured.
  5. Wait up to 30 minutes for your OpenAI API key to become active.

Your document or selection is too long

Your document or selection is too long to be processed in one shot or your max response length is too high.

Problem: You have requested GPT for Docs to process a portion of text that exceeds the token limit set for your input size.

Solutions

Models have a maximum token limit, which is the maximum total number of tokens that can be used in both the input and the response. This means models may not provide complete responses to long queries or when a large portion of text is selected as input.

To stay within the token limit, you can:

  • Highlight a smaller portion of text in your document
  • Reduce the value of Max response tokens
  • Select a model with a higher limit (context window)

API key limited by OpenAI

Your API key is limited to 3 requests per minute by OpenAI. Set up a payment method on OpenAI platform in order to increase your rate limit.

Problem: If your OpenAI organization is using a free trial, the rate limits of your API key will be too low to be used in GPT for Docs.
Solutions

If you are not using an OpenAI free trial account

Check that your OpenAI organization is correctly set in GPT for Docs:

  1. In Google Sheets, go to Extensions > GPT for Sheets and Docs > Open, then select API keys in the add-on menu.
  2. Enter your OpenAI organization ID and select Save. This step is crucial if you are part of multiple organizations, as it ensures that billing for usage in both GPT for Docs and GPT for Sheets is attributed to the appropriate account.

    Important Note: To check if the organization you are using has remaining credits, follow these steps:

    1. Click on your user icon in the bottom left corner and select the appropriate organization.

    2. Go to Billing settings to check if you have remaining credits.

If you are using an OpenAI free trial account

Buy OpenAI credits for increased API rate limits.

  1. Go to OpenAI billing settings.
  2. Add your payment details.
  3. Purchase OpenAI credits starting at $5 to upgrade your account from the Free tier to Tier 1. This change increases your rate limit from 3 to 3,500 requests per minute with the gpt-3.5-turbo model. Note that TPM (Tokens Per Minute) limitations still apply, and further tier progression is necessary for greater TPM access.
  4. Wait up to 30 minutes for the new API key limit to become active.

Script error

ScriptError: Authorisation is required to perform that action.

Problem: You are likely using multiple Google accounts in the same Chrome session.

Solution
  1. Create a dedicated Chrome profile.
  2. Create a new document.
  3. Set up your API key in this new document.
  4. Try submitting a prompt again.

Requests per day limit reached

You have reached your xxx requests per day limit for model xxx.

Problem: You have reached your limit of requests per day (RPD) for the selected model.

Solutions

Tokens per day limit reached

You have xxx / xxx tokens per day left for model xxx.

Problem: You have reached your limit of tokens per day (TPD) for the selected model.

Solutions

Service invoked too many times

Error: You've exceeded the Google Sheets external service calls daily limit (20K for Gmail accounts, 100K for Google Workspace accounts).

Problem: You have reached your daily quota of calls to an external service from your Google account.

  • Quota for gmail.com accounts: 20k / day
  • Quota for Google Workspace accounts: 100k / day

These figures are subject to arbitrary change by Google.

Solution

Quotas reset every 24 hours, so please wait for the end of this period to regain access.

Problems

Problem: When you select Extensions > GPT for Sheets and Docs, the only option you see is Help. Accessing the Extensions menu immediately after opening your document may cause this problem.
Solution

Refresh your page, wait 30 seconds, then try to access the Extensions menu again.

Problem: GPT for Docs sidebar is blank, or fails to load.
Solution
  1. Open GPT for Docs in a Chrome Incognito window.
  2. If the sidebar loads successfully, check the following:

    • Ensure that you are not using multiple Google accounts in the same Chrome session. If you are, create a new profile using this guide.
    • Clear the cache and cookies on your browser.
    • Disable any extension on your regular browser that may be preventing GPT for Docs from launching. You can troubleshoot this by disabling one by one the extensions, reloading your Google document and trying to launch the sidebar again.

    If the problem persists, please let us know by submitting a support request.

My response is cut or incomplete

Problem: The response you get from GPT for Docs seems truncated.

Solution

Models have a maximum token limit, which is the maximum total number of tokens that can be used in both the input and the response. This means models may not provide complete responses to long queries or when a large portion of text is selected as input.

To stay within the token limit, you can:

  • Highlight a smaller portion of text in your document
  • Reduce the value of Max response tokens
  • Select a model with a higher limit (context window)

I cannot use GPT-4

Problem: You don't have access to GPT-4. The organization linked to your OpenAI account may be on a free trial.

warning

The ChatGPT Plus subscription doesn't cover usage of OpenAI APIs, used by GPT for Docs, so paying for ChatGPT Plus won't enable you to use GPT-4 in this add-on.

Solutions

If you are not using an OpenAI free trial account

Check that your OpenAI organization is correctly set in GPT for Docs:

  1. In Google Sheets, go to Extensions > GPT for Sheets and Docs > Open, then select API keys in the add-on menu.
  2. Enter your OpenAI organization ID and select Save. This step is crucial if you are part of multiple organizations, as it ensures that billing for usage in both GPT for Docs and GPT for Sheets is attributed to the appropriate account.

    Important Note: To check if the organization you are using has remaining credits, follow these steps:

    1. Click on your user icon in the bottom left corner and select the appropriate organization.

    2. Go to Billing settings to check if you have remaining credits.

If you are using an OpenAI free trial account

Buy OpenAI credits for increased API rate limits.

  1. Go to OpenAI billing settings.
  2. Add your payment details.
  3. Purchase OpenAI credits starting at $5 to upgrade your account from the Free tier to Tier 1. This change increases your rate limit from 3 to 3,500 requests per minute with the gpt-3.5-turbo model. Note that TPM (Tokens Per Minute) limitations still apply, and further tier progression is necessary for greater TPM access.
  4. Wait up to 30 minutes for the new API key limit to become active.

Need more help?

If none of the listed solutions addresses your issue, fill this form to reach out to our support team for further assistance.