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

openai api key cannot pass to vec2text package #15

Closed
dbdx-zwh opened this issue Nov 27, 2023 · 1 comment
Closed

openai api key cannot pass to vec2text package #15

dbdx-zwh opened this issue Nov 27, 2023 · 1 comment

Comments

@dbdx-zwh
Copy link

hello, i just try your vec2text_demo(ipynb file), and change the openai api key to my own key and i test it with a simple chat, it works. However, when i run "import vec2text", it fails and said "OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"

@dbdx-zwh
Copy link
Author

ok i solve it, i explicitly insert my api key to "vec2text/trainers_baseline/fewshot_inversion_trainer.py" file and it works, sorry for bothering, btw nice paper and nice work!

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

1 participant