ccurme
e0950f29b7
fix(openai): rely on langchain-core for setting chunk_position ( #34404 )
2025-12-17 12:44:12 -05:00
Mason Daugherty
37d8666276
release(openai): 1.1.4 ( #34395 )
2025-12-16 14:55:18 -05:00
Mason Daugherty
c286c06f16
revert(openai): switch model from nano to mini when using flex ( #34394 )
...
Reverts langchain-ai/langchain#34336
2025-12-16 14:45:19 -05:00
tom1299
f167c35243
fix(openai): Correct hyperlinks in documentation of function with_structured_output ( #34385 )
...
Just a small fix of some broken hyperlinks in the documentation of the
function `langchain_openai/chat_models/base.py#with_structured_output`
and a rephrase of the reference to supported models.
Co-authored-by: Thomas Reuhl <thomas.reuhl@telekom.de >
2025-12-16 10:49:57 -05:00
Mason Daugherty
1a3cd46d88
release(anthropic): 1.3.1 ( #34337 )
2025-12-12 17:37:55 -05:00
Viktor Taranenko
470160cf81
fix(anthropic): prevent crash with cache_control and empty message content ( #34025 )
2025-12-12 17:32:11 -05:00
Mason Daugherty
20b8342fdf
test(openai): switch model from nano to mini when using flex ( #34336 )
...
Issues with combining flex and nano
```shell
FAILED tests/integration_tests/chat_models/test_base.py::test_openai_invoke - openai.InternalServerError: Error code: 500 - {'error': {'message': 'The server had an error while processing your request. Sorry about that!', 'type': 'server_error', 'param': None, 'code': None}}
FAILED tests/integration_tests/chat_models/test_base.py::test_stream - openai.InternalServerError: Error code: 500 - {'error': {'message': 'The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_e726769d95994fd4bccbe55680a35f59 in your email.)', 'type': 'server_error', 'param': None, 'code': None}}
FAILED tests/integration_tests/chat_models/test_base.py::test_flex_usage_responses[False] - openai.InternalServerError: Error code: 500 - {'error': {'message': 'An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID req_935316418319494d8682e4adcd67ab47 in your message.', 'type': 'server_error', 'param': None, 'code': 'server_error'}}
FAILED tests/integration_tests/chat_models/test_base.py::test_flex_usage_responses[True] - openai.APIError: An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID req_f3c164d0d1f045a5a0f5965ab5c253bf in your message.
```
2025-12-12 17:17:11 -05:00
Mason Daugherty
2f8af61218
release(huggingface): 1.2.0 ( #34335 )
2025-12-12 17:16:38 -05:00
Mason Daugherty
81758e22f3
release(mistralai): 1.1.1 ( #34334 )
2025-12-12 17:08:30 -05:00
Mason Daugherty
3342e4d62d
release(groq): 1.1.1 ( #34332 )
2025-12-12 16:52:56 -05:00
Mason Daugherty
5842110dbc
release(ollama): 1.0.1 ( #34330 )
2025-12-12 16:46:28 -05:00
Mason Daugherty
62db04c43a
revert: make integration tests output verbose ( #34329 )
...
Reverts langchain-ai/langchain#34327
2025-12-12 16:40:41 -05:00
dumko2001
fb892ee50a
feat(groq): Allow kwargs in with_structured_output to override tool_choice ( #34053 )
2025-12-12 16:16:26 -05:00
Mason Daugherty
8ad0e9f267
chore(infra,openai): make integration tests output verbose ( #34327 )
...
to match anthropic
without this, have to wait until all tests fail to begin debugging / see
output
also add timeout since it was missing
2025-12-12 15:34:01 -05:00
Mason Daugherty
d0b13e926d
release(openai): 1.1.3 ( #34325 )
2025-12-12 15:18:02 -05:00
Mason Daugherty
6fa4a45311
chore(anthropic): bump min core version ( #34326 )
2025-12-12 15:17:36 -05:00
Mason Daugherty
97dd5f2cb8
release(anthropic): 1.3.0 ( #34324 )
2025-12-12 15:10:49 -05:00
Deshbhushan Patil
2a82fbc0ff
test(ollama): Add unit test for ChatOllama reasoning parameter ( #34095 )
2025-12-12 14:48:04 -05:00
Towseef Altaf
0e5e33ba03
fix(openai): correct image resize aspect ratio caps ( #34192 )
2025-12-12 14:34:17 -05:00
Nhan Nguyen
7829b722b1
fix(mistralai): handle null content in tool call responses ( #34268 )
2025-12-12 13:18:56 -05:00
ccurme
c3738ea376
chore(anthropic): make test agnostic of python version ( #34320 )
2025-12-12 18:10:14 +00:00
Mason Daugherty
57ff48e62e
docs(anthropic): clean up docstrings ( #34317 )
...
migration to docs
2025-12-12 11:30:34 -05:00
ccurme
bc232e6d03
release(chroma): 1.1 ( #34316 )
2025-12-12 11:20:47 -05:00
itaismith
be32382d92
feat(chroma): Add Search API ( #34273 )
2025-12-12 11:14:47 -05:00
Georgey
16c984ef0a
fix(langchain-classic): fix init_chat_model for HuggingFace models ( #33943 )
2025-12-12 11:05:48 -05:00
Mason Daugherty
13dd115d1d
docs(anthropic): nit comments ( #34314 )
2025-12-12 10:33:23 -05:00
Mason Daugherty
2cff369cdc
feat(anthropic): accept TypedDict for built-in tool types ( #34279 )
...
Widen `bind_tools` to accept `TypedDict` via `Mapping` so that users may
import and use Anthropic's built-in tool types:
```python
import subprocess
from anthropic.types.beta import BetaToolBash20250124Param
from langchain.tools import tool
tool_spec = BetaToolBash20250124Param(
name="bash",
type="bash_20250124",
strict=True,
)
@tool(extras={"provider_tool_definition": tool_spec})
def bash(*, command: str, restart: bool = False, **kw):
"""Execute a bash command."""
if restart:
return "Bash session restarted"
try:
result = subprocess.run(
command,
shell=True,
capture_output=True,
text=True,
timeout=30,
)
return result.stdout + result.stderr
except Exception as e:
return f"Error: {e}"
# Bind bash tool to your model
```
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-12-12 10:29:12 -05:00
Christophe Bornet
f5b6eecf72
refactor(standard-tests): improve VCR config ( #33968 )
...
Use of the fixture `_base_vcr_config` is deprecated with alternative
function `base_vcr_config()`
This way:
* we don't need to import `_base_vcr_config` seen as unused (which leads
to ruff violations PLC0414 and F811)
* we don't need to make a copy since a new dict is created at each
function invocation
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-12-12 10:14:26 -05:00
Jacob Lee
a528ea1796
feat(openai): Use responses API if model is gpt-5.2-pro ( #34306 )
2025-12-12 10:11:15 -05:00
Paul
bf6a5eb122
fix(huggingface): Helper logic for init_chat_model with HuggingFace backend ( #34259 )
2025-12-12 10:05:16 -05:00
j3r0lin
5720dea41b
fix(openai): handle missing 'text' key in responses API content blocks ( #34198 )
2025-12-12 09:39:12 -05:00
Mohammad Mohtashim
087107557f
chore(ollama,groq): Filtering Parameters in bind_tools for Ollama and Groq ( #34167 )
2025-12-12 09:24:24 -05:00
dumko2001
05ba853548
fix(ollama): pop unsupported 'strict' argument in ChatOllama ( #34114 )
2025-12-12 09:13:11 -05:00
Mason Daugherty
d6b5f05f33
refactor(anthropic): comments and _BUILTIN_TOOL_PREFIXES ( #34305 )
2025-12-11 16:57:22 -05:00
ccurme
373ad8ac2c
release(openai): 1.1.2 ( #34302 )
2025-12-11 16:20:57 -05:00
Mason Daugherty
5eec11e2db
docs(anthropic): fix line number highlighting ( #34303 )
2025-12-11 16:12:01 -05:00
Jacob Lee
badc0cf1b6
fix(openai): Allow temperature when reasoning is set to the string 'none' ( #34298 )
...
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-12-11 15:57:04 -05:00
Mason Daugherty
3b7abdff96
feat(anthropic): auto-apply mcp beta header ( #34301 )
...
and update docstring example
2025-12-11 15:49:32 -05:00
Mason Daugherty
4aebfbad59
docs(anthropic): use named betas param in docstring example ( #34300 )
2025-12-11 15:48:13 -05:00
Mason Daugherty
ae1f03fbe0
docs(anthropic): cleanup nits ( #34299 )
2025-12-11 15:17:56 -05:00
ccurme
46dbb3967e
chore(anthropic): update test_tool_search cassette ( #34297 )
2025-12-11 10:53:52 -05:00
Towseef Altaf
d27fb0c432
feat(langchain,openai): add strict flag to ProviderStrategy structured output ( #34149 )
2025-12-10 15:35:23 -05:00
ccurme
69dd39c461
fix(anthropic): ignore null values of caller on tool_use blocks ( #34286 )
2025-12-10 13:13:02 -05:00
ccurme
5350967ddc
feat(anthropic): support mcp_toolset in bind_tools ( #34284 )
2025-12-10 14:39:35 +00:00
Mason Daugherty
7542278997
feat(core,anthropic): extras on BaseTool ( #34120 )
2025-12-10 09:37:14 -05:00
Mason Daugherty
ff6e3558d7
docs(fireworks,groq,huggingface,mistralai,ollama,openai): x-ref convert_to_openai_tool ( #34276 )
2025-12-09 19:51:04 -05:00
Mason Daugherty
dff229d018
fix(openai): add missing tools param to ChatOpenAI with_structured_output ( #34075 )
2025-12-08 15:47:31 -05:00
Mason Daugherty
2faed37ff1
feat(anthropic): document and test fine grained tool streaming ( #34118 )
...
https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming
2025-12-08 15:34:56 -05:00
Mason Daugherty
91d5ca275d
feat(anthropic): use model profile for max output tokens ( #34163 )
...
Need(?) to adjust tests to also pull from model profile? currently
hardcoded
2025-12-08 15:31:16 -05:00
Mason Daugherty
dcb670f395
feat(anthropic): auto append relevant beta headers for computer use ( #34117 )
...
in addition to documenting it
https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
2025-12-08 15:25:36 -05:00