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

Update claude_api.py #49

Closed Luvata closed 10 months ago

Luvata commented 10 months ago

Increase timeout to 5 minutes instead of default 30 seconds in curl_cffi

Luvata commented 10 months ago

Hi, thank you for your amazing repo (I use it alot)!

Since switching to curl_cffi, my requests often timeout after 30 seconds, especially with attachments. This seems to be from the default curl_cffi timeouts. My hot fix is adding , timeout=300 equal 5 minutes to line 122

KoushikNavuluri commented 10 months ago

Let the default timeout be as it is ,It helps for the debugging issues if any occured.