Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter samiinkinen

    (@samiinkinen)

    Hey Val!

    A further question related to the WP filters: I started writing a function to save query/reply pair to wpdb, but first I tested:

    add_filter( ‘mwai_ai_reply’, function( $reply, $query ) {
    return $reply;
    } );

    But this always gives the error “Could not parse the buffer”. Why is that, or don’t these filters work when streaming is enabled?

    Thread Starter samiinkinen

    (@samiinkinen)

    Hey Val!

    Thanks for reply! Yes I did notice the WP filters, but I was wondering whether this could also be done in the front-end, as the data that I wanted to use for dynamic prompting is available there. Anyway, the JS ai.reply is very useful, I’m already using it. I may replace the dynamic prompting by using direct fine-tuning to OpenAI API, but I’ll have to investigate it a bit more.

Viewing 2 replies - 1 through 2 (of 2 total)