Mason Daugherty
d13823043d
style: monorepo pass for refs ( #33359 )
...
* Delete some double backticks previously used by Sphinx (not done
everywhere yet)
* Fix some code blocks / dropdowns
Ignoring CLI CI for now
2025-10-08 18:41:39 -04:00
Mason Daugherty
6b9b177b89
chore(openai): base.py ref pass ( #33355 )
2025-10-08 16:08:52 -04:00
Mason Daugherty
cda336295f
chore: enrich pyproject.toml files with links to new references, others ( #33343 )
2025-10-07 16:17:14 -04:00
Mason Daugherty
8bcdfbb24e
chore: clean up pyproject.toml files, use core a7 ( #33334 )
2025-10-07 10:49:04 -04:00
ccurme
aa442bc52f
release(openai): 1.0.0a4 ( #33316 )
2025-10-07 09:25:05 -04:00
ccurme
d0f5a1cc96
fix(standard-tests,openai): minor fix for Responses API tests ( #33315 )
...
Following https://github.com/langchain-ai/langchain/pull/33301
2025-10-06 16:46:41 -04:00
ccurme
de48e102c4
fix(core,openai,anthropic): delegate to core implementation on invoke when streaming=True ( #33308 )
2025-10-06 15:54:55 -04:00
ccurme
95a451ef2c
fix(openai): disable stream_usage in chat completions if OPENAI_BASE_URL is set ( #33298 )
...
This env var is used internally by the OpenAI client.
2025-10-06 10:14:43 -04:00
ccurme
c8636a626a
chore(openai): (v1) fix sort order of mcp call keys ( #33295 )
2025-10-06 09:29:41 -04:00
ccurme
4e50ec4b98
feat(openai): enable stream_usage when using default base URL and client ( #33205 )
2025-10-06 08:56:38 -04:00
Mason Daugherty
90e4d944ac
chore(infra): pdm -> hatchling ( #33289 )
2025-10-05 23:52:52 -04:00
Mason Daugherty
8e7cd85431
style: drop target-version = "py39" for OpenAI, Anthropic, HuggingFace ( #33287 )
2025-10-06 03:29:34 +00:00
ccurme
010ed5d096
fix(anthropic,openai): fix tests ( #33257 )
...
following https://github.com/langchain-ai/langchain/pull/33192
2025-10-03 13:41:37 -04:00
Mason Daugherty
5a016de53f
chore: delete deprecated items ( #33192 )
...
Removed:
- `libs/core/langchain_core/chat_history.py`: `add_user_message` and
`add_ai_message` in favor of `add_messages` and `aadd_messages`
- `libs/core/langchain_core/language_models/base.py`: `predict`,
`predict_messages`, and async versions in favor of `invoke`. removed
`_all_required_field_names` since it was a wrapper on
`get_pydantic_field_names`
- `libs/core/langchain_core/language_models/chat_models.py`:
`callback_manager` param in favor of `callbacks`. `__call__` and
`call_as_llm` method in favor of `invoke`
- `libs/core/langchain_core/language_models/llms.py`: `callback_manager`
param in favor of `callbacks`. `__call__`, `predict`, `apredict`, and
`apredict_messages` methods in favor of `invoke`
- `libs/core/langchain_core/prompts/chat.py`: `from_role_strings` and
`from_strings` in favor of `from_messages`
- `libs/core/langchain_core/prompts/pipeline.py`: removed
`PipelinePromptTemplate`
- `libs/core/langchain_core/prompts/prompt.py`: `input_variables` param
on `from_file` as it wasn't used
- `libs/core/langchain_core/tools/base.py`: `callback_manager` param in
favor of `callbacks`
- `libs/core/langchain_core/tracers/context.py`: `tracing_enabled` in
favor of `tracing_enabled_v2`
- `libs/core/langchain_core/tracers/langchain_v1.py`: entire module
- `libs/core/langchain_core/utils/loading.py`: entire module,
`try_load_from_hub`
- `libs/core/langchain_core/vectorstores/in_memory.py`: `upsert` in
favor of `add_documents`
- `libs/standard-tests/langchain_tests/integration_tests/chat_models.py`
and `libs/standard-tests/langchain_tests/unit_tests/chat_models.py`:
`tool_choice_value` as models should accept `tool_choice="any"`
- `langchain` will consequently no longer expose these items if it was
previously
---------
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
Co-authored-by: Caspar Broekhuizen <caspar@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Sadra Barikbin <sadraqazvin1@yahoo.com >
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-10-03 03:33:24 +00:00
Mason Daugherty
ae5b105d11
docs: v1 docs updates ( #33173 )
...
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
Co-authored-by: Caspar Broekhuizen <caspar@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Sadra Barikbin <sadraqazvin1@yahoo.com >
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-10-02 18:46:26 -04:00
Mason Daugherty
eaa6dcce9e
release: v1.0.0 ( #32567 )
...
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
Co-authored-by: Caspar Broekhuizen <caspar@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Sadra Barikbin <sadraqazvin1@yahoo.com >
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-10-02 10:49:42 -04:00
ccurme
740842485c
fix(openai): bump min core version ( #33188 )
...
Required for new tests added in
https://github.com/langchain-ai/langchain/pull/32541 and
https://github.com/langchain-ai/langchain/pull/33183 .
2025-10-01 11:01:15 -04:00
ccurme
002d623f2d
feat: (core, standard-tests) support PDF inputs in ToolMessages ( #33183 )
2025-10-01 10:16:16 -04:00
ccurme
aac69839a9
release(openai): 0.3.34 ( #33169 )
2025-09-30 16:48:39 -04:00
ccurme
64141072a3
feat(openai): support openai sdk 2.0 ( #33168 )
2025-09-30 16:34:00 -04:00
ccurme
839a18e112
fix(openai): remove __future__.annotations import from test files ( #33144 )
...
Breaks schema conversion in places.
2025-09-29 16:23:32 +00:00
Mason Daugherty
986302322f
docs: more standardization ( #33124 )
2025-09-25 20:46:20 -04:00
Mason Daugherty
5bea28393d
docs: standardize .. code-block directive usage ( #33122 )
...
and fix typos
2025-09-25 16:49:56 -04:00
Mason Daugherty
12daba63ff
test(openai): raise token limit for o1 test ( #33118 )
...
`test_o1[False-False]` was sometimes failing because the OpenAI o1 model
was hitting a token limit with only 100 tokens
2025-09-25 12:57:33 -04:00
Christophe Bornet
eaf8dce7c2
chore: bump ruff version to 0.13 ( #33043 )
...
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-09-25 12:27:39 -04:00
Mason Daugherty
b92b394804
style: repo linting pass ( #33089 )
...
enable docstring-code-format
2025-09-24 15:25:55 -04:00
Mason Daugherty
2e9291cdd7
fix: lift openai version constraints across packages ( #33088 )
...
re: #33038 and https://github.com/openai/openai-python/issues/2644
2025-09-24 15:25:10 -04:00
Mason Daugherty
7ddc798f95
fix(openai): pin upper bound to prevent Pydantic 2.7.0 issues ( #33038 )
...
https://github.com/openai/openai-python/issues/2644
2025-09-21 00:27:03 -04:00
Mason Daugherty
043a7560a5
test: use .get() for safe ls_params access ( #33034 )
2025-09-20 23:46:37 -04:00
Mason Daugherty
781db9d892
chore: update pyproject.toml files, remove codespell ( #33028 )
...
- Removes Codespell from deps, docs, and `Makefile`s
- Python version requirements in all `pyproject.toml` files now use the
`~=` (compatible release) specifier
- All dependency groups and main dependencies now use explicit lower and
upper bounds, reducing potential for breaking changes
2025-09-20 22:09:33 -04:00
Mason Daugherty
9f6431924f
feat(openai): add max_tokens to AzureChatOpenAI ( #32959 )
...
Fixes #32949
This pattern is [present in
`ChatOpenAI`](https://github.com/langchain-ai/langchain/blob/master/libs/partners/openai/langchain_openai/chat_models/base.py#L2821 )
but wasn't carried over to Azure.
[CI](https://github.com/langchain-ai/langchain/actions/runs/17741751797/job/50417180998 )
2025-09-15 14:09:20 -04:00
Matthew Lapointe
b1f08467cd
feat(core): allow overriding ls_model_name from kwargs ( #32541 )
2025-09-11 16:18:06 -04:00
Mason Daugherty
7a158c7f1c
revert: "chore: remove ruff target-version" ( #32895 )
...
Reverts langchain-ai/langchain#32880
Not needed at the moment, will do when finishing v1
2025-09-10 20:56:48 -04:00
Aasish
9c7d262ff4
fix(openai): update AzureOpenAIEmbeddings validation logic for openai_api_base ( #31782 )
2025-09-10 14:53:30 -04:00
ccurme
34ecb92178
release(openai): 0.3.33 ( #32887 )
2025-09-10 11:53:26 -04:00
Christophe Bornet
b274416441
chore: remove ruff target-version ( #32880 )
...
This is not needed anymore since `requires-python` was added when moving
to `uv`.
2025-09-10 11:12:30 -04:00
Mason Daugherty
4c6af2d1b2
fix(openai): structured output ( #32551 )
2025-09-09 11:37:50 -04:00
Sadiq Khan
228fbac3a6
fix(openai): handle AIMessages without response_id in _get_last_messages ( #32824 )
2025-09-08 10:12:50 -04:00
JunHyungKang
6ea06ca972
fix(openai): Fix Azure OpenAI Responses API model field issue ( #32649 )
2025-09-08 10:08:35 -04:00
ccurme
5b0a55ad35
chore(openai): apply formatting changes to AzureChatOpenAI ( #32848 )
2025-09-08 09:54:20 -04:00
Shahroz Ahmad
4828a85ab0
feat(core): add web_search in OpenAI tools list ( #32738 )
2025-09-02 21:57:25 +00:00
Ravirajsingh Sodha
b42dac5fe6
docs: standardize OllamaLLM and BaseOpenAI docstrings ( #32758 )
...
- Add comprehensive docstring following LangChain standards
- Include Setup, Key init args, Instantiate, Invoke, Stream, and Async
sections
- Provide detailed parameter descriptions and code examples
- Fix linting issues for code formatting compliance
Contributes to #24803
---------
Co-authored-by: Mason Daugherty <github@mdrxy.com >
2025-08-31 17:45:56 -05:00
Mason Daugherty
3d08b6bd11
chore: adress pytest-asyncio deprecation warnings + other nits ( #32696 )
...
amongst some linting imcompatible rules
2025-08-26 15:51:38 -04:00
ccurme
008043977d
release(openai): 0.3.32 ( #32691 )
2025-08-26 14:05:40 +00:00
Jacob Lee
1459d4f4ce
fix(openai): Always add raw response object to OpenAI client errors for invoke ( #32655 )
2025-08-26 09:59:25 -04:00
Maitrey Talware
622337a297
docs(docs): fixed typos in documentations ( #32661 )
...
Minor typo fixes. (Not linked to current open issues)
2025-08-25 10:02:53 -04:00
ccurme
8545d4731e
release(openai): 0.3.31 ( #32646 )
2025-08-21 16:50:27 -04:00
Alex Naidis
21f7a9a9e5
fix(openai): allow temperature parameter for gpt-5-chat models ( #32624 )
2025-08-21 16:40:10 -04:00
sa411022
61bc1bf9cc
fix(openai): construct responses api input ( #32557 )
2025-08-21 15:56:29 -04:00
Shahrukh Shaik
4ba222148d
fix(openai): Chat Message Annotations defaults to [ ] if not list or None ( #32614 )
2025-08-21 15:30:12 -04:00