# Default to fast model for thread summaries and titles \+ don't include system prompt / context / thinking segments \(\#29102\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fbf7caf93eb18d817bed6bd405d914590ba409d2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fbf7caf93eb18d817bed6bd405d914590ba409d2

Requested commit: fbf7caf93eb18d817bed6bd405d914590ba409d2

Commit: fbf7caf93eb18d817bed6bd405d914590ba409d2

Tree: 1e79d69e20cb6fa1753e9d794e2a1f54eab6f944

Author: Michael Sloan

Committer: GitHub

## Message

```
Default to fast model for thread summaries and titles + don't include system prompt / context / thinking segments (#29102)

* Adds a fast / cheaper model to providers and defaults thread
summarization to this model. Initial motivation for this was that
https://github.com/zed-industries/zed/pull/29099 would cause these
requests to fail when used with a thinking model. It doesn't seem
correct to use a thinking model for summarization.

* Skips system prompt, context, and thinking segments.

* If tool use is happening, allows 2 tool uses + one more agent response
before summarizing.

Downside of this is that there was potential for some prefix cache reuse
before, especially for title summarization (thread summarization omitted
tool results and so would not share a prefix for those). This seems fine
as these requests should typically be fairly small. Even for full thread
summarization, skipping all tool use / context should greatly reduce the
token use.

Release Notes:

- N/A
```

## Parents

- [d48152d958690e4c6145958d7cfc6e8567f5e4df](https://git.cafe/gitcafe/zed/commit/d48152d958690e4c6145958d7cfc6e8567f5e4df?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fbf7caf93eb18d817bed6bd405d914590ba409d2?format=markdown)
