standard-tests: add test for structured output (#23631)

- add test for structured output
- fix bug with structured output for Azure
- better testing on Groq (break out Mixtral + Llama3 and add xfails
where needed)
This commit is contained in:
ccurme
2024-06-28 15:01:40 -04:00
committed by GitHub
parent 6c1ba9731d
commit 390ee8d971
5 changed files with 326 additions and 21 deletions

View File

@@ -1113,8 +1113,6 @@ class BaseChatOpenAI(BaseChatModel):
Example: JSON mode, no schema (schema=None, method="json_mode", include_raw=True):
.. code-block::
from langchain_openai import ChatOpenAI
structured_llm = llm.with_structured_output(method="json_mode", include_raw=True)
structured_llm.invoke(