Mason Daugherty
645e25f624
langchain-anthropic[patch]: Add ruff bandit rules ( #31789 )
2025-06-30 14:00:53 -04:00
Mason Daugherty
247673ddb8
chroma: add ruff bandit rules ( #31790 )
2025-06-30 14:00:08 -04:00
Mason Daugherty
1a5120dc9d
langchain-deepseek[patch]: add ruff bandit rules ( #31792 )
...
add ruff bandit rules
2025-06-30 13:59:35 -04:00
Mason Daugherty
6572399174
langchain-exa: add ruff bandit rules ( #31793 )
...
Add ruff bandit rules
2025-06-30 13:58:38 -04:00
ccurme
9f17fabc43
openai: release 0.3.27 ( #31769 )
...
To pick up https://github.com/langchain-ai/langchain/pull/31756 .
2025-06-27 13:44:45 -04:00
Andrew Jaeger
0189c50570
openai[fix]: Correctly set usage metadata for OpenAI Responses API ( #31756 )
2025-06-27 15:35:14 +00:00
ccurme
e8e89b0b82
docs: updates from langchain-openai 0.3.26 ( #31764 )
2025-06-27 11:27:25 -04:00
Mason Daugherty
e1aff00cc1
groq: support reasoning_effort
, update docs for clarity ( #31754 )
...
- There was some ambiguous wording that has been updated to hopefully
clarify the functionality of `reasoning_format` in ChatGroq.
- Added support for `reasoning_effort`
- Added links to see models capable of `reasoning_format` and
`reasoning_effort`
- Other minor nits
2025-06-27 09:43:40 -04:00
ccurme
ea1345a58b
openai[patch]: update cassette ( #31752 )
...
Following changes in `openai==1.92`.
2025-06-26 14:52:12 -04:00
ccurme
066be383e3
openai[patch]: update test following release of openai 1.92 ( #31751 )
...
Added new required fields for `ResponseFunctionWebSearch`
2025-06-26 18:22:58 +00:00
ccurme
61feaa4656
openai: release 0.3.26 ( #31749 )
2025-06-26 13:51:51 -04:00
ccurme
88d5f3edcc
openai[patch]: allow specification of output format for Responses API ( #31686 )
2025-06-26 13:41:43 -04:00
Mason Daugherty
59c2b81627
docs: fix some inline links ( #31748 )
2025-06-26 13:35:14 -04:00
ccurme
0ae434be21
anthropic: release 0.3.16 ( #31744 )
2025-06-26 09:09:29 -04:00
Mason Daugherty
2fb27b63f5
ollama: update tests, docs ( #31736 )
...
- docs: for the Ollama notebooks, improve the specificity of some links,
add `homebrew` install info, update some wording
- tests: reduce number of local models needed to run in half from 4 → 2
(shedding 8gb of required installs)
- bump deps (non-breaking) in anticipation of upcoming "thinking" PR
2025-06-25 20:13:20 +00:00
ccurme
84500704ab
openai[patch]: fix bug where function call IDs were not populated ( #31735 )
...
(optional) IDs were getting dropped in some cases.
2025-06-25 19:08:27 +00:00
ccurme
0bf223d6cf
openai[patch]: add attribute to always use previous_response_id ( #31734 )
2025-06-25 19:01:43 +00:00
ccurme
b02bd67788
anthropic[patch]: cache clients ( #31659 )
2025-06-25 14:49:02 -04:00
ccurme
e09abf8170
anthropic[patch]: add benchmark ( #31718 )
...
Account for lazy loading of clients in init time benchmark
2025-06-24 15:17:22 -04:00
Mason Daugherty
8878a7b143
docs: ollama nits ( #31714 )
2025-06-24 13:19:15 -04:00
joshy-deshaw
8a0782c46c
openai[patch]: fix dropping response headers while streaming / Azure ( #31580 )
2025-06-23 17:59:58 -04:00
Mason Daugherty
8868701c16
docs: updated ChatGroq docs and example ( #31710 )
2025-06-23 20:36:46 +00:00
ccurme
ee83993b91
docs: document Anthropic cache TTL count details ( #31708 )
2025-06-23 20:16:42 +00:00
Mason Daugherty
e6191d58e7
groq: release 0.3.4 ( #31709 )
...
bump groq dependency to ensure reasoning is supported
2025-06-23 19:30:05 +00:00
Mason Daugherty
40bb7d00fc
groq: release 0.3.3 ( #31707 )
2025-06-23 14:54:56 -04:00
Mason Daugherty
dcf5c7b472
groq: add support for accessing reasoning output from Groq models ( #31662 )
...
**Description:** return
[reasoning](https://console.groq.com/docs/reasoning ) output in
`additional_kwargs` as `reasoning_content`
**Issue:** Resolves #31052
2025-06-23 11:33:12 -04:00
ccurme
643741497a
openai: release 0.3.25 ( #31702 )
2025-06-23 10:55:48 -04:00
ccurme
b268ab6a28
openai[patch]: fix client caching when request_timeout is specified via httpx.Timeout ( #31698 )
...
Resolves https://github.com/langchain-ai/langchain/issues/31697
2025-06-23 14:37:49 +00:00
Li-Kuang Chen
4ee6112161
openai[patch]: Improve error message when response type is malformed ( #31619 )
2025-06-21 14:15:21 -04:00
ZhangShenao
9d4d258162
[Doc] Improve api doc for DeepSeek ( #31655 )
...
- Add param in api doc
- Fix word spelling
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-06-20 19:47:54 +00:00
Saran Connolly
22e6d90937
langchain_mistralai: Include finish_reason
in response metadata when parsing MistralAI chunks toAIMessageChunk
( #31667 )
...
## Description
<!-- What does this pull request accomplish? -->
- When parsing MistralAI chunk dicts to Langchain to `AIMessageChunk`
schemas via the `_convert_chunk_to_message_chunk` utility function, the
`finish_reason` was not being included in `response_metadata` as it is
for other providers.
- This PR adds a one-liner fix to include the finish reason.
- fixes: https://github.com/langchain-ai/langchain/issues/31666
2025-06-20 15:41:20 -04:00
ccurme
e2a0ff07fd
openai[patch]: include 'type' key internally when streaming reasoning blocks ( #31661 )
...
Covered by existing tests.
Will make it easier to process streamed reasoning blocks.
2025-06-18 15:01:54 -04:00
ccurme
6409498f6c
openai[patch]: route to Responses API if relevant attributes are set ( #31645 )
...
Following https://github.com/langchain-ai/langchain/pull/30329 .
2025-06-17 16:04:38 -04:00
ccurme
3044bd37a9
openai: release 0.3.24 ( #31642 )
2025-06-17 15:06:52 -04:00
ccurme
c1c3e13a54
openai[patch]: add Responses API attributes to BaseChatOpenAI ( #30329 )
...
`reasoning`, `include`, `store`, `truncation`.
Previously these had to be added through `model_kwargs`.
2025-06-17 14:45:50 -04:00
ccurme
b610859633
openai[patch]: support Responses streaming in AzureChatOpenAI ( #31641 )
...
Resolves https://github.com/langchain-ai/langchain/issues/31303 ,
https://github.com/langchain-ai/langchain/issues/31624
2025-06-17 14:41:09 -04:00
ZhangShenao
0b5c06e89f
[Doc] Improve api doc for perplexity ( #31636 )
...
- add param in api doc
- fix word spelling
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-06-17 14:10:43 +00:00
FT
c4c39c1ae6
mistralai[patch]: Fix Typos in Comments and Improve Compatibility Note ( #31616 )
...
Description:
This pull request corrects minor spelling mistakes in the comments
within the `chat_models.py` file of the MistralAI partner integration.
Specifically, it fixes the spelling of "equivalent" and "compatibility"
in two separate comments. These changes improve code readability and
maintain professional documentation standards. No functional code
changes are included.
2025-06-17 09:23:25 -04:00
ccurme
b9357d456e
openai[patch]: refactor handling of Responses API ( #31587 )
2025-06-16 14:01:39 -04:00
Peter Schneider
cecfec5efa
huggingface: handle image-text-to-text pipeline task ( #31611 )
...
**Description:** Allows for HuggingFacePipeline to handle
image-text-to-text pipeline
2025-06-14 16:41:11 -04:00
ccurme
5839801897
openai: release 0.3.23 ( #31604 )
2025-06-13 14:02:38 +00:00
ccurme
0c10ff6418
openai[patch]: handle annotation change in openai==1.82.0 ( #31597 )
...
https://github.com/openai/openai-python/pull/2372/files#diff-91cfd5576e71b4b72da91e04c3a029bab50a72b5f7a2ac8393fca0a06e865fb3
2025-06-12 23:38:41 -04:00
ccurme
4071670f56
huggingface[patch]: bump transformers ( #31559 )
2025-06-10 20:43:33 +00:00
ccurme
40d6d4c738
huggingface[patch]: bump core dep ( #31558 )
2025-06-10 20:26:13 +00:00
Mohammad Mohtashim
42eb356a44
[OpenAI]: Encoding Model ( #31402 )
...
- **Description:** Small Fix for when getting the encoder in case of
KeyError and using the correct encoder for newer models
- **Issue:** #31390
2025-06-10 16:00:00 -04:00
ccurme
71b0f78952
openai: release 0.3.22 ( #31542 )
2025-06-09 15:29:15 -04:00
ccurme
575662d5f1
openai[patch]: accommodate change in image generation API ( #31522 )
...
OpenAI changed their API to require the `partial_images` parameter when
using image generation + streaming.
As described in https://github.com/langchain-ai/langchain/pull/31424 , we
are ignoring partial images. Here, we accept the `partial_images`
parameter (as required by OpenAI), but emit a warning and continue to
ignore partial images.
2025-06-09 14:57:46 -04:00
ccurme
ece9e31a7a
openai[patch]: VCR some tests ( #31524 )
2025-06-06 23:00:57 +00:00
Bagatur
5187817006
openai[release]: 0.3.21 ( #31519 )
2025-06-06 11:40:09 -04:00
Bagatur
761f8c3231
openai[patch]: pass through with_structured_output kwargs ( #31518 )
...
Support
```python
from langchain.chat_models import init_chat_model
from pydantic import BaseModel
class ResponseSchema(BaseModel):
response: str
def get_weather(location: str) -> str:
"""Get weather"""
pass
llm = init_chat_model("openai:gpt-4o-mini")
structured_llm = llm.with_structured_output(
ResponseSchema,
tools=[get_weather],
strict=True,
include_raw=True,
tool_choice="required",
parallel_tool_calls=False,
)
structured_llm.invoke("whats up?")
```
2025-06-06 11:17:34 -04:00