AshwinPathi / claude-api-py

Unofficial Python API for Anthropic's Claude LLM
https://pypi.org/project/claude-api-py/
MIT License
108 stars 11 forks source link

Dear author, I find the code seems to be invalid? The request is 500, but I use the browser to access normally, the account is normal, could you help me update #10

Closed winie-hy closed 11 months ago

winie-hy commented 11 months ago

Dear author, I find the code seems to be invalid? The request is 500, but I use the browser to access normally, the account is normal, could you help me update

goodskillprogramer commented 11 months ago

the response from the server is 500. It seems the server changed something .please help to release a new version.

winie-hy commented 11 months ago

I found that the normal conversation can still work, but the upload file conversation is invalid.

winie-hy commented 11 months ago

I am really stupid, the original file encoding problem, did not successfully deal with alsi encoding is empty resulting in failure

AshwinPathi commented 11 months ago

@winie-hy were you able to fix it? Could you be more specific about the issue, like does the example.py script not work?

winie-hy commented 11 months ago

I converted the txt files I uploaded to utf8 format to get the implementation, I think because of the system's sake, ubuntu can not recognize ansi encoding