Run code on Val Town from ChatGPT.
I haven't been able to get it to do very useful things yet. It certainly can evaluate simple JS code:
It would be awesome if it knew how to use other APIs and make
fetch calls to them, but it has been failing at that.
In theory it could refer to any existing vals in Val Town, but it wouldn't know about those unless you told it.
Once we have more robust APIs to search for existing vals, this plugin could be WAY more valuable! In theory GPT4 could first search for vals to do a certain task and then if it finds one it could then write code based on that val. In practice however, that might require too many steps for poor GPT. We might need to use some sort of agent or langchain thing if we wanted that sort of behavior.
Adding authentication could also enable it to make requests using your secrets and private vals and create new vals for you. However I am dubious that this would actually be practically useful.
- Select GPT-4 (requires ChatGPT Plus)
No plugins enabled
- Click "Install an unverified plugin" or "Develop your own plugin" (I'm not sure the difference)
- Paste in this val's express endpoint
- Click through the prompts until it's installed