File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " kilo-code " : patch
3+ ---
4+
5+ Fix duplicate tool use in Anthropic
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { filterNonAnthropicBlocks } from "../transform/anthropic-filter"
2020import { BaseProvider } from "./base-provider"
2121import type { SingleCompletionHandler , ApiHandlerCreateMessageMetadata } from "../index"
2222import { calculateApiCostAnthropic } from "../../shared/cost"
23- import { convertOpenAIToolsToAnthropic , ToolCallAccumulatorAnthropic } from "./kilocode/nativeToolCallHelpers"
23+ import { convertOpenAIToolsToAnthropic } from "./kilocode/nativeToolCallHelpers"
2424
2525export class AnthropicHandler extends BaseProvider implements SingleCompletionHandler {
2626 private options : ApiHandlerOptions
@@ -204,12 +204,9 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
204204 let thinkingDeltaAccumulator = ""
205205 let thinkText = ""
206206 let thinkSignature = ""
207- const toolCallAccumulator = new ToolCallAccumulatorAnthropic ( )
208207 // kilocode_change end
209208
210209 for await ( const chunk of stream ) {
211- yield * toolCallAccumulator . processChunk ( chunk ) // kilocode_change
212-
213210 switch ( chunk . type ) {
214211 case "message_start" : {
215212 // Tells us cache reads/writes/input/output.
You can’t perform that action at this time.
0 commit comments