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

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

Open
3 tasks
caoxinxiang123 opened this issue Oct 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@caoxinxiang123
Copy link

Do you need to file an issue?

  • I have searched the existing issues and this feature is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate feature request, not just a question. If this is a question, please use the Discussions area.

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 caoxinxiang123 added the enhancement New feature or request label Oct 14, 2024
@caoxinxiang123
Copy link
Author

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
Copy link
Owner

env里配置一下API key呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants