This section provides information about the possible troubleshooting scenarios and their resolutions while using the AI Coding Assistant feature:
  • Scenario 1: How do you check for an invalid OpenAI API Key?
    You must obtain a valid key from OpenAI and ensure it is not expired. If an invalid key is used, the ChatGPT View responds with an empty output and the error log displays the following error:
    Request failed with status code: 401 and response body: {
        "error": {
            "message": "Incorrect API key provided: 
    sk-hH2D3*********************************************************************************S-nF. 
    You can find your API key at https://platform.openai.com/account/api-keys.",
            "type": "invalid_request_error",
            "param": null,
            "code": "invalid_api_key"
        }
    }
    

  • Scenario 2: When does the ChatGPT view give you an empty response?
    The ChatGPT View provides an empty response when you:
    1. Provide an invalid OpenAI Base URL, OpenAI API Endpoint, or OpenAI API Key in Windows > Preferences > AssistAI.
    2. Provide an invalid Chat Model Name or Vision Model Name.
      This error message appears when you provide an invalid Chat Model Name or Vision Model Name.
      Request failed with status code: 400 and response body: {
          "error": {
              "message": "you must provide a model parameter",
              "type": "invalid_request_error",
              "param": null,
              "code": null
          }
      }
      
      This error message appears when you provide an invalid Chat Model Name.
      Request failed with status code: 404 and response body: {
          "error": {
              "message": "The model `dfd` does not exist or you do not have access to it.",
              "type": "invalid_request_error",
              "param": null,
              "code": "model_not_found"
          }
      }
      
      
    3. Exceed the OpenAI API usage limit.
    4. Have a disrupted internet connection, because ChatGPT relies on a stable internet connection to function properly.
  • Scenario 3: When do you see ChatGPT display a blank interface?
    If the ChatGPT View displays a blank interface, check for the error log. Usually, you find the following error logged:
     “Not implemented [WebView2 runtime not found]”

    Progress recommends that you install WebView2 runtime on your machine. It is a system-level component provided by Microsoft and is not included with Progress Developer Studio.