Thank you for your interest in this paclet!
OpenAI completions are of two kinds: text completions and chat completions.
From my (recent) experiments, I know that text completions cannot be done with chat-models, and vice versa.
The problem you have -- with "OpenAILink" -- is that OpenAIMode`OpenAIInputExecuteToText
uses ChristopherWolfram`OpenAILink`OpenAITextComplete
.
In order to "fix" this in "OpenAILink" I can make OpenAIInputExecuteToText
take an evaluator function. (Which, by the way, the underlying function OpenAIInputExecute
does.) To a large extend I introduced that level of indirection to resolve these kind of problems.
I have to think about a proper design, though. OpenAIChatComplete
takes chat message objects, so, they have to be specified too.
Please see the attached notebook.

Attachments: