Skip to content

Commit

Permalink
Merge pull request #765 from buerokratt/278-get-rid-of-extraneous-text
Browse files Browse the repository at this point in the history
728 Get rid of doc references and extraneous spaces in the end of sentences
  • Loading branch information
RayDNoper authored Jul 2, 2024
2 parents 00c03d7 + 8c1cdd5 commit 6ff6e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DSL/Ruuter.public/DSL/POST/internal/external-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ assign_value:
assign:
correct_value:
- recipient_id: ${incoming.body.sender}
text: ${test.response.body.choices[0].message.content.replace(/\n/g," ").replace(/%/g," protsenti")}
text: ${test.response.body.choices[0].message.content.replace(/\n/g," ").replace(/%/g," protsenti").replace(/\[doc\d+\]\w+/g, "").replace(" \. ", ". ")}
next: return_value

return_value:
Expand Down

0 comments on commit 6ff6e8a

Please sign in to comment.