{"id":13562299,"url":"https://github.com/Pisush/chatGPT-plugin-template","last_synced_at":"2025-04-03T18:33:17.491Z","repository":{"id":152933566,"uuid":"619185859","full_name":"Pisush/chatGPT-plugin-template","owner":"Pisush","description":"For Gophers","archived":false,"fork":false,"pushed_at":"2023-03-26T21:21:33.000Z","size":171,"stargazers_count":63,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T21:38:00.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pisush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-26T14:23:11.000Z","updated_at":"2023-12-05T22:01:01.000Z","dependencies_parsed_at":"2023-07-07T07:32:33.773Z","dependency_job_id":null,"html_url":"https://github.com/Pisush/chatGPT-plugin-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pisush%2FchatGPT-plugin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pisush%2FchatGPT-plugin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pisush%2FchatGPT-plugin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pisush%2FchatGPT-plugin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pisush","download_url":"https://codeload.github.com/Pisush/chatGPT-plugin-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247057005,"owners_count":20876495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:06.860Z","updated_at":"2025-04-03T18:33:12.483Z","avatar_url":"https://github.com/Pisush.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# chatGPT-plugin-template\nFor Gophers!\n\n\n-------\n\n\nHere are some motivational screenshots:\n\n\u003cimg width=\"685\" alt=\"Screenshot 2023-03-26 at 20 35 16\" src=\"https://user-images.githubusercontent.com/7592392/227796730-1bbaef6e-b8b7-487c-8b1b-6273e75e7af8.png\"\u003e\n\n\u003cimg width=\"1286\" alt=\"Screenshot 2023-03-26 at 20 34 21\" src=\"https://user-images.githubusercontent.com/7592392/227796699-8253da12-4b73-4e32-b22e-fe5a3bd5d289.png\"\u003e\n\n\n-------\n\n\n## What are ChatGPT plugins?\nIn 2 sentences: It's a way to enable ChatGPT to use your app's API. You share the specs, and it can translate a query from the end user to an API call.\nThe full answer is available [here](https://openai.com/blog/chatgpt-plugins). ATM it's in limited alpha.\n\n\n-------\n\n\n## Steps for Building a ChatGPT Plugin Based on Your Go Web Server\nYou need to add at least 2 files from root:\n1. Add and edit the file `openapi.yaml`\n2. Add and edit the file `.well-known/ai-plugin.json` (you might need to sudo this)\nAs comments are not allowed in a JSON file, check out `ai-plugin_example.md` for some more details on structuring this file\n3. As a sanity check, double check the paths from file 1 match the endpoints from path 2, and that you changed all the ngrok URLs to your URLs.\n4. execute: `$ go run main.go`\n5. Add the plugin via the ChatGPT UI by going to the Plugin Store -\u003e Install An Unverified Plugin, and insert the top website domain\n\n### FYI\n- If you are running in localhost, use a tunneling tool like ngrok to expose the files. Change in `openapi.yaml` and in `.well-known/ai-plugin.json`. And your `main.go` can remain on localhost.\n- As long as the plugin is unverified, max 15 people can install the plugin\n\n-------\n\n\n## Debug\n**Problem:**\nYou can't access the `.well-known/ai-plugin.json` file, it might be a permissions issues.\n\n**Solution:**\nGo to the root of the repo (e.g. `~/Projects/chatGPT-plugin-template`) and run `ls -la`. If you see that the permissions for the `.well-known` folder look different - make it the same.\n\n-------\n\n**Problem:**\nYou are running on localhost and the file `.well-known/ai-plugin.json` exists in the right place, but the ChatGPT Plugin UI can't find a manifest.\n\n**Solution:**\nUse a tunneling tool like ngrok to expose the files. Change to the ngrok url in `openapi.yaml` and in `.well-known/ai-plugin.json`. And your `main.go` can remain on localhost.\n\n-------\n\n**Problem:**\nYou have successfully added the plugin but it shows an empty field.\n\n**Solution:**\nGet your hands dirty to make the prompt engineering easy: change the descriptions and use more keywords for the different actions, do this in the files: `openapi.yaml` and  `.well-known/ai-plugin.json`.\n\n-------\n\n**Problem:**\nThe plugin was added successfully, but returns the error `ResponseTooLargeError`\n\n**Solution:**\nThe response is limited at 100k characters. If your response is designed to be smaller, it can be that there's an error in the API and it's just returning the entire website. This is mostly common at private projects where security measurements are not in place.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPisush%2FchatGPT-plugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPisush%2FchatGPT-plugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPisush%2FchatGPT-plugin-template/lists"}