mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 23:07:11 +00:00
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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user