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

环境变量 GRAPHRAG_API_KEY 设置问题 #10

Open
Theigrams opened this issue Aug 9, 2024 · 1 comment
Open

环境变量 GRAPHRAG_API_KEY 设置问题 #10

Theigrams opened this issue Aug 9, 2024 · 1 comment

Comments

@Theigrams
Copy link

https://github.com/KylinMountain/graphrag-server/blob/a83d2fb08a5ec9cd45288068e47d936dd4e40c86/webserver/configs/settings.py#L56C42-L56C58

第 56 行和第 58 行从环境变量中读入了 GRAPHRAG_API_KEY.env 文件默认设置GRAPHRAG_API_KEY=<API_KEY>,这里没有进行特殊判断,导致 llm_params.api_keytext_embedding.llm.api_key 都变成了 <API_KEY>

@KylinMountain
Copy link
Owner

原来是这样,难怪我没复现出来,.env要是初始化的状态,感谢

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

2 participants