fix: 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:
1 parent
e3bcfa792c
commit
74c1ef8dab
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);
|
||||
|
||||
Reference in new issue
Block a user