Multiline suggest in prompt_toolkit and LLM autocompletion#14623
Multiline suggest in prompt_toolkit and LLM autocompletion#14623Carreau merged 1 commit intoipython:mainfrom
Conversation
|
@Yann-P, want to take a look at taking over this, and potentially writing a real completer that will interrogate a LLM ? |
f42a05d to
906297a
Compare
|
There is a duplicate line bug. |
|
Note that you can run To show some debugging. |
7484545 to
d7dd087
Compare
b749af1 to
5349d63
Compare
a5eca08 to
d832859
Compare
This is a preview-draft of modification to IPython in order to allow multi-line suggestion in the terminal, and add the necesarry hooks and examples, in order to trigger LLM autocomplation via a shortcut. This will not be complete, but will be available as a preview in IPython 8.32 in order to gather feedback. This tries to be as compatible as possible with jupyter_ai and jupyter_ai_magics, except the Provider cannot take parameters in their constructor.
d832859 to
6da0463
Compare
|
I will merge this for now, and backport it as a preview feature on 8.32. |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…M autocompletion
This is a preview-draft of modification to IPython in order
to allow multi-line suggestion in the terminal, and add the necesarry
hooks and examples, in order to trigger LLM autocomplation via a
shortcut.
This will not be complete, but will be available as a preview in IPython
8.32 in order to gather feedback.
This tries to be as compatible as possible with jupyter_ai and
jupyter_ai_magics, except the Provider cannot take parameters in their
constructor.