Python is low-class. Switching to TypeScript

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In today's video I start re-implementing my GPT-AutoPilot project in TypeScript, without function calling in order to be able to use it with open source models and fine tune it.
    TS-AutoPilot: github.com/unconv/ts-autopilot
    GPT-AutoPilot: github.com/unconv/gpt-autopilot
    Support: buymeacoffee.com/unconv
    Consultations: www.buymeacoffee.com/unconv/e...
    Memberships: www.buymeacoffee.com/unconv/m...
    00:00 Intro
    02:20 Getting started with TypeScript
    05:25 Using ChatGPT API with TypeScript
    07:12 Adding a run script
    07:59 Creating a system message
    13:04 Running multiple actions in a loop
    28:12 TypeScript magic
    35:10 Fixing empty files
    39:00 Fixing filename parsing
    44:01 Reading user prompt from stdin
    51:19 Fixing filename parsing (again)
    53:26 Fixing Markdown ticks
    58:30 Fixing filename parsing (again 2)
    01:01:08 It almost works...
    01:04:45 It works! (with GPT-4)
  • Věda a technologie

Komentáře • 16

  • @andersk
    @andersk Před 5 měsíci +2

    Missed your videos! Please don't stop - your coding is truly unconventional but I think it's the best stuff on youtube right now and you're my favourite coding channel

    • @TheVisitorX
      @TheVisitorX Před 5 měsíci

      I agree!!! I have missed it, too!

    • @unconv
      @unconv  Před 5 měsíci

      Thank you!

  • @3wcdev878
    @3wcdev878 Před 5 měsíci

    Python actually has runtime type checking, typescript it's just a nice linter.

  • @billybofh2363
    @billybofh2363 Před 5 měsíci

    I can see the merchandise store now with t-shirts and mugs saying "Let's run this one last time!" :-)

  • @billybofh2363
    @billybofh2363 Před 5 měsíci

    Incidentally - if you haven't already recorded the follow up's - using the open source models via 'AnyScale' is really easy as their API is a drop-in for openai's - so you just change the base url parameter and you're good to go!

    • @unconv
      @unconv  Před 5 měsíci +1

      I haven't, thanks! I'll try it out

  • @anfiiaidev
    @anfiiaidev Před 5 měsíci

    Can we use gemini pro as they also have the function calling. If you could make a tutorial for that. OR a guide will be helpful

    • @unconv
      @unconv  Před 5 měsíci

      I tested out Gemini function calling earlier and it wasn't very promising. Maybe I'll try it once more with the GPT-AutoPilot prompts

  • @ea02ca6f
    @ea02ca6f Před 6 měsíci +1

    😇

  • @ea02ca6f
    @ea02ca6f Před 6 měsíci

    this is perfect.

  • @ea02ca6f
    @ea02ca6f Před 6 měsíci +1

    please keep using typescript!!

    • @Leeway4434
      @Leeway4434 Před 5 měsíci

      python isn't low class some of the highest paid engineers in the world at open ai use python

    • @Leeway4434
      @Leeway4434 Před 5 měsíci

      btw python has optional static typing and linting with mypy

    • @shadmansudipto7287
      @shadmansudipto7287 Před 5 měsíci

      @@Leeway4434 optional static typing which does not solve any issues because most libraries you will use don't implement it. Also you can't even change code while debugging or move execution to a different line, which makes testing so difficult. Even compiled languages can do this, yet python, even though it's interpreted, cannot.