X-D-Lab / LangChain-ChatGLM-Webui

基于LangChain和ChatGLM-6B等系列LLM的针对本地知识库的自动问答
Apache License 2.0
3.14k stars 474 forks source link

启智+ gradio 启动的服务,前端出现error,后台报错 AttributeError: 'NoneType' object has no attribute 'temperature' #102

Open salile opened 1 year ago

salile commented 1 year ago

hello~ 启智+ gradio 启动的服务 前端: image

后台: 完整traceback: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/gradio/routes.py", line 289, in run_predict output = await app.blocks.process_api( File "/usr/local/lib/python3.8/dist-packages/gradio/blocks.py", line 990, in process_api result = await self.call_function(fn_index, inputs, iterator) File "/usr/local/lib/python3.8/dist-packages/gradio/blocks.py", line 832, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "app.py", line 215, in predict resp = knowladge_based_chat_llm.get_knowledge_based_answer( File "app.py", line 102, in get_knowledge_based_answer self.llm.temperature = temperature AttributeError: 'NoneType' object has no attribute 'temperature'

Lilacs commented 1 year ago

遇到同样的问题

CleanShot 2023-07-23 at 04 10 47@2x CleanShot 2023-07-23 at 04 11 12@2x
Cordy27 commented 8 months ago

同样的问题有人解决了吗

thomas-yanxin commented 8 months ago

最近我修复一下