-
-
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
Default model for %%ai magic command #372
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
The magic commands can run independently of the chat UI, such as when using the IPython CLI application, but this is something that would improve user quality of life. As an alternative, we could make |
Last-used model sounds good, though it does add hidden state and make notebooks less rerunnable. On the other hand Could all arguments to |
I retitled this issue to leave more of our options open. Especially for some of our more complex commands, like |
Why not forcing users to specify the model once in their notebook (at the beginning) and then re-using the same model as long as the kernel is alive. |
Implementing this will be tricky. It is possible for chat to send a command to the kernel, but this would be hard to support in a language-agnostic way. Maybe it would be possible to pass an environment variable to the kernel, but this is also a hard problem for remote kernels. A message in jupyter messaging protocol level for for configuring environment variables might the be best here - this way jupyter-ai chat could sent such a message to all kernels and change the environment variables defining which model to use, and it would be language agnostic. However, for now we do not need to worry about being language agnostic that much, because jupyter-ai only supports Python; so we only need to not send an execution request to non-Python kernels which is easier. What do folks think about it? |
@haesleinhuepf this is exactly what I am proposing in #962 :) |
Thank you @krassowski , |
Problem
I would like to use %%ai cell magic more, but I don't want to type the name of my model each time. Typing 4 characters for "%%ai" plus "b" for a new cell is already more typing than a click for a "new chat" in ChatGPT UI.
Proposed Solution
Make the MODEL_ID positional argument optional. The default value should come from the model configured in the chat interface UI.
Additional Notes
Thank you for this fantastic time saving extension!
The text was updated successfully, but these errors were encountered: