scijava / script-editor

Script Editor and Interpreter for SciJava script languages
http://imagej.net/Script_Editor
BSD 2-Clause "Simplified" License
12 stars 12 forks source link

introducing chatGPT support #67

Closed haesleinhuepf closed 8 months ago

haesleinhuepf commented 8 months ago

Hi @ctrueden and, @acardona ,

this PR adds OpenAI's chatGPT integration into the Script Editor. Just write a prompt, select it and click on this menu:

image

E.g. producing ImageJ Macro:

image

It also works with Groovy if this language is selected:

image

If this gets merged, we need to:

Let me know what you think!

Best, Robert

ctrueden commented 8 months ago

I added the Edit>Options>OpenAI... settings dialog. Gonna merge this now, so that we can get it into the next Fiji release. Better exception handling can be added later if/when users have issues with flaky responses from ChatGPT.

ctrueden commented 8 months ago

Thanks again, @haesleinhuepf :smile_cat: