Ajax error on content generation

Created on 18 April 2023, over 1 year ago
Updated 8 September 2023, about 1 year ago

Problem/Motivation

Ajax error on content generation

Steps to reproduce

Configure the api key
Go to configuration -> Open Ai-> Content Generation -> Fill the form to create content -> submit

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil marcusvsouza

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @marcusvsouza
  • First commit to issue fork.
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡§πŸ‡·Brazil marcusvsouza

    Was a configuration error.

  • πŸ‡ΊπŸ‡ΈUnited States selwynpolit

    I'm seeing an AJAX error on my fresh Drupal site running with DDEV any time I try to use the OpenAI Prompt Explorer and click the "Ask OpenAI" button.

    I would love to know what kind of configuration error caused this. I have put an API key in as well as an Org ID. I have updated the config.yaml file to have:

    webserver_type: apache-fpm
    

    I've also added the file .ddev/apache/apache-streaming.conf with these contents.

    # Per OpenAI README.md
    <IfModule proxy_fcgi_module>
        <Proxy "fcgi://localhost/" enablereuse=on flushpackets=on max=10>
        </Proxy>
    </IfModule>
    

    Suggestions welcome. I'd really like to try out all the new AI magic this module has to offer.

  • Status changed to Active about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States selwynpolit
  • πŸ‡ΊπŸ‡ΈUnited States selwynpolit

    And it appears that the answer was to give OpenAI some money. That fixed it. Hopefully this saves someone else some time. Closing this ticket.

  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States selwynpolit

    Perhaps a feature request might be in order to display a message to the user that they need to pay OpenAI (rather than an ajax error)

Production build 0.71.5 2024