[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).
