- Ensure your application is running and accessible via the No-IP subdomain.
- Use the following URL format to call the OpenAPI schema:
https://<your-subdomain>/v3/api-docs
- Replace
<your-subdomain>
with your actual No-IP subdomain. - You should see the OpenAPI schema in JSON format, if not click in your browser on raw data.
- Save this json to a file, you will need it.
- Log in to the ChatGPT web interface.
- Navigate to the Custom GPT section.
- Click on Create Custom GPT.
- In the Custom GPT creation interface, find the section to upload or paste your OpenAPI schema.
- Copy the OpenAPI schema from the URL (as mentioned above) and paste it into the provided field.
- It might show an error message, but if you scroll down you should see file api action, then everything is fine.
- Open the premade Custom GPT prompt.
- Copy the entire content of this file.
- Feel free to customize the prompt to fit your needs.
- In the Custom GPT creation interface, find the section to configure the prompt.
- Paste the copied prompt into the provided field.
- Give it the API key from your current project (apikey.txt) in the chat on the right.
- Tell it to call the systeminfo endpoint to check if everything works.
- Complete the remaining configuration steps as required by the ChatGPT interface.
- Do not publish the custom GPT. It is connected with your Computer. Keeping it unpublished ensures that it remains private and only accessible to you.
- Once your Custom GPT is set up, navigate to the Chats section in the ChatGPT interface.
- Select your custom GPT from the list of available custom GPTs and start a new chat, just say hi.
- When prompted for an API key, use the key generated for your project. You can find this key in your
apikey.txt
file. - You can have as many projects as you like, each has their own API key and with each chat, it asks you for the API key to use.
- Use an online curl service to test if the OpenAPI schema is accessible via your No-IP subdomain:
curl https://<your-subdomain>/v3/api-docs
- Ensure that the schema is returned correctly in JSON format.
- Use online DNS propagation checking tools to ensure your No-IP subdomain is properly propagated.
- If the DNS has not propagated, wait for a few minutes and test again.
If you encounter any issues, refer to the application logs and ensure all configurations are set correctly.
- Make sure the ChatGPT File and Command Center is currently running
- Remind it of the correct API key to use and to add it to the URL path.
- Investigate the log of the application (console, where you started it, or ./logs/chatgpt-command-and-control-center.log)