{"id":14987154,"url":"https://github.com/asirihewage/pychatgpt-intl","last_synced_at":"2025-06-16T12:34:09.893Z","repository":{"id":65826888,"uuid":"594660644","full_name":"asirihewage/pyChatGPT-intl","owner":"asirihewage","description":"Enhanced ChatGPT Wrapper for Internationalization - Python","archived":false,"fork":false,"pushed_at":"2023-02-23T21:29:09.000Z","size":624,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T01:31:02.272Z","etag":null,"topics":["bot","chatbot","chatgpt","facebook","intl","language","nlp","pychatgpt","python","python3","telegram","translate","whatsapp"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyChatGPT-intl/","language":"Python","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-29T08:34:57.000Z","updated_at":"2023-11-15T23:03:43.000Z","dependencies_parsed_at":"2023-02-26T22:45:45.238Z","dependency_job_id":null,"html_url":"https://github.com/asirihewage/pyChatGPT-intl","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.3125,"last_synced_commit":"ad4ba090158f0adc3847f73ef234f248f6b939c1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/asirihewage/pyChatGPT-intl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FpyChatGPT-intl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FpyChatGPT-intl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FpyChatGPT-intl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FpyChatGPT-intl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asirihewage","download_url":"https://codeload.github.com/asirihewage/pyChatGPT-intl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2FpyChatGPT-intl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260162810,"owners_count":22968132,"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":["bot","chatbot","chatgpt","facebook","intl","language","nlp","pychatgpt","python","python3","telegram","translate","whatsapp"],"created_at":"2024-09-24T14:14:10.954Z","updated_at":"2025-06-16T12:34:09.858Z","avatar_url":"https://github.com/asirihewage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyChatGPT-intl\n![Package Size](https://img.shields.io/github/languages/code-size/asirihewage/pyChatGPT-intl)\n[![Snyk](https://snyk-widget.herokuapp.com/badge/pip/pyChatGPT-intl/badge.svg)](https://github.com/asirihewage/pyChatGPT-intl/actions/workflows/codeql.yml)\n[![CodeQL](https://github.com/asirihewage/pyChatGPT-intl/actions/workflows/codeql.yml/badge.svg)](https://github.com/asirihewage/pyChatGPT-intl/actions/workflows/codeql.yml)\n### Enhanced ChatGPT Wrapper for Internationalization - Python3\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 pip : https://pypi.org/project/pyChatGPT-intl/\n\n```bash\n pip install pyChatGPT-intl\n```\n\n## Usage/Examples\nFirst, you have to obtain your API key from OPENAI, then you can use it here.\n```python3\nfrom pyChatGPT-intl import PyChatGPTIntl\n\napi_key = \"sk-Z9bfKN34RT***********RtH4j0FCacAxD\"\ndesired_lang =\"si\"\n\nopts = {\n                \"model\": \"text-davinci-003\",\n                \"temperature\": 0.5,\n                \"max_tokens\": 100,\n                \"top_p\": 1,\n                \"frequency_penalty\": 0,\n                \"presence_penalty\": 0\n            }\n\npyChatGPTIntl = PyChatGPTIntl(api_key, desired_lang, opts)\nprint(pyChatGPTIntl.generate_text(\"ශ්‍රී ලංකාව ගැන මට විස්තරයක් කියන්න\"))\n\n```\n\n## API\ntext - Type: string (The text to be translated)\n\napi_key - Type: string (API Key obtained from OpenAI Developer Account)\n\nopts - Type: object (OpenAI Language Model and hyperparameters)\n\ndesired_lang - Type: string ( Must be `auto` or one of the codes (not case-sensitive) contained in [SUPPORTED_LANGUAGES.md](https://github.com/asirihewage/pyChatGPT-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/pyChatGPT-intl/blob/main/SUPPORTED_LANGUAGES.md)\n\n## Demo\n```shell\npython3 chatGPT-intl.py\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%2Fpychatgpt-intl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasirihewage%2Fpychatgpt-intl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasirihewage%2Fpychatgpt-intl/lists"}