CKEditor integration not working?

Created on 22 May 2023, about 1 year ago
Updated 25 May 2023, about 1 year ago

I'm able to use the OpenAI ChatGPT Devel Generate and OpenAI Content Tools submodules without any issues (using a paid OpenAI account), but everything I try with the OpenAI CKEditor integration module results in the following error being output in the body field.

-mike

The website encountered an unexpected error. Please try again later.<br><br><em class="placeholder">Error</em>: Call to undefined method OpenAI\Resources\Completions::createStreamed() in <em class="placeholder">Drupal\openai_ckeditor\Controller\Completion-&gt;generate()</em> (line <em class="placeholder">48</em> of <em class="placeholder">modules/contrib/openai/modules/openai_ckeditor/src/Controller/Completion.php</em>). <pre class="backtrace">call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

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

Comments & Activities

Production build 0.69.0 2024