davsclaus commented on PR #26750: URL: https://github.com/apache/camel/pull/26750#issuecomment-5780973109
One more round from the benchmark, same PR: with the tool in the set the model used it 26 times in a run, and 10 of those answered `not-found`. The traces show why, it composes the snippet from the shape it has in mind rather than copying it from the file, and the indentation is off by a level. Two changes: - the lines are matched with their leading and trailing whitespace removed when that names **exactly one** place, so a snippet with the model's own indentation still lands; an ambiguous match is still refused - a miss now carries the lines the file actually has there, as `nearest`, so the next attempt copies them instead of guessing again Tests added for both; 247 ai tests pass and the prompt budget is unchanged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
