turbogpt-pro


Nameturbogpt-pro JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryA python based wrapper for GPT-4 & GPT-3.5 PLUS.
upload_time2024-06-01 08:38:22
maintainerNone
docs_urlNone
authoryanjlee
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TurboGpt

#### A python based wrapper for GPT-4 & GPT-3.5 PLUS. 


### Youtube demo / tutorial
[![TurboGpt Tutorial](https://i.imgur.com/6tLLj7I.jpg)](https://www.youtube.com/watch?v=Ic69TsemE9g&ab_channel=blacksailslabs)

## Benefits and why.
There is currently no way to use GPT-4 outside the online chat.openai.com interface. This wrapper allows you to use GPT-4 in your own projects. \
the current API is extremely slow and even if you have premium it does not speed up the response time. TurboGpt does not use the API and instead uses the same interfaces as the chat.openai.com website.
This means that you can use GPT-4 and GPT-3.5 PLUS in your own projects without having to wait 20+ seconds for a response.

## Install

To use GPT-4 you need to have a GPT PLUS subscription. If you don't, you can get one [here](https://beta.openai.com/pricing).

```bash
pip install turbogpt
```

### Getting the PUID & ACCESS_TOKEN

#### REMEMBER YOU NEED TO HAVE CHAT GPT PLUS SUBSCRIPTION TO USE THIS LIBRARY
```
1. Head over to https://chat.openai.com/chat
2. Open the developer console (F12)
3. Go to the application tab
4. Go to local cookies
5. Copy the value of the _puid cookie
6. Go to the network tab and click on Fetch/XHR
7. hit refresh and locate the models request
8. Copy the value of the Authorization header after berear (ey....). (this is the ACCESS_TOKEN)
9. Paste the values into the .env file like so:

ACCESS_TOKEN=AUTHORIZATION HEADER
PUID=_puid
```

## Usage


Start a new session
```python
from turbogpt import TurboGpt

turbogpt = TurboGpt(model="gpt-4")  # or "text-davinci-002-render-sha" (default)(AKA GPT-3.5)
session = turbogpt.start_session()
q = turbogpt.send_message(input(">>> "), session)
print(q['message']['content']['parts'][0])
```
![image](https://i.imgur.com/lyNqjJp.png)

Resume existing session
```python
from turbogpt import TurboGpt

turbogpt = TurboGpt(model="gpt-4")  # or "text-davinci-002-render-sha" (default)(AKA GPT-3.5)
session = turbogpt.resume_session("uuid-uuid-uuid-uuid")
q = turbogpt.send_message(input(">>> "), session)
print(q['message']['content']['parts'][0])
```

## Info
```text
✅ - cloudflare bypassed
✅ - automatic refresh of _puid
✅ - GPT-4 Support
✅ - GPT-3.5 PLUS Support
✅ - GPT-3.5 Support (Free)
✅ - Fast
✅ - Easy to use
✅ - No API
✅ - No rate limits
✅ - No waiting
✅ - Back and forth conversation support
```

## TurboGpt-CLI
Check out a TurboGpt based CLI [here](https://github.com/daan-dj/TurboGpt-cli)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "turbogpt-pro",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "yanjlee",
    "author_email": "yanjlee@163.com",
    "download_url": "https://files.pythonhosted.org/packages/ea/fe/d87a0ec694a5c92f7caa189e94fc1eb8ed543d83c83c2946d211f01b50c6/turbogpt_pro-1.1.1.tar.gz",
    "platform": null,
    "description": "# TurboGpt\r\n\r\n#### A python based wrapper for GPT-4 & GPT-3.5 PLUS. \r\n\r\n\r\n### Youtube demo / tutorial\r\n[![TurboGpt Tutorial](https://i.imgur.com/6tLLj7I.jpg)](https://www.youtube.com/watch?v=Ic69TsemE9g&ab_channel=blacksailslabs)\r\n\r\n## Benefits and why.\r\nThere is currently no way to use GPT-4 outside the online chat.openai.com interface. This wrapper allows you to use GPT-4 in your own projects. \\\r\nthe current API is extremely slow and even if you have premium it does not speed up the response time. TurboGpt does not use the API and instead uses the same interfaces as the chat.openai.com website.\r\nThis means that you can use GPT-4 and GPT-3.5 PLUS in your own projects without having to wait 20+ seconds for a response.\r\n\r\n## Install\r\n\r\nTo use GPT-4 you need to have a GPT PLUS subscription. If you don't, you can get one [here](https://beta.openai.com/pricing).\r\n\r\n```bash\r\npip install turbogpt\r\n```\r\n\r\n### Getting the PUID & ACCESS_TOKEN\r\n\r\n#### REMEMBER YOU NEED TO HAVE CHAT GPT PLUS SUBSCRIPTION TO USE THIS LIBRARY\r\n```\r\n1. Head over to https://chat.openai.com/chat\r\n2. Open the developer console (F12)\r\n3. Go to the application tab\r\n4. Go to local cookies\r\n5. Copy the value of the _puid cookie\r\n6. Go to the network tab and click on Fetch/XHR\r\n7. hit refresh and locate the models request\r\n8. Copy the value of the Authorization header after berear (ey....). (this is the ACCESS_TOKEN)\r\n9. Paste the values into the .env file like so:\r\n\r\nACCESS_TOKEN=AUTHORIZATION HEADER\r\nPUID=_puid\r\n```\r\n\r\n## Usage\r\n\r\n\r\nStart a new session\r\n```python\r\nfrom turbogpt import TurboGpt\r\n\r\nturbogpt = TurboGpt(model=\"gpt-4\")  # or \"text-davinci-002-render-sha\" (default)(AKA GPT-3.5)\r\nsession = turbogpt.start_session()\r\nq = turbogpt.send_message(input(\">>> \"), session)\r\nprint(q['message']['content']['parts'][0])\r\n```\r\n![image](https://i.imgur.com/lyNqjJp.png)\r\n\r\nResume existing session\r\n```python\r\nfrom turbogpt import TurboGpt\r\n\r\nturbogpt = TurboGpt(model=\"gpt-4\")  # or \"text-davinci-002-render-sha\" (default)(AKA GPT-3.5)\r\nsession = turbogpt.resume_session(\"uuid-uuid-uuid-uuid\")\r\nq = turbogpt.send_message(input(\">>> \"), session)\r\nprint(q['message']['content']['parts'][0])\r\n```\r\n\r\n## Info\r\n```text\r\n\u2705 - cloudflare bypassed\r\n\u2705 - automatic refresh of _puid\r\n\u2705 - GPT-4 Support\r\n\u2705 - GPT-3.5 PLUS Support\r\n\u2705 - GPT-3.5 Support (Free)\r\n\u2705 - Fast\r\n\u2705 - Easy to use\r\n\u2705 - No API\r\n\u2705 - No rate limits\r\n\u2705 - No waiting\r\n\u2705 - Back and forth conversation support\r\n```\r\n\r\n## TurboGpt-CLI\r\nCheck out a TurboGpt based CLI [here](https://github.com/daan-dj/TurboGpt-cli)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A python based wrapper for GPT-4 & GPT-3.5 PLUS.",
    "version": "1.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db2e8961ba36da45a2de7a39f5b9ffa271a313aca80f31b17eea96c88fdb2156",
                "md5": "770c56908fd40e16f57adffc0212a8a2",
                "sha256": "78e7ae878bfd1793356bb915020b9791cc570e055d5f71d0ac1dec481f0f4731"
            },
            "downloads": -1,
            "filename": "turbogpt_pro-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "770c56908fd40e16f57adffc0212a8a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5896,
            "upload_time": "2024-06-01T08:38:21",
            "upload_time_iso_8601": "2024-06-01T08:38:21.146069Z",
            "url": "https://files.pythonhosted.org/packages/db/2e/8961ba36da45a2de7a39f5b9ffa271a313aca80f31b17eea96c88fdb2156/turbogpt_pro-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eafed87a0ec694a5c92f7caa189e94fc1eb8ed543d83c83c2946d211f01b50c6",
                "md5": "f7ef41659190a0b151fe1a2da3ede572",
                "sha256": "97a046589149934be64510a18b6136e1ea7d8d119e675524904a245be2cd3949"
            },
            "downloads": -1,
            "filename": "turbogpt_pro-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f7ef41659190a0b151fe1a2da3ede572",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5431,
            "upload_time": "2024-06-01T08:38:22",
            "upload_time_iso_8601": "2024-06-01T08:38:22.986611Z",
            "url": "https://files.pythonhosted.org/packages/ea/fe/d87a0ec694a5c92f7caa189e94fc1eb8ed543d83c83c2946d211f01b50c6/turbogpt_pro-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-01 08:38:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "turbogpt-pro"
}
        
Elapsed time: 0.39574s