{"id":15304820,"url":"https://github.com/asirihewage/chatgpt-intl","last_synced_at":"2025-04-15T00:52:32.858Z","repository":{"id":65311915,"uuid":"589465621","full_name":"asirihewage/chatGPT-intl","owner":"asirihewage","description":"Enhanced ChatGPT Wrapper for Internationalization - NodeJS","archived":false,"fork":false,"pushed_at":"2024-01-10T10:58:56.000Z","size":806,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T00:52:17.818Z","etag":null,"topics":["chatgpt","inttl","language","nodejs","support","wrapper"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/chatgpt-intl","language":"JavaScript","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/asirihewage.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":"SECURITY.md","support":"SUPPORTED_LANGUAGES.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-16T07:23:27.000Z","updated_at":"2024-06-30T08:05:38.000Z","dependencies_parsed_at":"2024-10-01T07:58:12.342Z","dependency_job_id":"cb8fe6ac-c7fc-4bd2-bc78-db3d3c60d360","html_url":"https://github.com/asirihewage/chatGPT-intl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FchatGPT-intl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FchatGPT-intl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FchatGPT-intl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FchatGPT-intl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asirihewage","download_url":"https://codeload.github.com/asirihewage/chatGPT-intl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986278,"owners_count":21194025,"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":["chatgpt","inttl","language","nodejs","support","wrapper"],"created_at":"2024-10-01T07:58:10.327Z","updated_at":"2025-04-15T00:52:32.840Z","avatar_url":"https://github.com/asirihewage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatGPT-intl\n![Version](https://img.shields.io/github/package-json/v/asirihewage/chatgpt-intl)\n![Package Size](https://img.shields.io/github/languages/code-size/asirihewage/chatGPT-intl)\n### Enhanced ChatGPT Wrapper for Internationalization - NodeJS\nThis NodeJS module acts as a wrapper for ChatGPT API and will help you to use ChatGPT in your own language.\n![Logo](res/logo.jpg)\n\n## Installation\n\nInstall chatgpt-intl via npm : https://www.npmjs.com/package/chatgpt-intl\n\n```bash\n  npm i chatgpt-intl\n```\n\n## Usage/Examples\nFirst, you have to obtain your API key from OPENAI, then you can use it here.\n```javascript\nimport ChatGPTIntl from 'chatgpt-intl';\nimport dotenv from \"dotenv\";\ndotenv.config();\n\nconst text = \"ChatGPT ගැන කියන්න\"\nconst openAiKey = process.env.openAiKey\nconst lang = 'si';\nconst opts = {\n    model: \"text-davinci-003\",\n    temperature: 0.9,\n    max_tokens: 150,\n    top_p: 1,\n    frequency_penalty: 0.0,\n    presence_penalty: 0.6\n};\n\n\nChatGPTIntl(text, openAiKey, opts, lang).then((res) =\u003e {\n    console.log(res);\n}).catch((er)=\u003e {\n    console.log(er);\n});\n```\n\n## API\ntext - Type: string (The text to be translated)\n\nopenAiKey - Type: string (API Key obtained from OpenAI Developer Account)\n\nopts - Type: object (OpenAI Language Model and hyperparameters)\n\nlang - Type: string ( Must be `auto` or one of the codes (not case sensitive) contained in [SUPPORTED_LANGUAGES.md](https://github.com/asirihewage/chatGPT-intl/blob/main/SUPPORTED_LANGUAGES.md).)\n\n## Features\n\n- Use ChatGPT API in your own language\n- Ability to customize the chatGPT model\n- Supports more than 50 languages\n\n## Limitations\n\n- Does not support for syntax and codes\n- Does not support larger text inputs\n\n## Language Support\nSupported language codes contained in [SUPPORTED_LANGUAGES.md](https://github.com/asirihewage/chatGPT-intl/blob/main/SUPPORTED_LANGUAGES.md)\n\n## Demo\n```shell\nnpm run demo\n```\nSample App I created.\n![Demo](res/demo.jpg)\n\n## Authors\n\n- [@asirihewage](https://github.com/asirihewage)\n\n## Contributions\n\n- Issues and feature updates are welcome.\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasirihewage%2Fchatgpt-intl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasirihewage%2Fchatgpt-intl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasirihewage%2Fchatgpt-intl/lists"}