Ai21

Latest version: v3.1.0

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

Scan your dependencies

Page 4 of 16

2.9.1

([`5ed7f07`](https://github.com/AI21Labs/ai21-python/commit/5ed7f07e677ce60eb960991f3c601869d4e2c68c))

2.9.0

([`f4b4d36`](https://github.com/AI21Labs/ai21-python/commit/f4b4d362b77ab94c970ae623f7f9185b94718181))

Continuous Integration

- Remove explicit permissions from semantic-pr.yml
([167](https://github.com/AI21Labs/ai21-python/pull/167),
[`3674efc`](https://github.com/AI21Labs/ai21-python/commit/3674efc106959f9b5b9b35c6eacc19db413c80cf))

- Update size label When PR size changes (171)
([172](https://github.com/AI21Labs/ai21-python/pull/172),
[`6dd535a`](https://github.com/AI21Labs/ai21-python/commit/6dd535a4da3959ea258a2d316be7c145961b6875))

* ci: Update size label

* test: File to test label

* fix: Remove file

Features

- Added Log Verbosity ([152](https://github.com/AI21Labs/ai21-python/pull/152),
[`57b1ea9`](https://github.com/AI21Labs/ai21-python/commit/57b1ea9aa172fdef7723199fe77ca50a15d6427c))

* fix: Added logger to httpx

* feat: Added set_verbose

* feat: Added set_debug

* fix: api-key header

* fix: Removed unused function

* feat: Logged env variables

* fix: Changed call location

* fix: CR

* fix: Added amazon header to secrets

- Async Support AWS ([180](https://github.com/AI21Labs/ai21-python/pull/180),
[`5248d96`](https://github.com/AI21Labs/ai21-python/commit/5248d96a783b5ffab7cb7c9f6de383a1eba4df11))

* feat: Add bedrock async support (146)

* refactor: migrate from boto3 to custom http client

* refactor: create an aws http client, and switch bedrock client to use it

* test: rename test, add async tests

* feat: add async client, remove bedrock_session class

* docs: Azure README (139)

* feat: Add async tokenizer, add detokenize method (144)

* feat: add detokenize method, add async tokenizer

* chore: update pyproject and poetry.lock

* fix: fix tokenizer name in examples and readme, add example

* test: adjust unittest + add unittest for async

* chore: cache -> lru_cache to support python 3.8

* test: fix test_imports test

* chore: add env_config to bedrock client to avoid breaking changes

* refactor: export aws auth logic to new class

* refactor: remove aws_http_client, use http_client instead, add aws auth test

* test: fix tests

* refactor: remove aws_http_client

* chore(deps-dev): bump authlib from 1.3.0 to 1.3.1 (131)

Bumps [authlib](https://github.com/lepture/authlib) from 1.3.0 to 1.3.1. - [Release
notes](https://github.com/lepture/authlib/releases) -
[Changelog](https://github.com/lepture/authlib/blob/master/docs/changelog.rst) -
[Commits](https://github.com/lepture/authlib/compare/v1.3.0...v1.3.1)

--- updated-dependencies: - dependency-name: authlib dependency-type: indirect

...

Signed-off-by: dependabot[bot] <supportgithub.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]users.noreply.github.com>

Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafgusers.noreply.github.com>

* chore(deps): bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 (138)

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.14 to
1.9.0. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) -
[Commits](https://github.com/pypa/gh-action-pypi-publish/compare/81e9d935c883d0b210363ab89cf05f3894778450...ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0)

--- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type:
direct:production

update-type: version-update:semver-minor

* chore: rebase code

* refactor: chat + chat completions - migrate to new client

* refactor: cr comments

* chore: add async to new bedrock components

* refactor: rename aws folder

* chore: fix typo on file name bedrock_chat_completions

* fix: fix errors

* chore: fix typo

* fix: Added deprecation warning

* fix: Added deprecation warning to async

* chore: add log for ignoring stream

---------

* Add sagemaker async support (155)

* refactor: sagemaker client, boto->aws http client

* chore: refactor to use http client

* chore: add async to sm resources

* test: fix imports test

* chore: fix lint

* refactor: export get_aws_region, add async sm to readme, add async examples

* test: add async test files to test_sagemaker.py

* refactor: remove get_aws_region func

* feat: Use the same http client for all Clients (163)

* fix: Merge

* feat: AI21Client to inherit from AI21HTTPClient

* feat: Used RequestOptions class

* fix: api error

* fix: Rename update to replace

* fix: Tests

* test: Added bedrock tests

* fix: Added support for model and model_id for backwards compatibility

* fix: Deprecation warning message

* fix: Added ANY to dict

* fix: Removed redundant code

* fix: base_url

* fix: Moved 'model' extract

* test: Added a tests to validate model_id and model cant be together

* fix: Test

* fix: Bedrock integration tests

Co-authored-by: miri-bar <160584887+miri-barusers.noreply.github.com>

2.8.0

([`c5087cf`](https://github.com/AI21Labs/ai21-python/commit/c5087cf6f20accdeba57d7630e1cd780de36e435))

Continuous Integration

- Update pull request action ([151](https://github.com/AI21Labs/ai21-python/pull/151),
[`bf535c6`](https://github.com/AI21Labs/ai21-python/commit/bf535c64a71a17d257dadbdfbe7ef5c384b1268a))

Documentation

- Fix message pass ([150](https://github.com/AI21Labs/ai21-python/pull/150),
[`8f41631`](https://github.com/AI21Labs/ai21-python/commit/8f41631025021f19b665c0b4836a664438957549))

- Update README.md ([149](https://github.com/AI21Labs/ai21-python/pull/149),
[`09798b1`](https://github.com/AI21Labs/ai21-python/commit/09798b1e730098d0f3d43695a39d416a75f5a17d))

minor fix

Co-authored-by: Asaf Joseph Gardin <39553475+Josephasafgusers.noreply.github.com>

Features

- Adding Jamaba-Instruct-V1(chat_completions) to AWS Bedrock
([153](https://github.com/AI21Labs/ai21-python/pull/153),
[`7fae5c6`](https://github.com/AI21Labs/ai21-python/commit/7fae5c6dd097ee491ed3a37c6c0b1b2e6f21502a))

* feat: adding Jamaba-Instruct-V1(chat_completions) to AWS Bedrock

* feat: adding integration tests to bedrock chat completions + update README.md

* fix: Semantics

* fix: README order of bullets

* docs: Updated README.md

* docs: Added -U

* fix: Handle error message

---------

Co-authored-by: Josephasafg <ajgard7gmail.com>

2.7.0

([`054459e`](https://github.com/AI21Labs/ai21-python/commit/054459e1289efb1a82a81a37038c7ca32279f5ed))

Continuous Integration

- Added parter labels ([147](https://github.com/AI21Labs/ai21-python/pull/147),
[`737d98f`](https://github.com/AI21Labs/ai21-python/commit/737d98f0b28d6e335b747dbae44fc68929cf39d6))

- Auto Label ([142](https://github.com/AI21Labs/ai21-python/pull/142),
[`b59407c`](https://github.com/AI21Labs/ai21-python/commit/b59407cb44e0f13ddc85cb07e721126df5acccfb))

* ci: Auto lgtm

* fix: script

* fix: consts

* ci: Auto labeler action

* fix: on

* fix: Added more triggers

* fix: feat trigger

* ci: size labels

* fix: More tests

* docs: remove to add

* docs: Updated labeler

* fix: Added default

* fix: Removed line

* fix: labeler

* fix: prints

* fix: Script

* fix: scri[pt

* ci: Added prints

* ci: More prints

* ci: Added echo 0

* ci: Fixed condition

* fix: condition

* fix: Removed unused lines

* fix: Removed more prints

* ci: Lgtm

Documentation

- Azure README ([139](https://github.com/AI21Labs/ai21-python/pull/139),
[`5b0eadb`](https://github.com/AI21Labs/ai21-python/commit/5b0eadbe88702e2ca28de608191d9a17b8c0b4b0))

Features

- Add async tokenizer, add detokenize method
([144](https://github.com/AI21Labs/ai21-python/pull/144),
[`f2d06fc`](https://github.com/AI21Labs/ai21-python/commit/f2d06fc7d2bc155beeaec72c0481f9a239656c07))

* feat: add detokenize method, add async tokenizer

* chore: update pyproject and poetry.lock

* fix: fix tokenizer name in examples and readme, add example

2.6.0

([`3a6de49`](https://github.com/AI21Labs/ai21-python/commit/3a6de495aa88dc98577b8b27fff94cb88d7662ba))

Features

- Azure Client Support ([135](https://github.com/AI21Labs/ai21-python/pull/135),
[`6115632`](https://github.com/AI21Labs/ai21-python/commit/611563279999168703e49dbbf288190ee0ae262d))

2.5.2

([`3eae31e`](https://github.com/AI21Labs/ai21-python/commit/3eae31e1f82cec6bcf208d1ed614daa0fd6ddad1))

Page 4 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.