chatchat-space / Langchain-Chatchat

Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Apache License 2.0
31.16k stars 5.44k forks source link

[BUG] requirement.txt中jwt依赖错误导致zhipu-api无法使用,应该使用pyjwt #2842

Closed yhfgyyf closed 7 months ago

yhfgyyf commented 7 months ago

问题描述 / Problem Description requirement.txt中jwt依赖错误导致zhipu-api无法使用,使用jwt库会出现 module 'jwt' has no attribute 'encode 错误 应该使用pyjwt包,pyjwt>=2.8.0

复现问题的步骤 / Steps to Reproduce

  1. 执行 '...' / Run '...'
  2. 点击 '...' / Click '...'
  3. 滚动到 '...' / Scroll to '...'
  4. 问题出现 / Problem occurs

预期的结果 / Expected Result 描述应该出现的结果 / Describe the expected result.

实际结果 / Actual Result 描述实际发生的结果 / Describe the actual result.

环境信息 / Environment Information

附加信息 / Additional Information 添加与问题相关的任何其他信息 / Add any other information related to the issue.

dosubot[bot] commented 7 months ago

🤖

It's great that you've identified the issue with the jwt dependency in the requirement.txt file. Your proposed solution to use the pyjwt package with version >= 2.8.0 seems like a step in the right direction. Encouraging you to go ahead and create a pull request with your proposed fix. Your contribution will be valuable to the project. Thank you for taking the initiative!


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

zRzRzRzRzRzRzR commented 7 months ago

dev已经更新和修复