Skip to content

Releases: st1vms/unofficial-claude-api

v0.3.3

21 Aug 15:58
6447d83
Compare
Choose a tag to compare

CHANGELOG

  • Dropped Brotli decoding.
  • Now get_session_data always retrieves the latest organization, the organization_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

04 Apr 21:45
422581d
Compare
Choose a tag to compare

CHANGELOG

Issue #21 :

  • Removed model_name parameter check, allowing to choose any model in ClaudeAPIClient constructor.

  • Fixed file upload and attachments, now it's possible to send images to Claude 3.

  • Updated README.md with the official link for gathering the model_name strings.

v0.3.1

27 Mar 15:05
de88d8e
Compare
Choose a tag to compare

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 to claude_api, a backward compatibility import for claude2_api was left if you still want to use the old name.

v0.3.0

07 Mar 12:43
af2c1ba
Compare
Choose a tag to compare

CHANGELOG

  • model_name parameters defaults to None, allowing to choose latest model by default,
    can be overriden using either claude-2.0 or claude-2.1 string.

  • Updated README.md to reflect changes.

v0.2.9

06 Feb 06:58
Compare
Choose a tag to compare

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

04 Feb 20:01
f7ffb84
Compare
Choose a tag to compare

CHANGELOG

  • Updated Claude endpoint for send_message, fixes #14
  • Request payload and response parsing updated accordingly.

v0.2.7

27 Jan 13:38
4660dee
Compare
Choose a tag to compare

CHANGELOG:

  • Changed send_message response parsing strategy
  • error_response is now called raw_answer, and it holds the response.content from the send_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 with requests.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

10 Jan 19:12
b1f9b2d
Compare
Choose a tag to compare

CHANGELOG

  • Added model_name string parameter into ClaudeAPIClient constructor, can be either claude-2.0 or claude-2.1

v0.2.5

06 Jan 11:07
Compare
Choose a tag to compare

CHANGELOG

BUGFIX:

File attachments now works correctly. Replaced curl_cffi with the requests module in __prepare_file_attachment, since the files parameter is not yet implemented.

v0.2.4

18 Dec 11:11
Compare
Choose a tag to compare

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)