Recent

Author Topic: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?  (Read 10299 times)

VisualLab

  • Sr. Member
  • ****
  • Posts: 290
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #60 on: January 08, 2023, 12:05:10 am »
I accept it is rudimentary...

No, it's complex and complicated.

...but the models from OpenAI are disinguished from being dumb:

Full agreement. Machines and algorithms can be neither smart nor stupid. At most, their constructors can be like that. Machines and algorithms can only be primitive or sophisticated. This one rather belongs to the latter category. But it's still just an automaton.

To me that is some form of intelligence. Not perfect - but intelligence is flawed by default- and this approach is certainly not new, but in the past very hard to implement. It still is.

But there's nothing intelligent about it. For now, it just searches, slices and sticks the provided content (simplifying). Complex automaton. Where's the learning from mistakes?

A much earlier example of the applied technology is:
Code: [Select]
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Na5 10. Bc2 c5 11. d4 Qc7 12. Nbd2 cxd4 13. cxd4 Nc6 14. Nf1 Bg4 15. Be3 Rac8 16. Qd2 Bxf3 17. Nxf3 Nd8 18. Nh4 Bf8 19. Nf5 Qe7 20. Nxg7 Kxg7 21. Bxh7+ Kxh7 22. Qh6+ Kg8 23. Qh7+ Kf8 24. Qh8+ Ke7 25. Qxg7+ Kd8 26. Bf4 Kc8 27. Re3 d5 28. exd5 Rcd7 29. Qf6 Kb8 30. Qxd8+ Rxd8 31. Bxd6 Rd6 32. Bf4 Rg6 33. Re7 Kc8 34. Rae1 Kd8 35. g3 Kc8 36. Kf1 Kd8 37. Re8+ Kc7 38. R8e7+ Kb6 39. Rd7 Kc5 40. Be3+ Kxd5 41. Bd4+ Kc6 42. Re6+ Kd7 43. Re7+ Kd6 44. Re6+ Kc7 45. Rc6+ Kb8 46. Rb6+ Kc8 47. Rd6 Kc7 48. Bxg7 Rd7 49. Rxd7+ Kxd7 50. Bf6 a5 51. Ke2 Kc6 52. Kd3 Kb5 53. Kc4 Ka4 54. Kb3 Kb4 55. Bb2+ Kc5 56. Kc3 Kd4 57. Bg7 a4 58. Bf6 a3 59. Kb3 Kc5 60. Be5 a2 61. Kxa2 1-0
Cudo's to the ones that know what I mean here  ::)

I was paralyzed and blinded on "2 Hail Marys" :)
« Last Edit: January 08, 2023, 12:07:03 am by VisualLab »

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #61 on: January 08, 2023, 12:13:56 am »
I give both you and Mark a riddle:

"The deep blue sea, in a huge wave, swallowed Casper's son and he sadly died".

Trust me, NOT machine generated, just my "I".
« Last Edit: January 08, 2023, 12:18:24 am by Thaddy »
Specialize a type, not a var.

VisualLab

  • Sr. Member
  • ****
  • Posts: 290
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #62 on: January 08, 2023, 01:02:56 am »
"The deep blue sea, in a huge wave, swallowed Casper's son and he sadly died".

A very beautiful haiku :)

speter

  • Sr. Member
  • ****
  • Posts: 345
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #63 on: January 08, 2023, 02:03:55 am »
Q: write a haiku in english, about casper's son
A:
Casper's son, lost
To the deep blue sea's raging cost
Gone, but not forgotten

:)
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #64 on: January 08, 2023, 09:54:59 am »
Ok, Ok, I will give the answer:
It is about chess.
It is the ninth game between Garry Kasparov and Deep Blue, which Kasparov lost and so Deep Blue was the winner of this tournament. Much to Caspar's son chagrin... He did not see that coming at the time.
OpenAI was even able to point out where he lost: move 23 was already the killer blow, Kasparov only gave up because anyone can see he would have lost in two moves and much later.
Deep Blue is an IBM super computer (well super at the time)
Kasparov means son of Kaspar.(Or Caspar/Casper)
Apart from the two unplayed moves I have no clue what was happening after move 23.
Deep blue was trained on a large amount of data, but under the rules could not do any database look-ups.
One of the best examples where AI outperformed very talented human skills to this day.

I do like the Haiku's! All should lead a chess player to the same conclusion as I explained above.

https://en.wikipedia.org/wiki/Deep_Blue_(chess_computer)
« Last Edit: January 08, 2023, 10:20:57 am by Thaddy »
Specialize a type, not a var.

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #65 on: January 12, 2023, 04:57:20 pm »

They don't /understand/. Understanding is a sentient prerogative, and they're not.


I believe that not to be true entirely.
I believe that understanding as we "perceive it" is a sentient prerogative.
I believe there to be levels of "understanding" on a sliding scale.

Off course this also depends on how you define understanding.
But I prefer a wider definition because otherwise I would lack a proper word for the non sentient kind....

The same counts for "intelligence" or "emotions".
(Study animals, or even plants, and you know what I mean)


 
 
« Last Edit: January 12, 2023, 05:04:02 pm by Webdrifter »

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #66 on: January 31, 2023, 08:55:30 pm »
Hello.

Yep, OpenAI will recognize OpenAI (or not)  ;)
https://openai.com/blog/new-ai-classifier-for-indicating-ai-written-text/
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #67 on: April 03, 2023, 06:50:25 pm »
Hello friends, thank you very much for sharing your knowledge, as of today (04-03-2023) when using the thaddy friend's code I get:

Code: Pascal  [Select][+][-]
  1. {
  2.     "error": {
  3.         "message": "You exceeded your current quota, please check your plan and billing details.",
  4.         "type": "insufficient_quota",
  5.         "param": null,
  6.         "code": null
  7.     }
  8. }

On the web it works normally, only with the Lazarus app it doesn't work
can it be solved?  :(
« Last Edit: April 03, 2023, 07:01:26 pm by Ericktux »

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #68 on: April 03, 2023, 07:26:03 pm »
Hello.

Yep, OpenAI will recognize OpenAI (or not)  ;)
https://openai.com/blog/new-ai-classifier-for-indicating-ai-written-text/

Not accurate. I tested my articles and they returned to be created by AI.  :o
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Roland57

  • Sr. Member
  • ****
  • Posts: 421
    • msegui.net
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #69 on: April 03, 2023, 07:37:32 pm »
Absolutely nothing to give a damn about OpenAI. I put people who talk about OpenAI on my list of people to ignore.
My projects are on Gitlab and on Codeberg.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #70 on: April 03, 2023, 08:04:42 pm »
I put people who talk about OpenAI on my list of people to ignore.

Ok but all the others who don't talk about it are the ones who use it.
 ;)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #71 on: April 03, 2023, 09:42:58 pm »
I have created another api again and the same error continues, perhaps in the client apps created by lazarus this limitation is given, because the web version continues to work normally.
Has anyone else had the same problem?
Or is it that now there is no free version and it is necessary to pay  :(

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #72 on: April 03, 2023, 10:55:07 pm »
There are now some costs associated with using ChatGPT in certain contexts.

https://openai.com/pricing
« Last Edit: April 03, 2023, 11:28:55 pm by ASBzone »
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #73 on: April 03, 2023, 11:01:34 pm »
Absolutely nothing to give a damn about OpenAI. I put people who talk about OpenAI on my list of people to ignore.

Ah, Men! Brother! 8-)
The only true wisdom is knowing you know nothing

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Has anyone used Free Pascal to connect with chatGPT (OpenAI)?
« Reply #74 on: April 03, 2023, 11:28:01 pm »
Absolutely nothing to give a damn about OpenAI. I put people who talk about OpenAI on my list of people to ignore.

What is the wisdom in that?

There are plenty of topics that happen in these forums that either don't interest me personally or professionally, or are not things I need to focus on at this time.   I'm certain this is true for pretty much everyone here.

How noisy and unproductive it would be, if we jumped into every thread that did not appeal or make sense to us, and proclaim its uselessness!
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

 

TinyPortal © 2005-2018