Re: Running ChatGPT API from Lispworks
"Alexey Veretennikov (as alexey dot veretennikov at protonmail dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <3LS18xIb1a-DhzABtGplhZ0-l5KTEqsSWdyI8dZRYeipqhC1fTUgRgCNtu4_ELbC9fqwNGMgp2veMSmFrb8-wj71Qna_PE_gLbGZZxxSVnE=@protonmail.com> |
You can use json API to interact with APIs. I haven't tried ChatGPT but I tried to communicate with Anthropic Claude models this way by generating json and parsing output. You can try to configure gptel in Emacs and trace the commands it sends/parses for inspiration. Another way was to run aider cli tool in a LW Shell with ansi colors turned off. Aider could make changes in files; unfortunately LW doesn't recognize when the file is modified outside of the editor and do not auto-revert. BR, /Alexey On Wednesday, September 10th, 2025 at 16:29, Lawrence Au (as la at synap dot news) <[email protected]> wrote: > Hi, > > I’ve got a hybrid neural net/Symbolic AI demo which runs in a self-correcting loop with ChatGPT. But I’ve personally been part of the loop, cutting and pasting back and forth to ChatGPT! > > Has anybody been able to call ChatGPT’s API from Lispworks? > > I’d settle for calling indirectly through [call-system-showing-output](https://www.lispworks.com/documentation/lw60/LW/html/lw-1276.htm#20692) or[run-shell-command](https://www.lispworks.com/documentation/lw60/LW/html/lw-1376.htm#31535). > > Lawrence Au