langchain/libs/partners/openai/tests/integration_tests/chat_models
Friso H. Kingma af11fbfbf6
langchain_openai: Make sure the response from the async client in the astream method of ChatOpenAI is properly awaited in case of "include_response_headers=True" (#26031)
- **Description:** This is a **one line change**. the
`self.async_client.with_raw_response.create(**payload)` call is not
properly awaited within the `_astream` method. In `_agenerate` this is
done already, but likely forgotten in the other method.
  - **Issue:** Not applicable
  - **Dependencies:** No dependencies required.

(If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.)

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-09-04 13:26:48 +00:00
..
__init__.py openai[minor]: implement langchain-openai package (#15503) 2024-01-05 15:03:28 -08:00
test_azure_standard.py standard-tests[patch]: add tests for runnables as tools and streaming usage metadata (#24153) 2024-07-11 18:30:05 -04:00
test_azure.py openai[patch]: fix json mode for Azure (#25488) 2024-08-16 09:50:50 -07:00
test_base_standard.py openai[patch]: move test (#24552) 2024-07-23 10:22:22 -04:00
test_base.py langchain_openai: Make sure the response from the async client in the astream method of ChatOpenAI is properly awaited in case of "include_response_headers=True" (#26031) 2024-09-04 13:26:48 +00:00