Believe previous thread hi-jacked enough with chatGPT posts. But I am curious. At work [which has blocked all access to chatGPT endpoints, so my PS script cannot execute]... there is a lot of talk about "training' data and they point out to what is intended as the best OSS
https://github.com/Decentralised-AI/falcon-40b/blob/main/README.mdPretty interesting reading... but now back to the subject. I did put together a simple GUI with 2 radio buttons got (1) GPT (2) CoPilot... something I was just playing around with ... but the question was brought up about using chat to help with Winbatch [or other code]... a few posts were made about this on the other thread which illustrated that chat understood a little about WB.
So I decided to push it [hoping to get back more specifics about 'training' WB for chat]
so I asked a question based on one of the latest WB features - the map
write winbatch code to create a map for months of the year with numeric value as keymy GPT came back with:
monthsMap = CreateObject("Scripting.Dictionary")
monthsMap.Add(1, "January")
monthsMap.Add(2, "February")
monthsMap.Add(3, "March")
monthsMap.Add(4, "April")
monthsMap.Add(5, "May")
monthsMap.Add(6, "June")
monthsMap.Add(7, "July")
monthsMap.Add(8, "August")
monthsMap.Add(9, "September")
monthsMap.Add(10, "October")
monthsMap.Add(11, "November")
monthsMap.Add(12, "December")
and the Copilot [same question]
@echo off
setlocal
rem Create a map for months of the year with numeric value as key
set "months[1]=January"
set "months[2]=February"
set "months[3]=March"
set "months[4]=April"
set "months[5]=May"
set "months[6]=June"
set "months[7]=July"
set "months[8]=August"
set "months[9]=September"
set "months[10]=October"
set "months[11]=November"
set "months[12]=December"
echo %months[1]%
echo %months[2]%
echo %months[3]%
echo %months[4]%
echo %months[5]%
echo %months[6]%
echo %months[7]%
echo %months[8]%
echo %months[9]%
echo %months[10]%
echo %months[11]%
echo %months[12]%
endlocal
If you have read this far, I trust you understand this not a negative post. It is just these chat bots harvest known information so maybe a year from now the query would return results that more approximate WB code style. Or, maybe 'training' comes in to short-circuit the time. Just fascinating.