Date
1 - 2 of 2
Magic AI
Craig Martin
OK, Todd, "as you wish".
Here's a lame example of a ChatGPT-like integration with Magic XPA 4.9 I built this evening.
It's using the Completions API from OpenAI (It's not the same model as ChatGPT so you won't get exactly the same results but you'll get the idea).
The Completions API is documented here: API Reference - OpenAI API
(Note to Sherm: There are curl samples! You could do a cute curl demo at Brown Bag!).
In the program attached, you'll need to init the API KEY virtual with your own api key you can find via: Account API Keys - OpenAI API
You can create a free account with limited API budget.
I have a paid account and ChatGPT Plus but sorry, not sharing 🙂
I didn't parametrize the various options in the request body and I didn't escape the prompt text in any way, it's just a demo.
So, unzip the attachment, import the program xml into Magic 4.9, run it, hit the Call Chat button and wait a few seconds.
Boom! Happy Groundhog Day!
"This is one time where television really fails to capture the true excitement of a large squirrel predicting the weather"
-----
Funny, I asked the same question. Got as far as you did.
Todd On 2/1/2023 4:52 PM, Roberto Ramirez Cervantes wrote:
Craig, |
|
Todd Baremore
Truly worthy of an "F". Thanks Craig.
toggle quoted message
Show quoted text
Todd On 2/2/2023 10:39 PM, Craig Martin
wrote:
|
|