- Issue created by @sushichris
- 🇺🇸United States ashrafabed
I get the same error when using the OpenAI provider. Mentioning in case it might make sense to have e.g. a Trait shared between the modules. I haven't dug into the code for this yet.
When using the LMStudio Provider in Drupal AI Suite, I get this error during streaming responses:
No valid stream events were sent. Make sure the events are using {text: string} or {html: string} format. You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor
The response does appear after refreshing the page, but the error itself appears whenever a live stream is attempted.
{text: string}
or {html: string}
format that Deep Chat/Drupal AI Suite expects.responseInterceptor: (originalResponse) => { // Adjust the below line based on LMStudio response structure return [{ text: originalResponse.choices[0].message.content }]; }
text
property, eliminating the "No valid stream events were sent" error.No direct UI changes.
No direct API changes; just a format adjustment to streaming output.
None.
Needs review
1.0
Code
I get the same error when using the OpenAI provider. Mentioning in case it might make sense to have e.g. a Trait shared between the modules. I haven't dug into the code for this yet.