ykdojo / kaguya

A ChatGPT plugin that allows you to load and edit your local files in a controlled way, as well as run any Python, JavaScript, and bash script.
http://kaguya.ai/
MIT License
1.2k stars 191 forks source link

Integrating Kaguya as a GPTs Action Due to HTTP/HTTPS Mismatch #44

Open goldengrape opened 10 months ago

goldengrape commented 10 months ago

I am attempting to integrate Kaguya with GPTs as an action, but I am encountering an issue related to the HTTP and HTTPS protocols.

Steps to Reproduce:

  1. I ran the Kaguya plugin and successfully accessed it at http://localhost:3000.
  2. I copied the contents from http://localhost:3000/openapi.yaml and pasted it into GPTs actions.
  3. Upon doing so, I received the following warnings:

    Warnings
    None of the provided servers is under the root origin https://localhost
    Server URL http://localhost:3000 is not under the root origin https://localhost; ignoring it

Issue: It appears that there is a protocol mismatch issue, as Kaguya is running on HTTP and GPTs actions seem to require HTTPS. As a result, the server URL is being ignored due to not being under the root origin https://localhost.

Questions:

  1. Has anyone successfully integrated Kaguya as an action in GPTs?
  2. Although Kaguya is originally intended as a ChatGPT plugin, I believe there should be a close similarity in its integration with GPTs. If it is indeed feasible to run it as a GPTs action, how should the yaml be modified to address the HTTP/HTTPS protocol mismatch?

Any guidance or suggestions on resolving this issue would be greatly appreciated. Thank you for your support and for the development of this innovative tool.

Best regards,

nailuoGG commented 10 months ago

You should deploy your service to the public internet