Mason Daugherty
91e825b92c
Merge branch 'wip-v0.4' into cc/0.4/docs
2025-08-11 15:11:33 -04:00
Mason Daugherty
281488a5cf
Merge branch 'master' into wip-v0.4
2025-08-11 15:10:42 -04:00
Mason Daugherty
ee4c2510eb
feat: port various nit changes from wip-v0.4 ( #32506 )
...
Lots of work that wasn't directly related to core
improvements/messages/testing functionality
2025-08-11 15:09:08 -04:00
Mason Daugherty
8d2ba88ef0
Merge branch 'master' into wip-v0.4
2025-08-11 13:45:21 -04:00
Mason Daugherty
e5d0a4e4d6
feat(standard-tests): formatting ( #32504 )
...
Not touching `pyproject.toml` or chat model related items as to not
interfere with work in wip0.4 branch
2025-08-11 13:30:30 -04:00
Mason Daugherty
457ce9c4b0
feat(text-splitters): ruff fixes and rules ( #32502 )
2025-08-11 13:28:22 -04:00
Mason Daugherty
27b6b53f20
feat(xai): ruff fixes and rules ( #32501 )
2025-08-11 13:03:07 -04:00
Christophe Bornet
f55186b38f
fix(core): fix beta decorator for properties ( #32497 )
2025-08-11 12:43:53 -04:00
Mason Daugherty
374f414c91
feat(qdrant): ruff fixes and rules ( #32500 )
2025-08-11 12:43:41 -04:00
ccurme
45a067509f
fix(core): fix tracing for PDFs in v1 messages ( #32434 )
2025-08-11 12:18:32 -04:00
Mason Daugherty
23c3fa65d4
feat(docs): enhance ResponseMetadata documentation with provider field usage notes ( #32472 )
2025-08-11 09:16:16 -04:00
Mason Daugherty
5cfb7ce57b
docs(ollama): update Ollama integration documentation for new chat model ( #32475 )
2025-08-11 09:13:54 -04:00
ccurme
9259eea846
fix(docs): use pepy for integration package download badges ( #32491 )
...
pypi stats has been down for some time.
2025-08-10 18:41:36 -04:00
ccurme
afcb097ef5
fix(docs): DigitalOcean Gradient: link to correct provider page and update page title ( #32490 )
2025-08-10 17:29:44 -04:00
Mason Daugherty
13d67cf37e
fix(ollama): reasoning should come before text content ( #32476 )
2025-08-08 19:34:36 -04:00
Mason Daugherty
7f989d3c3b
feat(docs): clarify ToolMessage contentfield usage
2025-08-08 13:02:59 -04:00
Mason Daugherty
b7968c2b7d
feat(docs): add link to artifact usage in ToolMessage
2025-08-08 12:51:15 -04:00
ccurme
088095b663
release(openai): release 0.3.29 ( #32463 )
2025-08-08 11:04:33 -04:00
Mason Daugherty
2f0c6421a1
Merge branch 'master' into wip-v0.4
2025-08-08 10:21:44 -04:00
Mason Daugherty
c31236264e
chore: formatting across codebase ( #32466 )
2025-08-08 10:20:10 -04:00
Chester Curme
cfe13f673a
Merge branch 'master' into wip-v0.4
...
# Conflicts:
# libs/core/langchain_core/version.py
# libs/core/pyproject.toml
# libs/core/uv.lock
# libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py
# libs/partners/openai/uv.lock
2025-08-08 09:04:57 -04:00
ccurme
02001212b0
fix(openai): revert some changes ( #32462 )
...
Keep coverage on `output_version="v0"` (increasing coverage is being
managed in v0.4 branch).
2025-08-08 08:51:18 -04:00
Mason Daugherty
00244122bd
feat(openai): minimal and verbosity ( #32455 )
2025-08-08 02:24:21 +00:00
Mason Daugherty
5599c59d4a
chore: formatting across codebase ( #32456 )
...
To prevent polluting future PRs
2025-08-07 22:09:26 -04:00
ccurme
6727d6e8c8
release(core): 0.3.74 ( #32454 )
2025-08-07 16:39:01 -04:00
Michael Matloka
5036bd7adb
fix(openai): don't crash get_num_tokens_from_messages on gpt-5 ( #32451 )
2025-08-07 16:33:19 -04:00
ccurme
ec2b34a02d
feat(openai): custom tools ( #32449 )
2025-08-07 16:30:01 -04:00
Mason Daugherty
11d68a0b9e
bump locks
2025-08-07 15:51:36 -04:00
Mason Daugherty
cbf4c0e565
Merge branch 'master' into wip-v0.4
2025-08-07 15:33:12 -04:00
Mason Daugherty
145d38f7dd
test(openai): add tests for prompt_cache_key parameter and update docs ( #32363 )
...
Introduce tests to validate the behavior and inclusion of the
`prompt_cache_key` parameter in request payloads for the `ChatOpenAI`
model.
2025-08-07 15:29:47 -04:00
ccurme
68c70da33e
fix(openai): add in output_text ( #32450 )
...
This property was deleted in `openai==1.99.2`.
2025-08-07 15:23:56 -04:00
Eugene Yurtsev
754528d23f
feat(langchain): add stuff and map reduce chains ( #32333 )
...
* Add stuff and map reduce chains
* We'll need to rename and add unit tests to the chains prior to
official release
2025-08-07 15:20:05 -04:00
Mason Daugherty
dc66737f03
fix: docs and formatting ( #32448 )
2025-08-07 15:17:25 -04:00
Christophe Bornet
499dc35cfb
chore(core): bump mypy version to 1.17 ( #32390 )
...
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-08-07 13:26:29 -04:00
Mason Daugherty
42c1159991
feat: add TextAccessor, deprecate .text() as method ( #32441 )
...
Adds backward compat for `.text()` on messages while keeping `.text`
access
_The kicker:_
Any previous use of `.text()` will now need a `# type: ignore[operator]`
to silence type checkers. However, it will still behave as expected at
runtime. Deprecating in v0.4.0, to be removed in v2.0.0.
2025-08-07 12:16:31 -04:00
Christophe Bornet
a647073b26
feat(standard-tests): add a property to set the name of the parameter for the number of results to return ( #32443 )
...
Not all retrievers use `k` as param name to set the number of results to
return. Even in LangChain itself. Eg:
bc4251b9e0/libs/core/langchain_core/indexing/in_memory.py (L31)
So it's helpful to be able to change it for a given retriever.
The change also adds hints to disable the tests if the retriever doesn't
support setting the param in the constructor or in the invoke method
(for instance, the `InMemoryDocumentIndex` in the link supports in the
constructor but not in the invoke method).
This change is backward compatible.
---------
Co-authored-by: Mason Daugherty <mason@langchain.dev >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-07 11:22:24 -04:00
ccurme
06d8754b0b
release(core): 0.3.73 ( #32446 )
2025-08-07 09:03:53 -04:00
ccurme
6e108c1cb4
feat(core): zero-out token costs for cache hits ( #32437 )
2025-08-07 08:49:34 -04:00
Mason Daugherty
c1b86cc929
feat: minor core work, v1 standard tests & (most of) v1 ollama ( #32315 )
...
Resolves #32215
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-08-06 18:22:02 -04:00
Mason Daugherty
376f70be96
sync wip with master ( #32436 )
...
Co-authored-by: Kanav Bansal <13186335+bansalkanav@users.noreply.github.com >
Co-authored-by: Pranav Bhartiya <124018094+pranauww@users.noreply.github.com >
Co-authored-by: Nelson Sproul <nelson.sproul@gmail.com >
Co-authored-by: John Bledsoe <jmbledsoe@gmail.com >
2025-08-06 17:57:05 -04:00
John Bledsoe
bc4251b9e0
fix(core): fix index checking when merging lists ( #32431 )
...
**Description:** fix an issue I discovered when attempting to merge
messages in which one message has an `index` key in its content
dictionary and another does not.
2025-08-06 12:47:33 -04:00
ccurme
ac2de920b1
chore: increment versions for 0.4 branch ( #32419 )
2025-08-05 15:39:37 -04:00
ccurme
e02eed5489
feat: standard outputs ( #32287 )
...
Co-authored-by: Mason Daugherty <mason@langchain.dev >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Mason Daugherty <github@mdrxy.com >
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-08-05 15:17:32 -04:00
Mason Daugherty
ba83f58141
release(groq): 0.3.7 ( #32417 )
2025-08-05 15:13:08 -04:00
Mason Daugherty
fb490b0c39
feat(groq): losen restrictions on reasoning_effort, inject effort in meta, update tests ( #32415 )
2025-08-05 15:03:38 -04:00
Mason Daugherty
419c173225
feat(groq): openai-oss ( #32411 )
...
use new openai-oss for integration tests, set module-level testing model
names and improve robustness of tool tests
2025-08-05 14:18:56 -04:00
Narasimha Badrinath
dd9f5d7cde
feat(docs): add langchain-gradientai as provider ( #32202 )
...
langchain-gradientai is Digitalocean's integration with Langchain. It
will help users to build langchain applications using Digitalocean's
GradientAI platform.
---------
Co-authored-by: Mason Daugherty <github@mdrxy.com >
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-08-04 14:57:59 +00:00
ccurme
a9e52ca605
chore(openai): bump openai sdk ( #32322 )
2025-07-30 10:58:18 -04:00
Mason Daugherty
fbd5a238d8
fix(core): revert "fix: tool call streaming bug with inconsistent indices from Qwen3" ( #32307 )
...
Reverts langchain-ai/langchain#32160
Original issue stems from using `ChatOpenAI` to interact with a `qwen`
model. Recommended to use
[langchain-qwq](https://python.langchain.com/docs/integrations/chat/qwq/ )
which is built for Qwen
2025-07-29 10:26:38 -04:00
Mason Daugherty
0e287763cd
fix: lint
2025-07-28 18:49:43 -04:00