Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文件夹 notebook C4 第一节 错误 #149

Open
Yangyang8462 opened this issue Nov 4, 2024 · 0 comments
Open

文件夹 notebook C4 第一节 错误 #149

Yangyang8462 opened this issue Nov 4, 2024 · 0 comments

Comments

@Yangyang8462
Copy link

  1. wenxin_llm.py 文件中自定义文心模型调用方式,class 里面为什么没有 __init__ 初始化呢,我自己添加了才运行起来。

  2. 1.LLM 接入 LangChain.ipynb 文件中的 2.1 自定义 LLM 接入 langchain 的最后一个cell:

    # 或者使用
    llm(prompt="你好,请你自我介绍一下!")
    # LangChainDeprecationWarning: The method `BaseLLM.__call__` was deprecated in langchain-core 0.1.7 and will be removed in 1.0. Use :meth:`~invoke` instead.

    这个方法已经弃用了,建议只写 invoke 就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant