bobbai00 opened a new issue, #9588:
URL: https://github.com/apache/texera/issues/9588

   ### Task Summary
   
   Two defaults make agent requests cost more than needed. #9576 covers the 
whole problem; this task changes only these two.
   
   | Default today | Effect | Proposed |
   | --- | --- | --- |
   | No prompt caching for Claude models | Claude caches only prompts that 
carry cache marks. Nothing sets them, so every call is billed in full. | 
LiteLLM adds the marks |
   | 100 steps (model calls) per message | A looping agent stops only at the 
limit | 25 |
   
   Measured with Claude Haiku 5.5:
   
   - The system prompt and tool definitions (11,746 tokens) are identical in 
every call and never read from the cache. With the marks, input cost over a 
14-message conversation falls 63%.
   - In 60 turns the agent took a median of 3 model calls and at most 13.
   
   ### Task Type
   
   - [x] DevOps / Deployment / CI
   - [x] Performance
   


-- 
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]

Reply via email to