Seems chatbot not following context with turbo 3.5

[ad_1]

This seems to happen when you use “{SECRET_PROMPT}” it does not understand this and only seems to understand when you place the full prompt in the shortcode.

Hi,

Indeed, it doesn’t work anymore 🙂 I mean, it became a bit more complex with the new model, as the models don’t work exactly the same way. I want to expose simple filters so I have decided to create a new one. Here is the code you can now use:

add_filter( 'mwai_ai_context', function ( $context ) {
  $secret_prompt = "Act as if you were Yoda from Star Wars and always reply using riddles.";
  return str_replace( '{SECRET_PROMPT}', $secret_prompt, $context );
}, 10, 1 );

Much simpler, right? 🙂 Works from version 1.1.6 (coming soon).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer