-
Notifications
You must be signed in to change notification settings - Fork 216
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
support basic openai, chatgpt, generative ai integration #6392
Comments
Regarding students, maybe the opposite is also interesting: disseminating a key to all their projects? Well, in any case, I propose to use the column |
Maybe, though in practice I think this is unlikely, since each student gets a certain quite significant amount for free from openai, whereas that single key could end up costing a lot. But who knows. It's a little trickier due to the pricing model -- any one student could cost the instructor hundreds of dollars, in theory... In fact, we should probably require setting some sort of limits, since (1) a collaborator on a project could easily blow through a limit, as could students, and (2) a bug in some code could also cause 100K requests to openai and a huge bill, and that could be a liability for us. |
It seems like there is an official api and the pricing is better: https://news.ycombinator.com/item?id=34985848 |
A first very non-intrusive way I'm thinking of adding some integration is to just create what appears to be a new Jupyter kernel, which is actually a conversation with openai. I don't quite know how to implement this, but from a user point of view, you would just select the "OpenAI" kernel in a Jupyter notebook, and use it. It thus is easy to ignore and isn't intrusive. If you generate useful things, you can copy/paste them or link them elsewhere in a project. This would just be a single step, without having to change the user interface very much, and it has the advantage that the fact you're using OpenAI is very explicit and clear, unlike some of the crazy integrations out there... |
We do this now :-) |
The goal would be to make it easy for users who explicitly add their openai key to a cocalc project to use certain functionality from openai as part of working with code or notebooks.
The api and docs are here: https://platform.openai.com/docs/libraries
The first version would work as follows.
Obviously, projects have to have the network access upgrade for this to work.
NOTE: One motivation for implementing this is to keep up with this JupyterLab extension: jupyterlab/frontends-team-compass#172
That said, in CoCalc this wouldn't just be for Jupyter.
CAVEATS: Instructors of courses should have the option to set their student projects so that the openai key can't be added, in case they want to be sure students aren't using it.
The text was updated successfully, but these errors were encountered: