Fixed :py:class:aiohttp.TCPConnector doing blocking I/O in the event loop to create the SSLContext -- by :user:bdraco.
The blocking I/O would only happen once per verify mode. However, it could cause the event loop to block for a long time if the SSLContext creation is slow, which is more likely during startup when the disk cache is not yet present.
Improved performance of :py:meth:~aiohttp.ClientWebSocketResponse.receive and :py:meth:~aiohttp.web.WebSocketResponse.receive when there is no timeout. -- by :user:bdraco.
The timeout context manager is now avoided when there is no timeout as it accounted for up to 50% of the time spent in the :py:meth:~aiohttp.ClientWebSocketResponse.receive and :py:meth:~aiohttp.web.WebSocketResponse.receive methods.
Improved performance of HTTP keep-alive checks -- by :user:bdraco.
Previously, when processing a request for a keep-alive connection, the keep-alive check would happen every second; the check is now rescheduled if it fires too early instead.
Fixed multipart reading when stream buffer splits the boundary over several read() calls -- by :user:Dreamsorcerer.
Related issues and pull requests on GitHub:
:issue:8653.
Fixed :py:class:aiohttp.TCPConnector doing blocking I/O in the event loop to create the SSLContext -- by :user:bdraco.
The blocking I/O would only happen once per verify mode. However, it could cause the event loop to block for a long time if the SSLContext creation is slow, which is more likely during startup when the disk cache is not yet present.
Related issues and pull requests on GitHub:
:issue:8672.
Miscellaneous internal changes
Improved performance of :py:meth:~aiohttp.ClientWebSocketResponse.receive and :py:meth:~aiohttp.web.WebSocketResponse.receive when there is no timeout. -- by :user:bdraco.
The timeout context manager is now avoided when there is no timeout as it accounted for up to 50% of the time spent in the :py:meth:~aiohttp.ClientWebSocketResponse.receive and :py:meth:~aiohttp.web.WebSocketResponse.receive methods.
Related issues and pull requests on GitHub:
:issue:8660.
Improved performance of starting request handlers with Python 3.12+ -- by :user:bdraco.
Related issues and pull requests on GitHub:
:issue:8661.
Improved performance of HTTP keep-alive checks -- by :user:bdraco.
Previously, when processing a request for a keep-alive connection, the keep-alive check would happen every second; the check is now rescheduled if it fires too early instead.
langchain: bump core to 0.2.32 (#25421)
langchain: bump min core version (#25418)
langchain: release 0.2.14 (#25416)
docs: udpated api reference (#25172)
core[minor]: Prevent PydanticOutputParser from encoding schema as ASCII (#25386)
multiple: update removal targets (#25361)
langchain-community==0.2.12
Changes since langchain-community==0.2.11
community: release 0.2.12 (#25324)
community: kwargs for CassandraGraphVectorStore (#25300)
core[patch]: add standard tracing params for retrievers (#25240)
[Community] - Added bind_tools and with_structured_output for ChatZhipuAI (#23887)
docs: Fix ChatBaichuan, QianfanChatEndpoint, ChatSparkLLM, ChatZhipuAI docs (#25265)
Improvement[Embeddings] Add dimension support to ZhipuAIEmbeddings (#25274)
core[patch]: Deprecating beta upsert APIs in vectorstore (#25069)
community[patch],core[patch]: Update EdenaiTool root_validator and add unit test in core (#25233)
community[patch]: Remove more @allow_reuse=True validators (#25236)
community[patch]: Remove usage of @root_validator(allow_reuse=True) (#25235)
community[patch]: FAISS: ValueError mentions normalize_score_fn isntead of relevance_score_fn (#25225)
community: Add llm-extraction option to FireCrawl Document Loader (#25231)
docs: update integration api refs (#25195)
community[patch]: Use get_fields adapter for pydantic (#25191)
community[minor]: [SharePointLoader] Load extended metadata for the root folder (#24872)
community[patch]: Upgrade pydantic extra (#25185)
Update polygon.py for business subscription (#25085)
community[patch]: gpt-4o-2024-08-06 costs (#25164)
docs: Standardize QianfanLLMEndpoint LLM (#25139)
community: Fix ValidationError on creating GPT4AllEmbeddings with no gpt4all_kwargs (#25124)
community: Add stock market tools from financialdatasets.ai (#25025)
Added bedrock 3-5 sonnet cost detials for BedrockAnthropicTokenUsageCallbackHandler (#25104)
[docs]: vector store integration pages (#24858)
docs: Standardize Tongyi (#25103)
delete the default model value from langchain and discard the need fo… (#24915)
Allow ConfluenceLoader authorization via Personal Access Tokens (#25096)
community: fix neo4j from_existing_graph (#24912)
community: make AthenaLoader profile_name optional and fix type hint (#24958)
community: fix issue of the existence of numeric object in additional_kwargs a… (#24863)
community[patch]: Optimize test case for MoonshotChat (#25050)
community: Fix Predibase Integration for HuggingFace-hosted fine-tuned adapters (#25015)
docs: Standardize MiniMaxEmbeddings (#24983)
docs: Standardize SparkLLMTextEmbeddings docstrings (#25021)
docs: fix kwargs docstring (#25010)
docs: standardizing tavily tool docs (#24736)
community: release 0.2.12 (#25324)
community: kwargs for CassandraGraphVectorStore (#25300)
core[patch]: add standard tracing params for retrievers (#25240)
[Community] - Added bind_tools and with_structured_output for ChatZhipuAI (#23887)
docs: Fix ChatBaichuan, QianfanChatEndpoint, ChatSparkLLM, ChatZhipuAI docs (#25265)
Improvement[Embeddings] Add dimension support to ZhipuAIEmbeddings (#25274)
core[patch]: Deprecating beta upsert APIs in vectorstore (#25069)
community[patch],core[patch]: Update EdenaiTool root_validator and add unit test in core (#25233)
community[patch]: Remove more @allow_reuse=True validators (#25236)
community[patch]: Remove usage of @root_validator(allow_reuse=True) (#25235)
community[patch]: FAISS: ValueError mentions normalize_score_fn isntead of relevance_score_fn (#25225)
community: Add llm-extraction option to FireCrawl Document Loader (#25231)
docs: update integration api refs (#25195)
community[patch]: Use get_fields adapter for pydantic (#25191)
community[minor]: [SharePointLoader] Load extended metadata for the root folder (#24872)
community[patch]: Upgrade pydantic extra (#25185)
Update polygon.py for business subscription (#25085)
community[patch]: gpt-4o-2024-08-06 costs (#25164)
docs: Standardize QianfanLLMEndpoint LLM (#25139)
community: Fix ValidationError on creating GPT4AllEmbeddings with no gpt4all_kwargs (#25124)
community: Add stock market tools from financialdatasets.ai (#25025)
Added bedrock 3-5 sonnet cost detials for BedrockAnthropicTokenUsageCallbackHandler (#25104)
[docs]: vector store integration pages (#24858)
docs: Standardize Tongyi (#25103)
delete the default model value from langchain and discard the need fo… (#24915)
Allow ConfluenceLoader authorization via Personal Access Tokens (#25096)
community: fix neo4j from_existing_graph (#24912)
community: make AthenaLoader profile_name optional and fix type hint (#24958)
community: fix issue of the existence of numeric object in additional_kwargs a… (#24863)
community[patch]: Optimize test case for MoonshotChat (#25050)
community: Fix Predibase Integration for HuggingFace-hosted fine-tuned adapters (#25015)
docs: Standardize MiniMaxEmbeddings (#24983)
docs: Standardize SparkLLMTextEmbeddings docstrings (#25021)
docs: fix kwargs docstring (#25010)
docs: standardizing tavily tool docs (#24736)
langchain-community==0.2.11
Changes since langchain-community==0.2.10
community[patch]: Release 0.2.11 (#24989)
community[patch]: support named arguments in github toolkit (#24986)
community[patch]: Add test case for MoonshotChat (#24960)
community[patch]: adding artifact to Tavily search (#24376)
docs: Standardize ZhipuAIEmbeddings docstrings (#24933)
community[patch]: Invoke on_llm_new_token callback before yielding chunk (#24938)
community[patch]: support bind_tools for ChatMlflow (#24547)
community: Fix KeyError in NotionDB loader when 'name' is missing (#24224)
core[patch]: Release 0.2.31 (#25388)
core: fix issue#24660, slove error messages about ValueError when use model with history (#25183)
docs: udpated api reference (#25172)
core[minor]: Prevent PydanticOutputParser from encoding schema as ASCII (#25386)
multiple: update removal targets (#25361)
langchain-core==0.2.30
Changes since langchain-core==0.2.29
core: release 0.2.30 (#25321)
core[patch]: Update API reference for fake embeddings (#25313)
core[patch]: add standard tracing params for retrievers (#25240)
docs: update numbering of items in docstring (#25267)
core[patch]: Deprecating beta upsert APIs in vectorstore (#25069)
community[patch],core[patch]: Update EdenaiTool root_validator and add unit test in core (#25233)
core[patch]: use time.monotonic() instead time.time() in InMemoryRateLimiter
core[patch]: fix deprecation pydantic bug (#25204)
core[minor]: Add factory for looking up secrets from the env (#25198)
core: autodetect more ls params (#25044)
core[minor]: Add from_env utility (#25189)
core[patch]: Add pydantic get_fields adapter (#25187)
core[patch]: Fix aindex API (#25155)
core[patch]: Add unit tests for Serializable (#25152)
core[patch]: support Field deprecation (#25004)
core[patch]: check for model_fields attribute (#25108)
langchain-core==0.2.29
Changes since langchain-core==0.2.28
core[patch]: Release 0.2.29 (#25126)
core[patch]: base language model disable_streaming (#25070)
core[patch]: Relax rate limit unit tests in terms of timing (#25140)
core[patch]: Sort Config attributes (#25127)
core[patch]: Release 0.2.29rc1 (#25115)
core[patch], openai[patch]: enable strict tool calling (#25111)
core[minor]: Add support for DocumentIndex in the index api (#25100)
Set Context in RunnableSequence & RunnableParallel (#25073)
docs: runnable docstring space (#25106)
core[patch]: Include dependencies in sys_info (#25076)
docs: update numbering of items in method docs (#25093)
core[patch]: Remove default BaseModel init docstring (#25009)
openai[patch]: Release 0.1.21 (#25269)
partners: fix of issue #24880 (#25229)
infra: temp skip oai embeddings test (#25148)
openai[patch]: Release 0.1.21rc2 (#25146)
openai[patch]: ChatOpenAI.with_structured_output json_schema support (#25123)
openai[patch]: Release 0.1.21rc1 (#25116)
core[patch], openai[patch]: enable strict tool calling (#25111)
patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)
langchain-openai==0.1.21rc2
Changes since langchain-openai==0.1.20
openai[patch]: Release 0.1.21rc2 (#25146)
openai[patch]: ChatOpenAI.with_structured_output json_schema support (#25123)
openai[patch]: Release 0.1.21rc1 (#25116)
core[patch], openai[patch]: enable strict tool calling (#25111)
patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)
langchain-openai==0.1.21rc1
Changes since langchain-openai==0.1.20
openai[patch]: Release 0.1.21rc1 (#25116)
core[patch], openai[patch]: enable strict tool calling (#25111)
patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)
langchain-openai==0.1.20
Changes since langchain-openai==0.1.19
integrations[patch]: release model packages (#24900)
core[patch], integrations[patch]: convert TypedDict to tool schema support (#24641)
openai[patch]: openai proxy added to base embeddings (#24539)
langchain-openai==0.1.19
Changes since langchain-openai==0.1.17
integration releases (#24725)
openai[small]: Add the new model: gpt-4o-mini (#24594)
openai[patch]: move test (#24552)
standard-tests: add override check (#24407)
all: add release notes to pypi (#24519)
core,groq,openai,mistralai,robocorp,fireworks,anthropic[patch]: Update BaseModel subclass and instance checks to handle both v1 and proper namespaces (#24417)
openai: release 0.1.18 (#24369)
openai[patch]: use model_name in AzureOpenAI.ls_model_name (#24366)
NumPy 2.0.1 is a maintenance release that fixes bugs and regressions
discovered after the 2.0.0 release. NumPy 2.0.1 is the last planned
release in the 2.0.x series, 2.1.0rc1 should be out shortly.
The Python versions supported by this release are 3.9-3.12.
NOTE: Do not use the GitHub generated "Source code" files listed in the "Assets", they are garbage.
Improvements
np.quantile with method closest_observation chooses nearest even order statistic
This changes the definition of nearest for border cases from the nearest
odd order statistic to nearest even order statistic. The numpy
implementation now matches other reference implementations.
Bumps the python-requirements group with 16 updates in the / directory:
3.10.2
3.10.3
23.2.0
24.2.0
0.2.10
0.2.14
0.2.9
0.2.12
0.2.22
0.2.32
0.1.17
0.1.21
0.1.93
0.1.99
1.26.4
2.0.1
1.36.1
1.40.7
3.10.6
3.10.7
2.20.1
2.22.0
6.0.1
6.0.2
2024.5.15
2024.7.24
2.0.31
2.0.32
8.5.0
9.0.0
4.66.4
4.66.5
Updates
aiohttp
from 3.10.2 to 3.10.3Release notes
Sourced from aiohttp's releases.
... (truncated)
Changelog
Sourced from aiohttp's changelog.
... (truncated)
Commits
ef20502
Release 3.10.3 (#8675)73d17d4
[PR #8676/2915102 backport][3.10] Fix type ignore in SSLContext creation conn...f3fcba4
[PR #8672/c3219bf backport][3.10] Fix TCPConnector doing blocking I/O in the ...f96182a
[PR #8662/be23d16f backport][3.10] Improve performance of keepalive reschedul...dbcdb16
[PR #8667/406cd2c7 backport][3.10] Improve performance of generating random W...b4ad882
[PR #8661/4d604ea backport][3.10] Improve performance of starting request han...3a9de0c
[PR #8660/14d5295 backport][3.10] Improve performance of WebSockets when ther...1bc8d53
[PR #8657/6c6ecfaf backport][3.10] Fix multipart reading with split boundary ...Updates
attrs
from 23.2.0 to 24.2.0Commits
Updates
langchain
from 0.2.10 to 0.2.14Release notes
Sourced from langchain's releases.
... (truncated)
Commits
bd26145
langchain: bump core to 0.2.32 (#25421)ec8ffc8
core[patch]: Release 0.2.32 (#25420)2494cec
core[patch]: tool import fix (#25419)df632b8
langchain: bump min core version (#25418)1050e89
langchain: release 0.2.14 (#25416)c4779f5
[docs]: sitemaploader update (#25363)0a99935
docs: remove the extra period in docstring (#25414)63aba3f
[docs]: link fix directory loader (#25411)dc80be5
docs: fix deprecated functions table (#25409)ab29ee7
docs: fix tool index (#25404)Updates
langchain-community
from 0.2.9 to 0.2.12Release notes
Sourced from langchain-community's releases.
... (truncated)
Commits
2907ab2
community: release 0.2.12 (#25324)06f8bd9
langchain: release 0.2.13 (#25323)252f087
core: release 0.2.30 (#25321)217a915
openai: Update API Reference docs for AzureOpenAI Embeddings (#25312)056c7c2
core[patch]: Update API reference for fake embeddings (#25313)1adc161
community: kwargs for CassandraGraphVectorStore (#25300)deb27d8
docs: remove unused imports in Conversational RAG tutorial (#25297)5efd0fe
docs: Change SqliteSaver to MemorySaver (#25306)1c9917d
fireworks[patch]: Fix doc-string for API Referenmce (#25304)ccff1ba
ai21[patch]: Update API reference documentation (#25302)Updates
langchain-core
from 0.2.22 to 0.2.32Release notes
Sourced from langchain-core's releases.
... (truncated)
Commits
ec8ffc8
core[patch]: Release 0.2.32 (#25420)2494cec
core[patch]: tool import fix (#25419)df632b8
langchain: bump min core version (#25418)1050e89
langchain: release 0.2.14 (#25416)c4779f5
[docs]: sitemaploader update (#25363)0a99935
docs: remove the extra period in docstring (#25414)63aba3f
[docs]: link fix directory loader (#25411)dc80be5
docs: fix deprecated functions table (#25409)ab29ee7
docs: fix tool index (#25404)1d3f723
fix: typo where github should be gitlab (#25397)Updates
langchain-openai
from 0.1.17 to 0.1.21Release notes
Sourced from langchain-openai's releases.
Commits
fd54619
openai[patch]: Release 0.1.21 (#25269)6dd9f05
core[patch]: Deprecating beta upsert APIs in vectorstore (#25069)ca9dcee
standard-tests[patch]: test ToolMessage.status="error" (#25210)dadb6f1
cli[patch]: Update integration template for embedding models (#25248)b6f0174
community[patch],core[patch]: Update EdenaiTool root_validator and add unit t...c3ced4c
core[patch]: use time.monotonic() instead time.time() in InMemoryRateLimiterbd6c316
community[patch]: Remove more@allow
_reuse=True validators (#25236)6e57aa7
community[patch]: Remove usage of@root
_validator(allow_reuse=True) (#25235)a2b4c33
community[patch]: FAISS: ValueError mentions normalize_score_fn isntead of re...4825dc0
langchain[patch]: add deprecations (#24792)Updates
langsmith
from 0.1.93 to 0.1.99Release notes
Sourced from langsmith's releases.
Commits
d722293
chore: bump version (#917)77904d2
chore: bump version73aa21e
fix: pushing new manifest without metadata update (#907)41bf6a4
Merge branch 'main' of github.com:langchain-ai/langsmith-sdk into maddy/patch...0b26e82
merge50d3d92
Accept EvaluationResults with dict (#915)6e09e09
prettier281043d
test248bb56
change negation to anyce0c8f4
just falseUpdates
numpy
from 1.26.4 to 2.0.1Release notes
Sourced from numpy's releases.
... (truncated)
Commits
4c9f431
Merge pull request #27000 from charris/prepare-2.0.10e70e00
REL: Prepare for the NumPy 2.0.1 release [wheel build]4d10ffc
Merge pull request #26995 from charris/backport-26985764b667
BUG: Add object cast to avoid warning with limited API9be6ad6
Merge pull request #26971 from charris/backport-269356d950e9
BUG: fix f2py tests to work with v2 API89630c0
Merge pull request #26962 from charris/backport-2691988fa840
TST: Apply test suggestion by Nathan for rlstrip fixesa9da01e
BUG,MAINT: Fix utf-8 character stripping memory access6afbbf8
Merge pull request #26963 from charris/backport-26930Updates
openai
from 1.36.1 to 1.40.7Release notes
Sourced from openai's releases.
... (truncated)
Changelog
Sourced from openai's changelog.
... (truncated)
Commits
3bf03f2
release: 1.40.7cd8c3a3
chore(internal): use different 32bit detection method (#1652)c58a0a4
chore(docs): fix typo in example snippet64b8595
fix(cli/migrate): change grit binaries download source (#1649)40f4cdb
release: 1.40.63267735
chore: sync openapi url (#1646)092a8df
chore(examples): minor formatting changes (#1644)ab57d86
chore(internal): update some imports (#1642)f1e1060
chore(tests): fix pydantic v1 tests22bbd4a
release: 1.40.5Updates
orjson
from 3.10.6 to 3.10.7Release notes
Sourced from orjson's releases.
Changelog
Sourced from orjson's changelog.
Commits
5b951e8
3.10.7d18f26c
sse2 stable implbd9dca5
cargo upda... _Description has been truncated_