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

請教您,'export OPENAI_API_KEY=${your_api_key} or --openai_key ${key}'這句應該加在哪裡 #2

Open
AllenPi opened this issue Mar 8, 2023 · 2 comments

Comments

@AllenPi
Copy link

AllenPi commented Mar 8, 2023

我安裝完pip install iwhat
申請了 openai的api, 格式為sk-xxxxxxxxxxxx
請問如何將api key 導入?

@v2less
Copy link

v2less commented Mar 8, 2023

在终端导入环境变量:

export OPENAI_API_KEY="sk-xxxxxxxx"

也可以使用参数的方式

iwhat --openai_key "sk-xxxxxx" "some message"

@AllenPi
Copy link
Author

AllenPi commented Mar 9, 2023

在终端导入环境变量:

export OPENAI_API_KEY="sk-xxxxxxxx"

也可以使用参数的方式

iwhat --openai_key "sk-xxxxxx" "some message"

谢谢

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