Problem/Motivation
The summary provided to the LLM by the search trims trailing "t" characters.
For example, a line which ends like: "the final word is last"
Comes out like: "the final word is las"
Proposed resolution
See "web/modules/contrib/ai_search_block/src/AiSearchBlockHelper.php:195"
`$newline = trim($line, '\t');` should be `$newline = trim($line, "\t");`
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3549169-double-quotes.patch | 531 bytes | d0t15t |
Issue fork ai_search_block-3549169
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
d0t15t commentedI've added a patch.
Comment #6
lammensj commented