added possibility to send any blocks as context

This commit is contained in:
Nikita 2024-12-12 10:36:33 +03:00
parent 207b97c6cc
commit 1e37194365
7 changed files with 50 additions and 39 deletions

View file

@ -202,6 +202,7 @@ class Mind_Rest extends WP_REST_Controller {
[
'Rules:',
$context ? '- The context for the user request placed under "Context".' : '',
$context ? '- Context usually contains the current blocks JSON, use it to improve by the user request. Try to keep essential information, links and images.' : '',
'- Respond to the user request placed under "Request".',
'- See the "Response Format Rules" section for block output rules.',
'- Avoid offensive or sensitive content.',