Make sure it generates valid JSON

This commit is contained in:
Jorge Manrubia
2025-06-25 12:54:44 +02:00
parent b54ab90c09
commit ccfcba8aa4
16 changed files with 9243 additions and 12 deletions
+7 -1
View File
@@ -145,7 +145,13 @@ class Command::Ai::Translator
Omit empty arrays or unnecessary properties. At least one property (`context` or `commands`) must exist.
Never include JSON outside of "context" or "commands".
Never include JSON outside of "context" or "commands". E.g: this is not allowed:
{ "terms" => "some keywords" }
It should be:
{ "context" => { "terms" => "some keywords" } }
## Other Strict Instructions: