Explosion-Scratch/claude-unofficial-api

message.completion returns ''

Closed this issue · 4 comments

Hello,

Since this morning every time I try to use the sendMessage method, regardless of the actual message sent, message.completion returns an empty string ''. While logging onto claude.ai, I can see that Claude responded to the prompt just fine with text.

const { Claude } = await import("claude-ai");
  const claude = new Claude({
    sessionKey: [my-session-key],
  });

  await claude.init();

 const conversation = await claude.startConversation(`[my initial conversion here]`)
 const message = await conversation.sendMessage(`[my message here]`)
console.log(message.completion)

And message.completion:

image

Is there an issue with the package?

I am also dealing with this issue today.

Same for me

The reason. #41