Skip to content

Releases: st1vms/unofficial-claude-api

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)

v0.2.3

07 Dec 12:48
Compare
Choose a tag to compare

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