mirror of https://github.com/hwchase17/langchain
graph_transformers: bug fix for create_simple_model not passing in ll… (#24643)
issue: #24615 descriptions: The _Graph pydantic model generated from create_simple_model (which LLMGraphTransformer uses when allowed nodes and relationships are provided) does not constrain the relationships (source and target types, relationship type), and the node and relationship properties with enums when using ChatOpenAI. The issue is that when calling optional_enum_field throughout create_simple_model the llm_type parameter is not passed in except for when creating node type. Passing it into each call fixes the issue. Co-authored-by: Lifu Wu <lifu@nextbillion.ai>pull/23909/head^2
parent
01ab2918a2
commit
2ba8393182
Loading…
Reference in New Issue