We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7d3622 commit 50b99d4Copy full SHA for 50b99d4
worker/src/agent/index.ts
@@ -161,13 +161,12 @@ Users will primarily request software engineering assistance including bug fixes
161
const items = [...initialItems, ...appendedItems];
162
const { totalTokenCount, messages } = await noOpFiltering(items);
163
secondCachePoint = messages.length - 1;
164
- [firstCachePoint, secondCachePoint].forEach((cp) => {
+ [...new Set([firstCachePoint, secondCachePoint])].forEach((cp) => {
165
const message = messages[cp];
166
if (message?.content) {
167
message.content = [...message.content, { cachePoint: { type: 'default' } }];
168
}
169
});
170
- console.log(JSON.stringify(messages));
171
firstCachePoint = secondCachePoint;
172
173
const res = await pRetry(
0 commit comments