{"id":15160002,"url":"https://github.com/pannh/ai-definer","last_synced_at":"2025-04-07T17:39:24.888Z","repository":{"id":253846430,"uuid":"844711064","full_name":"PannH/ai-definer","owner":"PannH","description":"A Go API used to generate definitions of terms \u0026 phrases using the OpenAI chat completion API.","archived":false,"fork":false,"pushed_at":"2024-08-19T20:42:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T19:45:44.630Z","etag":null,"topics":["api","chat-completion","chatgpt","definer","definition","dictionary","go","golang","language","openai"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PannH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T20:20:33.000Z","updated_at":"2024-08-19T20:42:51.000Z","dependencies_parsed_at":"2024-08-20T00:02:19.971Z","dependency_job_id":null,"html_url":"https://github.com/PannH/ai-definer","commit_stats":null,"previous_names":["pannh/ai-definer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PannH%2Fai-definer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PannH%2Fai-definer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PannH%2Fai-definer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PannH%2Fai-definer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PannH","download_url":"https://codeload.github.com/PannH/ai-definer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247699767,"owners_count":20981609,"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":["api","chat-completion","chatgpt","definer","definition","dictionary","go","golang","language","openai"],"created_at":"2024-09-26T22:03:37.026Z","updated_at":"2025-04-07T17:39:24.870Z","avatar_url":"https://github.com/PannH.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Definer\nAI Definer is an API that allows you to get the definition of terms and phrases using the OpenAI chat completion API (model `gpt-3.5-turbo`).\n\n## Usage\nTo use AI Definer, firstly set your OpenAI API key in a `.env` file (see [`.env.example`](./.env.example)).\n\nThen, run the API using the following command :\n```bash\ngo run .\\main\\main.go\n```\n*The API will be available at http://localhost:8080/.*\n\nTo compile the API, use the following command :\n```bash\ngo build -o ai-definer.exe .\\main\\main.go\n```\n\n## Example\n#### Request\n```\nGET /definition/en/cake\n```\n#### Response\n```json\n{\n  \"definition\": \"A sweet baked food made from a mixture of flour, sugar, eggs, and other ingredients, usually with a sweetening agent such as honey or sugar.\",\n  \"lang\": \"en\",\n  \"pronunciation\": \"keɪk\",\n  \"term\": \"cake\",\n  \"type\": \"noun\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpannh%2Fai-definer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpannh%2Fai-definer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpannh%2Fai-definer/lists"}