- Issue created by @fishfree
- 🇵🇹Portugal developer-rocha
@fishfree -Which provider are you using? Could you check the browser's network log?
Have you made the right settings for the text format?
You can check this video by @marcus_johansson
https://www.youtube.com/watch?v=CUjZ4HQTZ14I could not to replicate the issue.
- 🇮🇳India gaurav.kapoor
Getting the same issue with the Mistral AI provider. No error in the browser console or Drupal logs. The response from Mistral does get logged in the logs provided by the AI logging module.
- 🇧🇪Belgium wouters_f Leuven
I was able to replicate this.
It now defaulted to streaming output and the mistral provider for some reason does not do this.
I have made a fix. - Merge request !107[3476186] fix to allow for streaming and non streaming in ckeditor → (Closed) created by wouters_f
- 🇧🇪Belgium wouters_f Leuven
fishfree / gaurav.kapoor can you test if this fixes it for you?
- 🇧🇪Belgium wouters_f Leuven
wouters_f → changed the visibility of the branch 3476186-aickeditor-no-response to hidden.
- 🇧🇪Belgium wouters_f Leuven
The code you suggested gives me this:
Error: Call to undefined method Drupal\provider_openai\OpenAiChatMessageIterator::getText() in Drupal\ai_ckeditor\Controller\AiRequest->doRequest() (line 175 of /var/www/html/web/modules/contrib/ai/modules/ai_ckeditor/src/Controller/AiRequest.php). - 🇩🇪Germany marcus_johansson
Sorry, will look into why its not working that way. The OpenAiChatMessageIterator should be an StreamedChatMessageIteratorInterface
- 🇩🇪Germany marcus_johansson
I've pushed it here to a branch, where it works for me, could you check so it works for you as well? https://git.drupalcode.org/project/ai/-/commits/15794676-ckeditor-nonstr...