Mason Daugherty
7ba3e80057
test(openai): mark test_structured_output_and_tools flaky ( #34223 )
...
Often raises `KeyError: 'explanation'`
2025-12-05 11:26:17 -05:00
ccurme
328ba36601
chore(openai): skip Azure text completions tests ( #34021 )
2025-11-19 09:29:12 -05:00
ccurme
74385e0ebd
fix(langchain, openai): fix create_agent / response_format for Responses API ( #33939 )
2025-11-13 10:18:15 -05:00
Mason Daugherty
69c7d1b01b
test(groq,openai): add retries for flaky tests ( #33914 )
2025-11-10 10:36:11 -05:00
riunyfir
1b77a191f4
feat: The response.incomplete event is not handled when using stream_mode=['messages'] ( #33871 )
2025-11-07 09:46:11 -05:00
ccurme
81c4f21b52
fix(standard-tests): update multimodal tests ( #33781 )
2025-11-01 16:38:20 -04:00
Mason Daugherty
dc5b7dace8
test(openai): mark tests flaky ( #33750 )
...
see:
https://github.com/langchain-ai/langchain/actions/runs/18921929210/job/54020065079#step:10:560
2025-10-30 16:07:58 -04:00
ccurme
d218936763
fix(openai): update model used in test ( #33733 )
...
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-10-29 17:09:18 -04:00
ccurme
6ab0476676
fix(openai): update test ( #33659 )
2025-10-24 11:04:33 -04:00
Marlene
78175fcb96
feat(openai): add callable support for openai_api_key parameter ( #33532 )
2025-10-21 11:16:02 -04:00
Jacob Lee
6d73003b17
feat(openai): Populate OpenAI service tier token details ( #32721 )
2025-10-16 15:14:57 -04:00
Chenyang Li
6e25e185f6
fix(docs): Fix several typos and grammar ( #33487 )
...
Just typo changes
Co-authored-by: Mason Daugherty <mason@langchain.dev >
2025-10-14 20:04:14 -04:00
ccurme
78903ac285
fix(openai): conditionally skip test ( #33431 )
2025-10-10 21:04:18 +00:00
ccurme
c27271f3ae
fix(openai): update file index key name ( #33350 )
2025-10-09 13:15:27 +00:00
Mason Daugherty
31eeb50ce0
chore: drop UP045 ( #33362 )
...
Python 3.9 EOL
2025-10-08 21:17:53 -04:00
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
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
4e50ec4b98
feat(openai): enable stream_usage when using default base URL and client ( #33205 )
2025-10-06 08:56:38 -04: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
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
002d623f2d
feat: (core, standard-tests) support PDF inputs in ToolMessages ( #33183 )
2025-10-01 10:16:16 -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
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
JunHyungKang
6ea06ca972
fix(openai): Fix Azure OpenAI Responses API model field issue ( #32649 )
2025-09-08 10:08:35 -04: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
Mason Daugherty
262c83763f
release(openai): 0.3.30 ( #32515 )
2025-08-12 16:06:17 +00:00
Mason Daugherty
0024dffa68
feat(openai): officially support verbosity ( #32470 )
2025-08-12 16:00:30 +00: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
c31236264e
chore: formatting across codebase ( #32466 )
2025-08-08 10:20:10 -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
ccurme
ec2b34a02d
feat(openai): custom tools ( #32449 )
2025-08-07 16:30:01 -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
Mason Daugherty
e79e0bd6b4
fix(openai): add max_retries parameter to ChatOpenAI for handling 503 capacity errors ( #32286 )
...
Some integration tests were failing
2025-07-28 13:58:23 -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
88d5f3edcc
openai[patch]: allow specification of output format for Responses API ( #31686 )
2025-06-26 13:41:43 -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
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
ccurme
b9357d456e
openai[patch]: refactor handling of Responses API ( #31587 )
2025-06-16 14:01:39 -04:00
ccurme
ece9e31a7a
openai[patch]: VCR some tests ( #31524 )
2025-06-06 23:00:57 +00:00
Eugene Yurtsev
17f34baa88
openai[minor]: add image generation to responses api ( #31424 )
...
Does not support partial images during generation at the moment. Before
doing that I'd like to figure out how to specify the aggregation logic
without requiring changes in core.
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-06-02 10:03:54 -04:00
ccurme
c8951ca124
infra: drop azure from streaming benchmarks ( #31421 )
...
Covered by BaseChatOpenAI
2025-05-29 15:06:12 -04:00
ccurme
49eeb0f3c3
standard-tests: add benchmarks ( #31302 )
...
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
2025-05-29 15:21:37 +00:00
ccurme
ab8b4003be
openai[patch]: add test case for code interpreter ( #31383 )
2025-05-27 19:11:31 +00:00
ccurme
851fd438cf
openai[patch]: relax Azure llm streaming callback test ( #31319 )
...
Effectively reverts
https://github.com/langchain-ai/langchain/pull/29302 , but check that
counts are "less than" instead of equal to an expected count.
2025-05-22 16:14:53 +00:00
ccurme
053a1246da
openai[patch]: support built-in code interpreter and remote MCP tools ( #31304 )
2025-05-22 11:47:57 -04:00