Skip to content

Commit ff67a1e

Browse files
authored
fix: remove echoing json input (#28)
1 parent 7191525 commit ff67a1e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/adapters/anthropic/adapter.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,7 @@ ${JSON.stringify(structuredOutput.originalJsonSchema, null, 2)}
317317
assert(thinkingPart.type === "output_reasoning");
318318
signatureMap.set(thinkingPart.content, delta.signature);
319319
} else if (delta.type === "input_json_delta") {
320-
if (!parts[part.index]) {
321-
parts[part.index] = { type: "output_text", content: "" };
322-
}
323320
parts[part.index].content += delta.partial_json;
324-
yield {
325-
type: "delta_output_text",
326-
delta: delta.partial_json,
327-
index: part.index,
328-
};
329321
}
330322
} else if (part.type === "content_block_start") {
331323
if (part.content_block.type === "tool_use") {

0 commit comments

Comments
 (0)