We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c115f5f commit a54675fCopy full SHA for a54675f
lib/messages/inject.ts
@@ -141,8 +141,9 @@ export const insertPruneToolContext = (
141
const providerID = userInfo.model.providerID
142
const isGitHubCopilot =
143
providerID === "github-copilot" || providerID === "github-copilot-enterprise"
144
+ const isAnthropic = providerID === "anthropic" || providerID === "google-vertex-anthropic"
145
- if (isGitHubCopilot) {
146
+ if (isGitHubCopilot || isAnthropic) {
147
const lastMessage = messages[messages.length - 1]
148
if (lastMessage?.info?.role === "user") {
149
return
0 commit comments