fix(api): add `version` class method for subclasses of `LLMNode`.
`QuestionClassifierNode` and `KnowledgeRetrievalNode` are inherited from `LLMNode`, so they inherit the `version` method from `LLMNode`. However, the inheritence relationship is suboptimial and makes code less clear, creating a tight coupling with `LLMNode`. Here we explicitly add the `version` to those two classes, improving readibility and maintainability.pull/21443/head
parent
1a1bfd4048
commit
8365524fc8
Loading…
Reference in New Issue