Vals using lodash
The beginnings of a val town implementation of the approach to declarative sqlite migrations laid out in this post: Simple declarative schema migration for SQLite
ChatGPT Plugin for Val Town
Run code on Val Town from ChatGPT.
Usage
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.
Limitations
This plugin currently only has unauthenticated access to POST /v1/eval, which basically means that all it can do is evaluate JavaScript or TypeScript.
In theory it could refer to any existing vals in Val Town, but it wouldn't know about those unless you told it.
Future directions
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.
Installation
- Select GPT-4 (requires ChatGPT Plus)
- Click
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
https://stevekrouse-chatGPTPlugin.express.val.run
- Click through the prompts until it's installed