Claude-API icon indicating copy to clipboard operation
Claude-API copied to clipboard

This project provides an unofficial API for Claude AI, allowing users to access and interact with Claude AI .

Results 21 Claude-API issues
Sort by recently updated
recently updated
newest added

getting curl_cffi.requests.errors.RequestsError: Failed to perform, curl: (56) CONNECT tunnel failed, response 403. See https://curl.se/libcurl/c/libcurl-errors.html first for more details

In claude_api.py => send_message(self, prompt, conversation_id, attachment=None, timeout=500): 1. original: payload = json.dumps({ "completion": { "prompt": f"{prompt}", "timezone": "Asia/Kolkata", "model": "claude-3-opus-20240229" }, "organization_uuid": f"{self.organization_id}", "conversation_uuid": f"{conversation_id}", "text": f"{prompt}", "attachments": attachments...

Hi, I always encounter permission error when I try to do anything like list all conversations, or create new conversation. Can anyone help me with this? Thank you! ``` claude_api...

Got an error "We are unable to serve your request" when trying to login to Claude 3 AI through email Pls help me

I checked the model, but it seems they using another payload? Have anybody experienced the same issues with send_message?

response = claude_api.send_message(prompt, conversation_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/claude_api.py", line 129, in send_message data = json.loads(json_str) ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode...

Error response: ```json { "error": { "type": "permission_error", "message": "Invalid model", "code": "model_not_allowed" } } ``` Chrome browser fetch: ```json { "completion": { "prompt": "Hi", "timezone": "Asia/Shanghai", "model": "claude-2.1" #...

Hi, I found that recently Claude has changed their model's name from `claude-2` to `claude-2.0`. The change will result in some errors: ``` json.decoder.JSONDecodeError: Expecting value: line 1 column 1...

Updated model version to 2.1

``` def upload_attachment(self, file_path): # .... response = req.post(url, headers=headers, proxies=self.proxies, files=files) print(response.content) if response.status_code == 200: return response.json() else: return False ``` It seems that because 'curl_cffi' does not...