This is a ChatGPT to API and ChatGPT Augmentation System. This enables a few things primarily:
- You can use your ChatGPT as a local API. This is for ChatGPT power users and not for automated / bot activity.
- Enabled ChatGPT to run client side code.
- Augment CHatGPT capabilities with a dynamic growing set of abilities known as the Mecha Corp system.
- My greater goal is really even even more about extending human capability.
Warning: There is no code containment nor safety. Be extremely careful. Run at own risk! Do not use for production. You are responsible for any and all damages. Risk of running unsandbox client side code are numerous but for example if you were using a browser extension, it might be possible for someone to poison a URL and evoke code on your maachine.
Caution: The Javascript code monitors your chat to send to your local running host.
Cuation: System is still extremely tricky and bug prone.
- Extend its's capabilities by adding persistence
- Accesss to any and all Python modules / functions
- Create more efficient work flows. Example, it can create the entire file system for a project vs. copy/paste.
- Ability to parse local data / large data without having to zip it.
- Capture workflow better and other many other benefits.
- It can act more as a conscious etension / OS extension. Some really transformative potential.
- Augmented engine structure for creating and getting augmented capabilities in a standardized way vs temporary work functions.
- Task manage / to-do lists for state tracking
- Logging capability for large file processing and "memory tracking"
- Preview file capabilities
- Prompt / Instruction Chains
- Add web scraping capability for general research assistant.
- Add document store / stacks for research.
- Create capability to ask an "out of context" AI queries for multi-modal like ChatGPT, Bard, llama code, etc for error correction
- Add new capabilities like voice
- Add streaming and recording for automatic creation local markdowns
- Add project creation automation for files system creation
- System consist of Tamper Monkey JS. Must install the JS into TamperMonkey.
- A Flask Python server
- Python work file that acts as a dynamic persistent augmented capabilities extension. Work is also piped into this which can be periodically changed out via template.
- Work is piped to a ipynb for the user but not executed.
- Install the TamperMonkey script.
- Start Python Flask Server
- ChatGPT will be able to run code on client side by emitting a codeblock with # pyclient comment. It must be a code block. Multiple code blocks can be processed.
- Work.py file has the Mecha Corp extensions and also acts as a work file where Python can be piped.
- The button regenerate/continue button must be visible for the injection to work.
- The server restart / reload code likely is not working properly.
- You will likely need to keep work.py open in Visual Studio to triage.
- It is intended to be used with Code Interpreter model. Prompting to get it to understand the new capabilities is not always easy. Prompts will be coming soon.
Originally the intention was to use Jupyter notebook for the augmentated capabilities. It was always tantalizing close to working. But, I ran into too many problems with slow execution or other problems so the augmentated capabilities was shifted to Python dynamic file. See the work and template.
Because we processes server-side tags to run code, it is theoretically possible a poisioned URL to execute code if accessed via ChatGPT. This is a remote risk. However, for stronger security, you can change the # pyclient tag to a unique identifier.
Special thanks & See Also Similar Project: https://github.com/zsodur/chatgpt-api-by-browser-script