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

0.13 does not pick up API token environment variable set in jupyter #134

Closed
delip opened this issue Nov 14, 2022 · 2 comments
Closed

0.13 does not pick up API token environment variable set in jupyter #134

delip opened this issue Nov 14, 2022 · 2 comments

Comments

@delip
Copy link
Contributor

delip commented Nov 14, 2022

I remember doing this in the early versions, but since 0.10 I can't seem to %env in Jupyter notebook to pass API tokens (tested this only with HuggingFaceHub, btw). Passing it as an argument, however, works fine.

Steps to reproduce:
image

@delip
Copy link
Contributor Author

delip commented Nov 14, 2022

Weirdly, the same code works without issues if I export the environment variable.

image

@delip
Copy link
Contributor Author

delip commented Nov 14, 2022

This pattern repeats itself with other LLM instances. Here's an example with OpenAI.
image

hwchase17 pushed a commit that referenced this issue Nov 14, 2022
- fixes the Jupyter environment variable issues mentioned in issue #134 
- fixes format/lint issues in some unrelated files (from make
format/lint)


![image](https://user-images.githubusercontent.com/347398/201599322-090af858-362d-4d69-bf59-208aea65419a.png)
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