Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here is ChatGpt in 50 lines of Python:

https://gist.github.com/avelican/4fa1baaac403bc0af04f3a7f007...

No dependencies, and very easy to swap out for OpenRouter, Groq or any other API. (Except Anthropic and Google, they are special ;)

This also works on the frontend: pro tip you don't need a server for this stuff, you can make the requests directly from a HTML file. (Patent pending.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: