-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
howto add key #330
howto add key #330
Conversation
Hi, I did have some problems with setting up the API key in a jupyter notebook. This in a code cell does work for chatgpt. import os os.environ["OPENAI_API_KEY"]='sk-'
Thanks for submitting your first pull request! You are awesome! 🤗 |
This is a partial fix for #315. |
@bjornjorgensen Thank you very much for opening this pull request! Because configuration is required for all of our model providers, it might be better to modify the ## Requirements
- Python 3.8 - 3.11
- JupyterLab 4
You will need API keys or other credentials for each model provider you use
with Jupyter AI. For information about credentials and how to provide them, see
[the model providers documentation](https://jupyter-ai.readthedocs.io/en/latest/users/index.html#model-providers). |
what if we change the text to
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor suggestions, but otherwise looks good. Thank you very much for your contributions!
Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
* howto add key Hi, I did have some problems with setting up the API key in a jupyter notebook. This in a code cell does work for chatgpt. import os os.environ["OPENAI_API_KEY"]='sk-' * Move to Requirements * Setting Up Model Providers in a Notebook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove chatgpt * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
* howto add key Hi, I did have some problems with setting up the API key in a jupyter notebook. This in a code cell does work for chatgpt. import os os.environ["OPENAI_API_KEY"]='sk-' * Move to Requirements * Setting Up Model Providers in a Notebook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove chatgpt * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> * Update README.md Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
Hi, I did have some problems with setting up the API key in a jupyter notebook. Like in #315
This in a code cell does work for chatgpt.
import os
os.environ["OPENAI_API_KEY"]='sk-'