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

[BUG] v0.3.1 为什么设置yaml无效 #5170

Open
Ericliu68 opened this issue Jan 1, 2025 · 1 comment
Open

[BUG] v0.3.1 为什么设置yaml无效 #5170

Ericliu68 opened this issue Jan 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Ericliu68
Copy link

问题描述 / Problem Description
v0.3.1设置yaml无效

查看libs/chatchat-server/chatchat/settings.py这个文件,
model_config = SettingsConfigDict(yaml_file=CHATCHAT_ROOT / "*.yaml")
但是model_config 下面没有使用,也就是说yaml的配置并没有使用?
请问是我安装的版本原因吗?

@Ericliu68 Ericliu68 added the bug Something isn't working label Jan 1, 2025
Copy link

dosubot bot commented Jan 1, 2025

@Ericliu68 你好,我是一个能够帮助您解决问题、回答疑问并成为贡献者的机器人。在等待人类维护者时,我可以帮助您。

model_config is indeed set up to load configurations from a YAML file, as seen in the KBSettings class, which uses SettingsConfigDict to load configurations from a YAML file located at CHATCHAT_ROOT / "kb_settings.yaml" [1]. However, if model_config is not being used elsewhere in the code, it could be a reason why the YAML settings appear ineffective.

To resolve this, you should check if there are any parts of the code that reference or utilize model_config. If not, it might be necessary to ensure that the configuration is being applied correctly in the relevant parts of the application. Additionally, verify that the YAML file path and structure are correct and that the application is loading the intended file.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant