-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Bug]: "if filename.endswith(".md"):" in utils.py, AttributeError: 'NoneType' object has no attribute 'endswith' #883
Comments
It works alright on my machine... Let me try setting my PC's OS language to English🤧 |
遇到了相同的问题 |
I pushed a fix, hopefully that resolves your issue. Let me know if there's still bugs sitting around. |
I'm confident to say that this issue is resolved now. Please pull the latest version. Let me know if there's still bugs sitting around. |
Now this bug is finally resolved... Sorry for the inconvenience! |
还是会出现这个错误,我这边hide_history_when_not_logged_in=true ,users : [] 就会出现 |
我也是 |
我等会儿再调查下 |
@ParkerLyu01 @alexxchen 现在修复了 |
这个bug是否已存在现有issue了?
错误表现
Launched as a localhost. After each prompt, AttributeError is raised.
Traceback
The function
auto_save
underbase_model.py
is first being called, which triggerssave_file
inutils.py
.However in this case the
filename
object passed tosave_file
is set toNone
.Suspected causing issue
filename
was passed fromself.history_file_path
under theBaseLLMModel
class.Where
self.history_file_path
is initialized asself.history_file_path = get_first_history_name(user)
.Looking at the
get_first_history_name
function,the returned value is None if
history_names
is not set.This suggests that the None object used by the
save_file
function is caused by a false initialization ofself.history_file_path
.A quick proof
After changing the line
to
The error is gone. However this might damage the app logic so cannot be taken as a fix.
复现操作
错误日志
运行环境
帮助解决
补充说明
No response
The text was updated successfully, but these errors were encountered: