This project provides two tools (The two are conflicting):
- mitmproxy addon scripts, which can be added when executing mitmproxy/mitmweb
- (mitmweb only) Tampermonkey script
git clone https://github.com/slow-groovin/mitmproxy-llm-better-view.git
Add persistent configuration in ~/.mitmproxy/config.yaml
:
# ... your other configs
scripts:
- <dir path>\addon\openai_req.py
- <dir path>\addon\openai_res.py
- <dir path>\addon\openai_res_sse.py
You can also specify the scripts at launch using the
-s
parameter:mitmweb -s .\openai_req.py -s .\openai_res.py -s .\openai_res_sse.py
visit and install:
https://greasyfork.org/scripts/540917-mitmproxy-llm-better-view
This uses mitmproxy's contentviews to convert the request body and response content of OpenAI API into Markdown format for better viewing.
Uses JS to fetch data on the page, render it as static HTML, and embed it into the page via an iframe.