Releases: st1vms/unofficial-claude-api
v0.3.3
CHANGELOG
- Dropped Brotli decoding.
- Now
get_session_data
always retrieves the latest organization, theorganization_index
parameter was introduced to override the index of the organization to fetch from the array returned in https://claude.ai/api/organizations (Defaults to -1)
v0.3.2
v0.3.1
CHANGELOG
Project renamed from unofficial-claude2-api
to unofficial-claude-api
CHANGES FOR DEVS
-
Please rename your package reference in your
requirements.txt
to the appropriate repository name. -
(Optional) Rename package imports from
claude2_api
toclaude_api
, a backward compatibility import forclaude2_api
was left if you still want to use the old name.
v0.3.0
v0.2.9
CHANGELOG
SOCKS proxies implemented (see #16)
Import SOCKSProxy
out of claude2_api.client
module and construct it using these fields:
proxy_ip
proxy_port
version_num
which can be either 4 or 5 (defaults to 4).
If you'd like to use HTTPProxy
instead, import it as usual, and set the same fields for ip and port and also the use_ssl
field.
Both of these classes inherit from ClaudeProxy
, and they can be assigned to the ClaudeAPIClient
constructor.
v0.2.8
v0.2.7
CHANGELOG:
- Changed
send_message
response parsing strategy error_response
is now calledraw_answer
, and it holds theresponse.content
from thesend_message
response, used for inspections purposes.- Implemented a new Claude error
OverloadError
MISCELLANOUS IMPROVEMENTS
- All the api errors now inherits from
ClaudeAPIError
- Moved errors into
claude2_api.errors
- Replaced
requests.Session
withrequests.post
in__prepare_file_attachment
, as the headers were incorrectly set. - Clarified the error "[400] Unable to prepare file attachment" in the Troubleshotting section of
README.md
v0.2.6
v0.2.5
v0.2.4
CHANGELOG
Added organization_id
parameter in SessionData
, if omitted or None it will be retrieved as usual during ClaudeAPIClient
instantiation.
claude2_api.session.get_session_data()
now automatically retrieves the organization_uuid to insert into the SessionData class.
(This should allow for permanently fixing the permission error when instantiating ClaudeAPIClient
, i.e. error retrieving organization id)