Python is low-class. Switching to TypeScript
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
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
I agree!!! I have missed it, too!
Thank you!
Python actually has runtime type checking, typescript it's just a nice linter.
I can see the merchandise store now with t-shirts and mugs saying "Let's run this one last time!" :-)
😂
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!
I haven't, thanks! I'll try it out
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
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
😇
this is perfect.
please keep using typescript!!
python isn't low class some of the highest paid engineers in the world at open ai use python
btw python has optional static typing and linting with mypy
@@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.