DeepSeek is much cheaper than OpenAI and it offers the same AI quality.
You have to register in DeepSeek site and get your API key. Then from a cmd window do:
set DEEPSEEK_API_KEY=sk-...
sample of use:
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oChat := TDeepSeek():New()
oChat:Send( "Using MySQL how to list all tables ? write just the simplest SQL sentence, no explanations" )
? oChat:GetValue()
oChat:End()
return nil