Remove erroneous "DSL: " prefix in ai prompt stream

This causes parse errors since we extended the dsl syntax to support named
params in the form of "name: arg".
This commit is contained in:
John Colvin committed 2024-11-26 18:53:32 +00:00
1 parent 410680cadf
commit 9d86c85686
1 file changed
+4
@@ -103,6 +103,10 @@ namespace bts.SilverPine {
Tuple.Create("id", TypeCode.Int32),
Tuple.Create("prompt", TypeCode.String),
Tuple.Create("response", TypeCode.String));
const string DSL_PREFIX = "DSL: ";
if (response.StartsWith(DSL_PREFIX)) {
response = response.Remove(0, DSL_PREFIX.Length);
}
IBlueRow nr = new BlueRow(schema, 0, _prompt, response);
BlueTable nt = new BlueTable(schema);
nt.addRow(nr);