convert_to_openai_function will drop title
field in output_schema
if it's a Pydantic model.
#18319
Closed
5 tasks done
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: openai
Primarily related to OpenAI integrations
Ɑ: Runnables
Related to Runnables
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to use
langchain.chains.openai_functions.create_structured_output_runnable
to extract citation information from the text, and then I found that I cannot extract thetitle
field.After investigation, I discovered that langchain introduced an undocumented behavior in version 0.1.4, which deletes the
title
field in schema.System Info
The text was updated successfully, but these errors were encountered: