Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messages not being received #49

Closed
zuoFeng59556 opened this issue Aug 15, 2023 · 5 comments
Closed

messages not being received #49

zuoFeng59556 opened this issue Aug 15, 2023 · 5 comments

Comments

@zuoFeng59556
Copy link

Why am I not receiving replies from Claude when I send messages? Also, when using stream responses, some words are missing.
image
image

@Explosion-Scratch
Copy link
Owner

Make sure to update to the latest version, then completion should be the full message. Claude changed their API so I implemented a code change (see 91426c6 for more)

@callmearta
Copy link
Contributor

callmearta commented Aug 15, 2023

Hey I just installed the latest version and still have this problem @Explosion-Scratch

@callmearta
Copy link
Contributor

Fixed it by changing if(parsed.stop_reason === 'stop_sequence') to if(parsed.stop_reason === 'stop_sequence' || parsed.stop_reason === null) in index.js

@obaltian
Copy link

@callmearta didn't help with Claude-cli :(
It doesn't even execute this line, hangs somewhere before

@Explosion-Scratch
Copy link
Owner

Fixed it by changing if(parsed.stop_reason === 'stop_sequence') to if(parsed.stop_reason === 'stop_sequence' || parsed.stop_reason === null) in index.js

This means that it will stop instantly though, after the first chunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants