Skip to content

Releases: AI21Labs/ai21-python

v2.4.0

28 May 12:38

Choose a tag to compare

v2.4.0 (2024-05-28)

Feature

Fix

  • fix: Update library_search_response.py (#122)

feat: adding new field: order to library-search api response

Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafg@users.noreply.github.com> (c8b57a8)

v2.3.1

22 May 18:06

Choose a tag to compare

v2.3.1 (2024-05-22)

Chore

  • chore(deps): bump idna from 3.6 to 3.7 (#96)

Bumps idna from 3.6 to 3.7.


updated-dependencies:

  • dependency-name: idna
    dependency-type: indirect
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafg@users.noreply.github.com> (7c52f19)

Documentation

  • docs: Table of contents in readme (#119)

  • docs: Updated docs with table of contents

  • fix: docs

  • fix: more docs stuff

  • fix: emoji

  • fix: cloud emoji (aca280e)

Fix

v2.3.0

20 May 11:35

Choose a tag to compare

v2.3.0 (2024-05-20)

Chore

  • chore(deps): bump python-semantic-release/python-semantic-release (#115)

Bumps python-semantic-release/python-semantic-release from 9.3.1 to 9.7.3.


updated-dependencies:

  • dependency-name: python-semantic-release/python-semantic-release
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafg@users.noreply.github.com> (2ff5912)

  • chore(deps): bump amannn/action-semantic-pull-request (#103)

Bumps amannn/action-semantic-pull-request from 5.4.0 to 5.5.2.


updated-dependencies:

  • dependency-name: amannn/action-semantic-pull-request
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafg@users.noreply.github.com> (5dd95ac)

Feature

  • feat: Jamba Stream Support (#117)

  • feat: Add httpx support (#111)

  • feat: Added httpx to pyproject

  • feat: httpx instead of requests

  • feat: Removed requests

  • fix: not given

  • fix: setup

  • feat: Added tenacity for retry

  • fix: conftest

  • test: Added tests

  • fix: Rename

  • fix: Modified test

  • fix: CR

  • fix: request

  • feat: Stream support jamba (#114)

  • feat: Added httpx to pyproject

  • feat: httpx instead of requests

  • feat: Removed requests

  • fix: not given

  • fix: setup

  • feat: Added tenacity for retry

  • fix: conftest

  • test: Added tests

  • fix: Rename

  • fix: Modified test

  • feat: stream support (unfinished)

  • feat: Added tenacity for retry

  • test: Added tests

  • fix: Rename

  • feat: stream support (unfinished)

  • fix: single request creation

  • feat: Support stream_cls

  • fix: passed response_cls

  • fix: Removed unnecessary json_to_response

  • fix: imports

  • fix: tests

  • fix: imports

  • fix: reponse parse

  • fix: Added two examples to tests

  • fix: sagemaker tests

  • test: Added stream tests

  • fix: comment out failing test

  • fix: CR

  • fix: Removed code

  • docs: Added readme for streaming

  • fix: condition

  • docs: readme

  • test: Added integration test for streaming

  • fix: Added enter and close to stream

  • fix: Uncomment chat completions test

  • feat: Add httpx support (#111)

  • feat: Added httpx to pyproject

  • feat: httpx instead of requests

  • feat: Removed requests

  • fix: not given

  • fix: setup

  • feat: Added tenacity for retry

  • fix: conftest

  • test: Added tests

  • fix: Rename

  • fix: Modified test

  • fix: CR

  • fix: request

  • feat: Stream support jamba (#114)

  • feat: Added httpx to pyproject

  • feat: httpx instead of requests

  • feat: Removed requests

  • fix: not given

  • fix: setup

  • feat: Added tenacity for retry

  • fix: conftest

  • test: Added tests

  • fix: Rename

  • fix: Modified test

  • feat: stream support (unfinished)

  • feat: Added tenacity for retry

  • test: Added tests

  • fix: Rename

  • feat: stream support (unfinished)

  • fix: single request creation

  • feat: Support stream_cls

  • fix: passed response_cls

  • fix: Removed unnecessary json_to_response

  • fix: imports

  • fix: tests

  • fix: imports

  • fix: reponse parse

  • fix: Added two examples to tests

  • fix: sagemaker tests

  • test: Added stream tests

  • fix: comment out failing test

  • fix: CR

  • fix: Removed code

  • docs: Added readme for streaming

  • fix: condition

  • docs: readme

  • test: Added integration test for streaming

  • fix: Added enter and close to stream

  • fix: Uncomment chat completions test

  • fix: poetry.lock

  • fix: poetry.lock

  • fix: Uncomment test case

  • fix: Removed unused json_to_response (ae0d12b)

Fix

v2.2.5

14 May 18:41

Choose a tag to compare

v2.2.5 (2024-05-14)

Fix

  • fix: upgrade ai21-tokenizer to latest version with less restrictive deps (#113)

  • fix: upgrade ai21-tokenizer with latest version which has less restrictive deps

  • fix: upgrade deps in general (022d60c)

v2.2.4

09 May 10:36

Choose a tag to compare

v2.2.4 (2024-05-09)

Fix

  • fix: pass kwargs to endpoints (#110)

  • feat: pass kwargs to endpoints

  • fix: test when passing kwargs (0d895e4)

v2.2.3

25 Apr 14:02

Choose a tag to compare

v2.2.3 (2024-04-25)

Fix

  • fix: Support num_retries (#104)

  • fix: num_retries method

  • fix: Added 408 for retries (94c3254)

v2.2.2

24 Apr 07:44

Choose a tag to compare

v2.2.2 (2024-04-24)

Fix

  • fix: Added raise error on wrong use of chat message (#102) (4efbea6)

v2.2.1

22 Apr 08:34

Choose a tag to compare

v2.2.1 (2024-04-22)

Chore

Fix

  • fix: Add support for n param to chat completion in studio (#98)

  • fix: add n param support

  • test: add integration test

  • revert: wrong file

  • fix: add n param support, add integration test (5459323)

v2.2.0

10 Apr 15:50

Choose a tag to compare

v2.2.0 (2024-04-10)

Feature

v2.2.0-rc.2

10 Apr 13:39

Choose a tag to compare

v2.2.0-rc.2 Pre-release
Pre-release

v2.2.0-rc.2 (2024-04-10)

Chore

  • chore(release): v2.2.0-rc.1 [skip ci] (8be7ddb)

  • chore(release): v2.1.3 [skip ci] (94a9ca6)

  • chore(release): v2.2.0-rc.1 [skip ci] (7916e41)

  • chore(release): v2.2.0-rc.1 [skip ci] (ce35924)

  • chore(release): v2.1.3 [skip ci] (e5ef7c1)

  • chore(deps-dev): bump black from 22.12.0 to 24.3.0 (#80)

  • chore(deps-dev): bump black from 22.12.0 to 24.3.0

Bumps black from 22.12.0 to 24.3.0.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:development
    ...

Signed-off-by: dependabot[bot] <support@github.com>

  • refactor: lint fixes

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asaf Gardin <147075902+asafgardin@users.noreply.github.com>
Co-authored-by: Asaf Gardin <asafg@ai21.com> (6681b4c)

  • chore(deps): bump python-semantic-release/python-semantic-release (#85)

Bumps python-semantic-release/python-semantic-release from 9.3.0 to 9.3.1.


updated-dependencies:

  • dependency-name: python-semantic-release/python-semantic-release
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (107d2a9)

Documentation

Feature

  • feat: Jamba tokenizer support (#86)

  • feat: support get_tokenizer by tokenizer name

  • fix: Added deprecation warning to count_tokens in ai21 client

  • bump: ai21-tokenizer to 0.9.0

  • test: Added tests for new tokenizer

  • fix: model name in tests

  • fix: test model name for chat

  • fix: Added kwargs

  • fix: type

  • fix: doc

  • docs: Count Tokens README

  • fix: tokenizer example


Co-authored-by: asafg <asafg@ai21.com> (f902e25)

  • feat: Jamba tokenizer support (#86)

  • feat: support get_tokenizer by tokenizer name

  • fix: Added deprecation warning to count_tokens in ai21 client

  • bump: ai21-tokenizer to 0.9.0

  • test: Added tests for new tokenizer

  • fix: model name in tests

  • fix: test model name for chat

  • fix: Added kwargs

  • fix: type

  • fix: doc

  • docs: Count Tokens README

  • fix: tokenizer example


Co-authored-by: asafg <asafg@ai21.com> (7f63697)

  • feat: support chat completion in studio SDK (89ad7d0)

  • feat: Jamba tokenizer support (#86)

  • feat: support get_tokenizer by tokenizer name

  • fix: Added deprecation warning to count_tokens in ai21 client

  • bump: ai21-tokenizer to 0.9.0

  • test: Added tests for new tokenizer

  • fix: model name in tests

  • fix: test model name for chat

  • fix: Added kwargs

  • fix: type

  • fix: doc

  • docs: Count Tokens README

  • fix: tokenizer example


Co-authored-by: asafg <asafg@ai21.com> (6a7c56a)

  • feat: Jamba tokenizer support (#86)

  • feat: support get_tokenizer by tokenizer name

  • fix: Added deprecation warning to count_tokens in ai21 client

  • bump: ai21-tokenizer to 0.9.0

  • test: Added tests for new tokenizer

  • fix: model name in tests

  • fix: test model name for chat

  • fix: Added kwargs

  • fix: type

  • fix: doc

  • docs: Count Tokens README

  • fix: tokenizer example


Co-authored-by: asafg <asafg@ai21.com> (d1d89d1)

Fix

  • fix: enable integration test (f9a9f1a)

  • fix: import from exported package in test (f694e5b)

  • fix: revert completion message to dataclass (#94)

  • fix: revert completion message to dataclass (432ab6f)

  • fix: Remove params from chat completions (#92) (97490f6)

  • fix: Chat completions migration readme (#90)

  • docs: Updated README

  • refactor: ChatMessage typed dict

  • refactor: role to be literal

  • fix: Removed Literal

  • fix: model ame

  • fix: tests

  • fix: typing

  • fix: module_name

  • fix: test (ba6d31a)

  • fix: all import (f951393)

  • fix: circualr imports (30f4dce)

  • fix: alias (ac9e265)

  • fix: model name (946009d)

  • fix: CR (9c69bba)

  • fix: CR (de06908)

  • fix: Added deprecation warning (e47446d)

  • fix: imports (ca1a975)

  • fix: Added all (1604e1b)

  • fix: Chat completions migration readme (#90)

  • docs: Updated README

  • refactor: ChatMessage typed dict

  • refactor: role to be literal

  • fix: Removed Literal

  • fix: model ame

  • fix: tests

  • fix: typing

  • fix: module_name

  • fix: test (25cf1fc)

  • fix: Fix readme gaps (#87)

  • docs: Added contextual answers examples and shared a link to our examples folder

  • fix: Fixed main link in our readme

  • docs: Examples section (bd72c4c)

Refactor

  • refactor: imports and file structure (8168820)

  • refactor: Moved chat message to different packages (0ed63ae)

Test

Unknown

  • bump: rc.2 (c413e97)

  • Merge remote-tracking branch 'origin/rc_sdk_alignments' into rc_sdk_alignments (080101d)

  • revert: ruff (eccc9fc)