KoushikNavuluri / Claude-API

This project provides an unofficial API for Claude AI, allowing users to access and interact with Claude AI .
https://pypi.org/project/claude-api/
MIT License
648 stars 112 forks source link

Is it not working now ? #91

Closed x4080 closed 6 months ago

x4080 commented 6 months ago

I tried with the very basic :

prompt = "Hello, Claude!"
response = claude_api.send_message(prompt, last_conversation_id)
print(response)    

error message :

...
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

This commands works though :

reset = claude_api.reset_all()
if reset:
    print("All conversations reset successfully")
else:
    print("Failed to reset conversations")   

Is there any update that I dont know of ? Thanks

x4080 commented 6 months ago

never mind, the claude_api.py is not in my venv - after changing to claude-2.0 all works