langchain
2ba83931 - graph_transformers: bug fix for create_simple_model not passing in ll… (#24643)

Commit
1 year ago
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>
Author
Parents
Loading