Expressions: Set additionalProperties to false in JSON schema Some backends use grammar constraints that allow additional properties with the generated JSON schema, resulting in an incoherent and extremely long JSON. Set this to false so the model can generate what we need and nothing else. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>

cc9f095aa71f6b0fe9b63347f925f518018b7dbe

kingbri <8082010+kingbri1@users.noreply.github.com>

1 files changed, +1 -0Showing whitespace changes
public/scripts/extensions/expressions/index.js+1 -0
@@ -978,6 +978,7 @@ function getJsonSchema(emotions) {
978 required: [978 required: [
979 'emotion',979 'emotion',
980 ],980 ],
981 additionalProperties: false,
981 };982 };
982}983}
983984