Closed rgbkrk closed 1 year ago
Maybe do the prompt definition with another magic?
That's a really neat idea. Maybe %%prompt
could swap the current prompt out rather than create a new magic. Usage would be like:
%%prompt
You are a computer science teacher speaking to high schoolers. The students are working in Python.
Which sets the prompt (but does not send it). Then you just use the %%assist
magic like normal.
%%assist
I wanted to leave room for how we could set context creation but I'm not sure how that would plug in here. Maybe it doesn't matter though and we continue on with using historical context in the way we do now.
Ok the %%prompt
magic from #71 is working well at doing exactly this. Closing this PR.
Provide a
create_gpt_magic
.This idea spawned from @jph00's tweet and what I've been hoping for in #42.
This PR adds a few things (building on #66):
create_gpt_magic
To try this out, create the following cells:
Second cell:
Then use
%%jeremy
wherever you like:Result (for entertainment):