diff --git a/.changeset/stupid-pears-help.md b/.changeset/stupid-pears-help.md new file mode 100644 index 0000000..08f7a5d --- /dev/null +++ b/.changeset/stupid-pears-help.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Hotfix diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 218c0e8..0970e04 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -807,7 +807,9 @@ export class Cline { } } - const stream = this.api.createMessage(systemPrompt, this.apiConversationHistory) + // Convert to Anthropic.MessageParam by spreading only the API-required properties + const cleanConversationHistory = this.apiConversationHistory.map(({ role, content }) => ({ role, content })) + const stream = this.api.createMessage(systemPrompt, cleanConversationHistory) const iterator = stream[Symbol.asyncIterator]() try {