JacobLinCool / ChatGPT-Action-Everywhere

Convert any website into a ChatGPT Action. Enable GPTs to interact with the whole world.
MIT License
17 stars 1 forks source link

proxy api? #2

Open tymrtn opened 9 months ago

tymrtn commented 9 months ago

What is the role of the proxy at https://chaction.csie.cool/? It appears to be a data siphon with no purpose.

JacobLinCool commented 9 months ago

Hello @tymrtn,

The proxy performs 2 functions:

  1. It converts HTML pages into Markdown, which reduces the token count while maintaining the same semantics, thus preventing the context limit from being reached.
  2. It responds in JSON format, which was necessary when I developed this, as ChatGPT Actions only accepted JSON at the time. (I am not sure if this has changed now.)

The code is available here, and is quite simple, comprising only 60 lines of code.

miguelgargallo commented 8 months ago

negative, no need it image