KylinMountain / graphrag-server

添加🚀流式 Web 服务到 GraphRAG,兼容 OpenAI SDK,支持可访问的实体链接🔗,支持建议问题,兼容本地嵌入模型,修复诸多问题。Add streaming web server to GraphRAG, compatible with OpenAI SDK, support accessible entity link, support advice question, compatible with local embedding model, fix lots of issues.
https://microsoft.github.io/graphrag/
MIT License
178 stars 22 forks source link

[Feature Request]: <title>OPENAI_API_KEY问题,总是提示需要设置OPENAI_API_KEY #28

Open caoxinxiang123 opened 1 week ago

caoxinxiang123 commented 1 week ago

Do you need to file an issue?

Is your feature request related to a problem? Please describe.

graphrag.config.errors.ApiKeyMissingError: API Key is required for Completion API. Please set either the OPENAI_API_KEY, GRAPHRAG_API_KEY or GRAPHRAG_LLM_API_KEY environment variable.

Describe the solution you'd like

graphrag.config.errors.ApiKeyMissingError: API Key is required for Completion API. Please set either the OPENAI_API_KEY, GRAPHRAG_API_KEY or GRAPHRAG_LLM_API_KEY environment variable.

Additional context

No response

caoxinxiang123 commented 1 week ago

File "/app/graphrag/index/cli.py", line 135, in index_cli config_path = resolve_config_path_with_root(root) File "/app/graphrag/config/config_file_loader.py", line 41, in resolve_config_path_with_root raise FileNotFoundError(msg) FileNotFoundError: Invalid config path: server is not a directory

KylinMountain commented 1 day ago

env里配置一下API key呢?