This functionality has been replaced by the client.beta.messages.count_tokens() API which supports newer models and all content functionality, such as images and PDFs.
All help in providing PRs to close out bug issues is appreciated. Even if that is providing a repo that fully replicates issues. We have very generous contributors that have added these to bug issues which meant another contributor picked up the bug and closed it out.
6.0.2
Ensure body is consumed only once (#846) - thanks @sathieu
Bugfix with to Tornado cassette generator (thanks @graingert)
6.0.0
BREAKING: Fix issue with httpx support (thanks @parkerhancock) in #784. NOTE: You may have to recreate some of your cassettes produced in previous releases due to the binary format being saved incorrectly in previous releases
BREAKING: Drop support for boto (vcrpy still supports boto3, but is dropping the deprecated boto support in this release. (thanks @jairhenrique)
Fix compatibility issue with Python 3.12 (thanks @hartwork)
Drop simplejson (fixes some compatibility issues) (thanks @jairhenrique)
Run CI on Python 3.12 and PyPy 3.9-3.10 (thanks @mgorny)
Various linting and docs improvements (thanks @jairhenrique)
Drop iscoroutinefunction fallback function for unsupported python thanks @jairhenrique
5.0.0
BREAKING CHANGE: Drop support for Python 3.7. 3.7 is EOL as of 6/27/23 Thanks @jairhenrique
BREAKING CHANGE: Custom Cassette persisters no longer catch ValueError. If you have implemented a custom persister (has anyone implemented a custom persister? Let us know!) then you will need to throw a CassetteNotFoundError when unable to find a cassette. See #681 for discussion and reason for this change. Thanks @amosjyng for the PR and the review from @hartwork
4.4.0
HUGE thanks to @hartwork for all the work done on this release!
Bring vcr/unittest in to vcrpy as a full feature of vcr instead of a separate library. Big thanks to @hartwork for doing this and to @agriffis for originally creating the library
Make decompression robust towards already decompressed input (thanks @hartwork)
Bugfix: Add read1 method (fixes compatibility with biopython), thanks @mghantous
Bugfix: Prevent filters from corrupting request (thanks @abramclark)
Bugfix: Add support for response.raw.stream() to fix urllib v2 compat
Bugfix: Replace assert with raise AssertionError: fixes support for PYTHONOPTIMIZE=1
Add pytest.mark.online to run test suite offline, thanks @jspricke
#12446: Avoid calling @property (and other instance descriptors) during fixture discovery -- by asottile{.interpreted-text role="user"}
#12659: Fixed the issue of not displaying assertion failure differences when using the parameter --import-mode=importlib in pytest>=8.1.
#12667: Fixed a regression where type change in [ExceptionInfo.errisinstance]{.title-ref} caused [mypy]{.title-ref} to fail.
#12744: Fixed typing compatibility with Python 3.9 or less -- replaced [typing.Self]{.title-ref} with [typing_extensions.Self]{.title-ref} -- by Avasam{.interpreted-text role="user"}
#12745: Fixed an issue with backslashes being incorrectly converted in nodeid paths on Windows, ensuring consistent path handling across environments.
#6682: Fixed bug where the verbosity levels where not being respected when printing the "msg" part of failed assertion (as in assert condition, msg).
#9422: Fix bug where disabling the terminal plugin via -p no:terminal would cause crashes related to missing the verbose option.
-- by GTowers1{.interpreted-text role="user"}
Improved documentation
#12663: Clarify that the [pytest_deselected]{.title-ref} hook should be called from [pytest_collection_modifyitems]{.title-ref} hook implementations when items are deselected.
#12678: Remove erroneous quotes from [tmp_path_retention_policy]{.title-ref} example in docs.
Miscellaneous internal changes
#12769: Fix typos discovered by codespell and add codespell to pre-commit hooks.
8.3.2
pytest 8.3.2 (2024-07-24)
Bug fixes
#12652: Resolve regression [conda]{.title-ref} environments where no longer being automatically detected.
-- by RonnyPfannschmidt{.interpreted-text role="user"}
8.3.1
pytest 8.3.1 (2024-07-20)
The 8.3.0 release failed to include the change notes and docs for the release. This patch release remedies this. There are no other changes.
... (truncated)
Commits
d0f136f build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (#12790)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the gha group with 5 updates in the /packages/opentelemetry-instrumentation-bedrock directory:
0.31.2
0.39.0
7.0.0
7.1.1
1.34.145
1.35.60
6.0.1
6.0.2
8.2.2
8.3.3
Updates
anthropic
from 0.31.2 to 0.39.0Release notes
Sourced from anthropic's releases.
... (truncated)
Changelog
Sourced from anthropic's changelog.
... (truncated)
Commits
a3c59fc
release: 0.39.05cf4ea4
feat(api): add new haiku model (#731)a60869a
feat(project): drop support for Python 3.7 (#729)6b47b16
docs(readme): mention new token counting endpoint (#728)3407630
refactor(client)!: remove legacyclient.count_tokens()
method (#726)7ca6923
fix: support json safe serialization for basemodel subclasses (#727)00bb996
fix: don't use dicts as iterables in transform (#724)c15648a
fix(types): add missing token-counting-2024-11-01 (#722)14afc93
release: 0.38.0328191a
fix(types): add missing token-counting-2024-11-01Updates
flake8
from 7.0.0 to 7.1.1Commits
cf1542c
Release 7.1.1939ea3d
Merge pull request #1949 from stephenfin/issue-1948bdcd5c2
Handle escaped braces in f-strings2a811cc
Merge pull request #1946 from Viicos/patch-110314ad
Fix wording of plugins documentation65a38c4
Release 7.1.034c97e0
Merge pull request #1939 from PyCQA/new-pycodestyledefd315
latest pycodestyle408d4d6
Merge pull request #1930 from mzagol/patch-1866ad72
Add --extend-exclude to the TOCUpdates
boto3
from 1.34.145 to 1.35.60Commits
0e08511
Merge branch 'release-1.35.60'3909fe4
Bumping version to 1.35.6075620b0
Add changelog entries from botocore68202ef
Merge branch 'release-1.35.59'91e8dc4
Merge branch 'release-1.35.59' into develop21bd96e
Bumping version to 1.35.59e7182d2
Add changelog entries from botocore0f2fa14
Merge branch 'release-1.35.58' into develop0ecc751
Merge branch 'release-1.35.58'7a9111b
Bumping version to 1.35.58Updates
vcrpy
from 6.0.1 to 6.0.2Release notes
Sourced from vcrpy's releases.
Changelog
Sourced from vcrpy's changelog.
... (truncated)
Commits
1d100dd
release v6.0.2c6be705
Merge pull request #871 from kevin1024/precommit-autoupdate10b7f4e
pre-commit: Autoupdate7a6ef00
Merge pull request #870 from kevin1024/dependabot/github_actions/peter-evans/...3bf6ac7
Merge pull request #867 from kevin1024/precommit-autoupdate983b220
pre-commit: Autoupdate15a6b71
build(deps): bump peter-evans/create-pull-request from 6 to 71ca708d
Merge pull request #862 from kevin1024/test-on-313f5597fa
use pytest_httbin.certs.where() for cafile2b3247b
remove redundant load_cert_chainUpdates
pytest
from 8.2.2 to 8.3.3Release notes
Sourced from pytest's releases.
... (truncated)
Commits
d0f136f
build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (#12790)972f307
Prepare release version 8.3.30dabdcf
Include co-authors in release announcement (#12795) (#12797)a9910a4
Do not discover properties when iterating fixtures (#12781) (#12788)0f10b6b
Fix issue with slashes being turned into backslashes on Windows (#12760) (#12...300d13d
Merge pull request #12785 from pytest-dev/patchback/backports/8.3.x/57cccf7f4...e5d32c7
Merge pull request #12784 from svenevs/fix/docs-example-parametrize-minor-typobc913d1
Streamline checks for verbose option (#12706) (#12778)01cfcc9
Fix typos and introduce codespell pre-commit hook (#12769) (#12774)4873394
doc: Remove past training (#12772) (#12773)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show