[
https://issues.apache.org/jira/browse/CAMEL-26636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-26636:
-----------------------------------
Assignee: Claus Ibsen
> camel-jbang - TUI: the AI panel cuts the longest catalog answers, whose end
> names what they leave out
> -----------------------------------------------------------------------------------------------------
>
> Key: CAMEL-26636
> URL: https://issues.apache.org/jira/browse/CAMEL-26636
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> The AI panel of the TUI cuts every tool result at 16,000 characters
> (AiPanel.MAX_TOOL_RESULT_CHARS). Since CAMEL-24961 a camel_catalog_doc answer
> can be 18,000 characters, and a long answer names at its end the options and
> headers it leaves out (moreOptions, moreHeaders and the note), which the
> model needs to ask for one of them. The panel cut that end off.
> The panel now uses the longest catalog answer (CatalogDocs.MAX_ANSWER_LENGTH)
> as its limit, so the two stay the same. Found with the local-model benchmark,
> whose harness had the same 16,000 limit: in r27 it cut 53 catalog answers of
> one set, among them an aws2-s3 answer of 17,705 characters that the model
> asked for 21 times.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)