8000 GitHub - greg-randall/gpt-html: Takes a fragment of a webpage and uses ChatGPT to edit for brevity/clarity/etc while cleaning up and maintaining HTML.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Takes a fragment of a webpage and uses ChatGPT to edit for brevity/clarity/etc while cleaning up and maintaining HTML.

Notifications You must be signed in to change notification settings

greg-randall/gpt-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Takes a fragment of a webpage and uses ChatGPT to edit for brevity/clarity/etc while cleaning up and maintaining HTML.

Install the required stuff from composer: composer install

Copy the file 'blank_keys.php' & rename it 'keys.php' and fill in your OpenAi key.


  1. Cleans your HTML input.
  2. Converts the HTML to Markdown (ChatGPT seems to be much better at editing Markdown than HTML, seems to think all requests that are full of HTML are about HTML and not content).
  3. Passes the Markdown to ChatGPT for editing (Check out the variable '$prompt' to edit the prompt.
  4. Converts the Markdown back to HTML,
  5. Cleans the HTML once more.
  6. Output before and afters, diff, cost, etc!

Please note that this sends data to both DirtyMarkup for HTML formatting and of course sends your data off to OpenAI.

About

Takes a fragment of a webpage and uses ChatGPT to edit for brevity/clarity/etc while cleaning up and maintaining HTML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0