mirror of
https://github.com/langchain-ai/kork.git
synced 2026-06-30 22:28:05 -04:00
[PR #25] Remove deprecated code #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/kork/pull/25
Author: @Sachin-Bhat
Created: 7/17/2024
Status: 🔄 Open
Base:
main← Head:feature-remove_deprecated_chain📝 Commits (1)
98f2d59Remove deprecated code📊 Changes
6 files changed (+24 additions, -24 deletions)
View changed files
📝
kork/chain.py(+11 -13)📝
kork/parser.py(+1 -1)📝
kork/prompt_adapter.py(+2 -3)📝
tests/test_chain.py(+4 -4)📝
tests/test_prompt_adapter.py(+1 -1)📝
tests/utils.py(+5 -2)📄 Description
Hello @eyurtsev,
Here are the list of changes:
LLMChainin favor ofRunnableSequenceas per LCELpydantic.config.Extraand instead assigning literals to theextraattributecast()andpredict_and_parse()in favor of.contentandinvoke()pydantic.config.Extraand instead assigning literals to theextraattributeChain.__call__()in favor of.invoke()pydantic.config.Extraand instead assigning literals to theextraattribute_llm_type()to ensure that thetest_chainpasses since.invoke()needs this property to function correctlyMerging this fixes #24. Please let me know if further changes are required or if I have missed something.
Cheers,
Sachin
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.