Unofficial-claude2-api

Latest version: v0.3.0

Safety actively analyzes 687767 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.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)

0.2.3

CHANGELOG

- BUGFIXES:
- Fixed 403 error by using `curl_cffi` with `impersonate=chrome110` parameter.
- Cookies are now used consistently across requests.
- Fixed json payload length by setting `indent=0, separators=(",", ":")` in `json.dumps()`.

- PLATFORM UPDATE FIXES:
- Updated headers to reflect Claude's platform changes/updates. ( Model was updated to claude-2.1)
- File attachment size limit was decreased to `10MB` for each file.
- Implemented response decoding for `(gzip, deflate, br)`.

- MISCELLANOUS CHANGES:
- Added `timeout` parameter to `ClaudeAPIClient` for setting requests timeout globally.
- `SendMessageResponse.error_response` is now a `str` instead of a `dict` object.
- Clarified the usage of `ClaudeAPIClient.get_chat_data()` in `README.md`
- Updated README.md to reflect new features.

- HOTFIX 0.2.3
- `session` module now uses `selgym` library for auto session gathering ( fixed Firefox path retrieval on Windows ).

0.1.9

CHANGELOG:

- HTTP/S proxies implemented
- Create `HTTPProxy` instance for `ClaudeAPIClient` constructor.

0.1.7

- Added multiple file attachments, up to 5, 20MB each.
- Added extra validations and error checks for when preparing files.
- Separated client and session modules into their own files.
- Clarified `SessionData` manual usage for faster loading.
- Improved wildcard imports
- Updated `README.md`

HOTFIX

- Fixed UnicodeDecodeError on error_response parsing.

0.1.5

CHANGELOG:

- `send_message` now returns `SendMessageResponse` object, with `answer`, `status_code` and `error_response` fields, used for inspection purposes.

- Better docs.

0.1.4

Send message for all file attachments types with one function only -> `send_message`

Further stability improvements...

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.