Re: Running ChatGPT API from Lispworks

"Eben Bruyns (as eben at sdk dot co dot nz)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <CAEPc2HcjNYDu+WM1+fdEvOQki0ny+KT_kt6DE30pPxmFCp9HNA@mail.gmail.com>
HI Lawrance,

I've been using claude code, it has a cli switch -p which allows you to
interact with claude code via stdin and stdout. Depending on what the demo
is doing this might be exactly what you want instead? It's also agentic so
you might be able to even spin up a chat gpt enabled via an mcp server or
just use gpt via an mcp server.

I've done some pretty wild stuff using this where I have claud code writing
scripts that will call itself with various prompts. The results can vary
(some days it's better than others, I suspect it's a drinker and hung over
some days).

Regards,

Eben Bruyns


On Thu, 11 Sept 2025 at 02: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
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.