The recently introduced function call feature in the chat completions API is very exciting. As I started to explore it, I realized how this could result in a full plugin ecosystem for API powered apps, similar to ChatGPT Plus.
I played around and built a toy chat application and implemented a plugin framework in it. I also added some basic plugins like the web browsing plugin and Python code interpreter plugin.
I wrote a tutorial explaining how I did this. It shows how to build a simple chat application in Flask and then design a framework for plugins, ending with implementations of a web search plugin and a Python code interpreter plugin.