• Resolved myonlyeye

    (@myonlyeye)


    Hi! I _love_ your AI-plugin. It is the best so far, and I really appreciate the Chat-widget. It is possible to add a stream function, so we can see OpenAI stream the answer instead of waiting for it to finish?

    Odin

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @myonlyeye,

    I think you might be more interested in the way ChatGPT types its replies (typewriter-style), than actually using the streaming option of OpenAI ??

    The real streaming option is actually going through line by line. There are multiple issues with this. Right now, the requests are made by the PHP-side, by WordPress, not by the JS client directly (otherwise, everybody could see your API key). So we would need to implement streaming on both end, which is tricky (of course, everything is possible).

    Also, you should know that this streaming is made line by line. Not character by character ?? In the case of HTML, it will return half-baked HTML which will end-up in broken HTML.

    So my question is, do you just like the typewriting effect that ChatGPT does, or you really actually want streaming?

    Thread Starter myonlyeye

    (@myonlyeye)

    ??

    It is of course the typewriter-style I am thinking about – the one used in ChatGPT and OpenAI’s Playground.

    And again – your plugin is just the plugin I was looking for to integrate OpenAI’s services and WordPress. I needed more than the “ordinary” tools that produce text for articles and titles, and the chat tool is something that I am going to use extensively. And it will get even better if you integrate a quota function, that was mentioned in the forum.

    I also enjoy the new image tool and really appreciate the integrated playground.

    Is it possible to insert a chat playground, like the one in the admin console, into WordPress posts?

    (And I’ll buy this plugin when it is possible to buy it! ??

    Odin

    Plugin Author Jordy Meow

    (@tigroumeow)

    It is of course the typewriter-style I am thinking about – the one used in ChatGPT and OpenAI’s Playground.

    I checked a bit, but it’s going to be quite complicated to do. If the reply uses only text, it’s very easy! But I prefer to handle formatted replies so that we can have properly displayed code, lists, paragraphs, headers, etc. And we can’t typewrite HTML.

    Of course, there are solutions, but I’ll need to switch to React, as it will be too complex in vanilla JS. Later, depending on the needs and all, I will work on a more powerful client in React. But right now, the client is very very light and does it well, so let’s see what’s best.

    And it will get even better if you integrate a quota function, that was mentioned in the forum.

    Yes, I am absolutely going to add this ??

    Is it possible to insert a chat playground, like the one in the admin console, into WordPress posts?

    You can do it already, check the documentation, you can add the shortcode anywhere you like. I thought we were talking about that one.

    Thread Starter myonlyeye

    (@myonlyeye)

    I’ll wait for the day of the typewriter ??

    I know about the [mwai_chat] short code, but I would like to make it look like the playground:

    The important part is the look of the center chat window, with a fixed size on the page. Is this possible with the existing short code?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Oh, yes, definitely, you can do whatever you like with the current chatbot ?? You don’t know how to apply CSS to your WordPress? Can you share a screenshot of your website with the current chatbot, and explain a bit more how you would like to change it?

    I think it would be better if you open a new thread “How to style the chatbot?” – so that we can discuss that (the current title doesn’t match, and other potentially interested users might miss the discussion)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stream the answer from OpenAI’ is closed to new replies.