EdgeGPT


NameEdgeGPT JSON
Version 0.13.2 PyPI version JSON
download
home_pagehttps://github.com/acheong08/EdgeGPT
SummaryReverse engineered Edge Chat API
upload_time2023-08-03 13:38:34
maintainer
docs_urlNone
authorAntonio Cheong
requires_python
licenseThe Unlicense
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            > # This project has been archived. Due to personal circumstances, I lack the time to maintain this repository.

<div align="center">
  <img src="https://socialify.git.ci/acheong08/EdgeGPT/image?font=Inter&language=1&logo=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F9%2F9c%2FBing_Fluent_Logo.svg&owner=1&pattern=Floating%20Cogs&theme=Auto" alt="EdgeGPT" width="640" height="320" />

# Edge GPT

_The reverse engineering the chat feature of the new version of Bing_

<a>English</a> -
<a href="./README_zh-cn.md">简体中文</a> -
<a href="./README_zh-tw.md">繁體中文</a> -
<a href="./README_es.md">Español</a> -
<a href="./README_ja.md">日本語</a>

</div>

<p align="center">
  <a href="https://github.com/acheong08/EdgeGPT">
    <img alt="PyPI version" src="https://img.shields.io/pypi/v/EdgeGPT">
  </a>
  <img alt="Python version" src="https://img.shields.io/badge/python-3.8+-blue.svg">
  <img alt="Total downloads" src="https://static.pepy.tech/badge/edgegpt">

</p>

<details open>

<summary>

# Setup

</summary>

## Install package

```bash
python3 -m pip install EdgeGPT --upgrade
```

## Requirements

- python 3.8+
- A Microsoft Account with access to <https://bing.com/chat> (Optional, depending on your region)
- Required in a supported country or region with New Bing (Chinese mainland VPN required)
- [Selenium](https://pypi.org/project/selenium/) (for automatic cookie setup)

## Authentication

!!! POSSIBLY NOT REQUIRED ANYMORE !!!

**In some regions**, Microsoft has made the chat feature **available** to everyone, so you might be able to **skip this step**. You can check this with a browser (with user-agent set to reflect Edge), by **trying to start a chat without logging in**.

It was also found that it might **depend on your IP address**. For example, if you try to access the chat features from an IP that is known to **belong to a datacenter range** (vServers, root servers, VPN, common proxies, ...), **you might be required to log in** while being able to access the features just fine from your home IP address.

If you receive the following error, you can try **providing a cookie** and see if it works then:

`Exception: Authentication failed. You have not been accepted into the beta.`

### Collect cookies

1. Get a browser that looks like Microsoft Edge.

- a) (Easy) Install the latest version of Microsoft Edge
- b) (Advanced) Alternatively, you can use any browser and set the user-agent to look like you're using Edge (e.g., `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51`). You can do this easily with an extension like "User-Agent Switcher and Manager" for [Chrome](https://chrome.google.com/webstore/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/).

2. Open [bing.com/chat](https://bing.com/chat)
3. If you see a chat feature, you are good to continue...
4. Install the cookie editor extension for [Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/)
5. Go to [bing.com](https://bing.com)
6. Open the extension
7. Click "Export" on the bottom right, then "Export as JSON" (This saves your cookies to clipboard)
8. Paste your cookies into a file `bing_cookies_*.json`.
   - NOTE: The **cookies file name MUST follow the regex pattern `bing_cookies_*.json`**, so that they could be recognized by internal cookie processing mechanisms

### Use cookies in code:

```python
cookies = json.loads(open("./path/to/cookies.json", encoding="utf-8").read())  # might omit cookies option
bot = await Chatbot.create(cookies=cookies)
```

</details>

<details open>

<summary>

# How to use Chatbot

</summary>

## Run from Command Line

```
 $ python3 -m EdgeGPT.EdgeGPT -h

        EdgeGPT - A demo of reverse engineering the Bing GPT chatbot
        Repo: github.com/acheong08/EdgeGPT
        By: Antonio Cheong

        !help for help

        Type !exit to exit

usage: EdgeGPT.py [-h] [--enter-once] [--search-result] [--no-stream] [--rich] [--proxy PROXY] [--wss-link WSS_LINK]
                  [--style {creative,balanced,precise}] [--prompt PROMPT] [--cookie-file COOKIE_FILE]
                  [--history-file HISTORY_FILE] [--locale LOCALE]

options:
  -h, --help            show this help message and exit
  --enter-once
  --search-result
  --no-stream
  --rich
  --proxy PROXY         Proxy URL (e.g. socks5://127.0.0.1:1080)
  --wss-link WSS_LINK   WSS URL(e.g. wss://sydney.bing.com/sydney/ChatHub)
  --style {creative,balanced,precise}
  --prompt PROMPT       prompt to start with
  --cookie-file COOKIE_FILE
                        path to cookie file
  --history-file HISTORY_FILE
                        path to history file
  --locale LOCALE       your locale (e.g. en-US, zh-CN, en-IE, en-GB)
```

(China/US/UK/Norway has enhanced support for locale)

## Run in Python

### 1. The `Chatbot` class and `asyncio` for more granular control

Use Async for the best experience, for example:

```python
import asyncio, json
from EdgeGPT.EdgeGPT import Chatbot, ConversationStyle

async def main():
    bot = await Chatbot.create() # Passing cookies is "optional", as explained above
    response = await bot.ask(prompt="Hello world", conversation_style=ConversationStyle.creative, simplify_response=True)
    print(json.dumps(response, indent=2)) # Returns
    """
{
    "text": str,
    "author": str,
    "sources": list[dict],
    "sources_text": str,
    "suggestions": list[str],
    "messages_left": int
}
    """
    await bot.close()

if __name__ == "__main__":
    asyncio.run(main())
```

### 2) The `Query` and `Cookie` helper classes

Create a simple Bing Chat AI query (using the 'precise' conversation style by default) and see just the main text output rather than the whole API response:

Remeber to store your cookies in a specific format: `bing_cookies_*.json`.

```python
from EdgeGPT.EdgeUtils import Query, Cookie

q = Query("What are you? Give your answer as Python code")
print(q)
```

The default directory for storing Cookie files is `HOME/bing_cookies` but you can change it with:

```python
Cookie.dir_path = Path(r"...")
```

Or change the conversation style or cookie file to be used:

```python
q = Query(
  "What are you? Give your answer as Python code",
  style="creative",  # or: 'balanced', 'precise'
  cookie_file="./bing_cookies_alternative.json"
)

#  Use `help(Query)` to see other supported parameters.
```

Quickly extract the text output, code snippets, list of sources/references, or suggested follow-on questions from a response using the following attributes:

```python
q.output  # Also: print(q)
q.sources
q.sources_dict
q.suggestions
q.code
q.code_blocks
q.code_block_formatsgiven)
```

Get the orginal prompt and the conversation style you specified:

```python
q.prompt
q.ignore_cookies
q.style
q.simplify_response
q.locale
repr(q)
```

Access previous Queries made since importing `Query`:

```python
Query.index  # A list of Query objects; updated dynamically
Query.image_dir_path

```

And finally, the `Cookie` class supports multiple cookie files, so if you create additional cookie files with the naming convention `bing_cookies_*.json`, your queries will automatically try using the next file (alphabetically) if you've exceeded your daily quota of requests (currently set at 200).

Here are the main attributes which you can access:

```python
Cookie.current_file_index
Cookie.current_file_path
Cookie.current_data
Cookie.dir_path
Cookie.search_pattern
Cookie.files
Cookie.image_token
Cookie.import_next
Cookie.rotate_cookies
Cookie.ignore_files
Cookie.supplied_files
Cookie.request_count
```

---

## Run with Docker

This assumes you have a file cookies.json in your current working directory

```bash

docker run --rm -it -v $(pwd)/cookies.json:/cookies.json:ro -e COOKIE_FILE='/cookies.json' ghcr.io/acheong08/edgegpt
```

You can add any extra flags as following

```bash

docker run --rm -it -v $(pwd)/cookies.json:/cookies.json:ro -e COOKIE_FILE='/cookies.json' ghcr.io/acheong08/edgegpt --rich --style creative
```

</details>

</details>

<details open>

<summary>

# How to use Image generator

</summary>

## Run from Command Line

```bash
$ python3 -m ImageGen.ImageGen -h
usage: ImageGen.py [-h] [-U U] [--cookie-file COOKIE_FILE] --prompt PROMPT [--output-dir OUTPUT_DIR] [--quiet] [--asyncio]

optional arguments:
  -h, --help            show this help message and exit
  -U U                  Auth cookie from browser
  --cookie-file COOKIE_FILE
                        File containing auth cookie
  --prompt PROMPT       Prompt to generate images for
  --output-dir OUTPUT_DIR
                        Output directory
  --quiet               Disable pipeline messages
  --asyncio             Run ImageGen using asyncio
```

## Run in Python

### 1) The `ImageQuery` helper class

Generate images based on a simple prompt and download to the current working directory:

```python
from EdgeGPT.EdgeUtils import ImageQuery

q=ImageQuery("Meerkats at a garden party in Devon")
```

Change the download directory for all future images in this session:

```
Query.image_dirpath = Path("./to_another_folder")
```

### 2) The `ImageGen` class and `asyncio` for more granular control

```python
from EdgeGPT.ImageGen import ImageGen
import argparse
import json

async def async_image_gen(args) -> None:
    async with ImageGenAsync(args.U, args.quiet) as image_generator:
        images = await image_generator.get_images(args.prompt)
        await image_generator.save_images(images, output_dir=args.output_dir)

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("-U", help="Auth cookie from browser", type=str)
    parser.add_argument("--cookie-file", help="File containing auth cookie", type=str)
    parser.add_argument(
        "--prompt",
        help="Prompt to generate images for",
        type=str,
        required=True,
    )
    parser.add_argument(
        "--output-dir",
        help="Output directory",
        type=str,
        default="./output",
    )
    parser.add_argument(
        "--quiet", help="Disable pipeline messages", action="store_true"
    )
    parser.add_argument(
        "--asyncio", help="Run ImageGen using asyncio", action="store_true"
    )
    args = parser.parse_args()
    # Load auth cookie
    with open(args.cookie_file, encoding="utf-8") as file:
        cookie_json = json.load(file)
        for cookie in cookie_json:
            if cookie.get("name") == "_U":
                args.U = cookie.get("value")
                break

    if args.U is None:
        raise Exception("Could not find auth cookie")

    if not args.asyncio:
        # Create image generator
        image_generator = ImageGen(args.U, args.quiet)
        image_generator.save_images(
            image_generator.get_images(args.prompt),
            output_dir=args.output_dir,
        )
    else:
        asyncio.run(async_image_gen(args))

```

</details>

<details open>

<summary>

# Star History

</summary>

[![Star History Chart](https://api.star-history.com/svg?repos=acheong08/EdgeGPT&type=Date)](https://star-history.com/#acheong08/EdgeGPT&Date)

</details>

<details open>

<summary>

# Contributors

</summary>

This project exists thanks to all the people who contribute.

 <a href="https://github.com/acheong08/EdgeGPT/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=acheong08/EdgeGPT" />
 </a>

</details>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/acheong08/EdgeGPT",
    "name": "EdgeGPT",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Antonio Cheong",
    "author_email": "acheong@student.dalat.org",
    "download_url": "https://files.pythonhosted.org/packages/3f/0f/b9053d94be96cbb345d96d97198c13e8fb244ce199fb4369f1400be71de3/EdgeGPT-0.13.2.tar.gz",
    "platform": null,
    "description": "> # This project has been archived. Due to personal circumstances, I lack the time to maintain this repository.\n\n<div align=\"center\">\n  <img src=\"https://socialify.git.ci/acheong08/EdgeGPT/image?font=Inter&language=1&logo=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F9%2F9c%2FBing_Fluent_Logo.svg&owner=1&pattern=Floating%20Cogs&theme=Auto\" alt=\"EdgeGPT\" width=\"640\" height=\"320\" />\n\n# Edge GPT\n\n_The reverse engineering the chat feature of the new version of Bing_\n\n<a>English</a> -\n<a href=\"./README_zh-cn.md\">\u7b80\u4f53\u4e2d\u6587</a> -\n<a href=\"./README_zh-tw.md\">\u7e41\u9ad4\u4e2d\u6587</a> -\n<a href=\"./README_es.md\">Espa\u00f1ol</a> -\n<a href=\"./README_ja.md\">\u65e5\u672c\u8a9e</a>\n\n</div>\n\n<p align=\"center\">\n  <a href=\"https://github.com/acheong08/EdgeGPT\">\n    <img alt=\"PyPI version\" src=\"https://img.shields.io/pypi/v/EdgeGPT\">\n  </a>\n  <img alt=\"Python version\" src=\"https://img.shields.io/badge/python-3.8+-blue.svg\">\n  <img alt=\"Total downloads\" src=\"https://static.pepy.tech/badge/edgegpt\">\n\n</p>\n\n<details open>\n\n<summary>\n\n# Setup\n\n</summary>\n\n## Install package\n\n```bash\npython3 -m pip install EdgeGPT --upgrade\n```\n\n## Requirements\n\n- python 3.8+\n- A Microsoft Account with access to <https://bing.com/chat> (Optional, depending on your region)\n- Required in a supported country or region with New Bing (Chinese mainland VPN required)\n- [Selenium](https://pypi.org/project/selenium/) (for automatic cookie setup)\n\n## Authentication\n\n!!! POSSIBLY NOT REQUIRED ANYMORE !!!\n\n**In some regions**, Microsoft has made the chat feature **available** to everyone, so you might be able to **skip this step**. You can check this with a browser (with user-agent set to reflect Edge), by **trying to start a chat without logging in**.\n\nIt was also found that it might **depend on your IP address**. For example, if you try to access the chat features from an IP that is known to **belong to a datacenter range** (vServers, root servers, VPN, common proxies, ...), **you might be required to log in** while being able to access the features just fine from your home IP address.\n\nIf you receive the following error, you can try **providing a cookie** and see if it works then:\n\n`Exception: Authentication failed. You have not been accepted into the beta.`\n\n### Collect cookies\n\n1. Get a browser that looks like Microsoft Edge.\n\n- a) (Easy) Install the latest version of Microsoft Edge\n- b) (Advanced) Alternatively, you can use any browser and set the user-agent to look like you're using Edge (e.g., `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51`). You can do this easily with an extension like \"User-Agent Switcher and Manager\" for [Chrome](https://chrome.google.com/webstore/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/).\n\n2. Open [bing.com/chat](https://bing.com/chat)\n3. If you see a chat feature, you are good to continue...\n4. Install the cookie editor extension for [Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/)\n5. Go to [bing.com](https://bing.com)\n6. Open the extension\n7. Click \"Export\" on the bottom right, then \"Export as JSON\" (This saves your cookies to clipboard)\n8. Paste your cookies into a file `bing_cookies_*.json`.\n   - NOTE: The **cookies file name MUST follow the regex pattern `bing_cookies_*.json`**, so that they could be recognized by internal cookie processing mechanisms\n\n### Use cookies in code:\n\n```python\ncookies = json.loads(open(\"./path/to/cookies.json\", encoding=\"utf-8\").read())  # might omit cookies option\nbot = await Chatbot.create(cookies=cookies)\n```\n\n</details>\n\n<details open>\n\n<summary>\n\n# How to use Chatbot\n\n</summary>\n\n## Run from Command Line\n\n```\n $ python3 -m EdgeGPT.EdgeGPT -h\n\n        EdgeGPT - A demo of reverse engineering the Bing GPT chatbot\n        Repo: github.com/acheong08/EdgeGPT\n        By: Antonio Cheong\n\n        !help for help\n\n        Type !exit to exit\n\nusage: EdgeGPT.py [-h] [--enter-once] [--search-result] [--no-stream] [--rich] [--proxy PROXY] [--wss-link WSS_LINK]\n                  [--style {creative,balanced,precise}] [--prompt PROMPT] [--cookie-file COOKIE_FILE]\n                  [--history-file HISTORY_FILE] [--locale LOCALE]\n\noptions:\n  -h, --help            show this help message and exit\n  --enter-once\n  --search-result\n  --no-stream\n  --rich\n  --proxy PROXY         Proxy URL (e.g. socks5://127.0.0.1:1080)\n  --wss-link WSS_LINK   WSS URL(e.g. wss://sydney.bing.com/sydney/ChatHub)\n  --style {creative,balanced,precise}\n  --prompt PROMPT       prompt to start with\n  --cookie-file COOKIE_FILE\n                        path to cookie file\n  --history-file HISTORY_FILE\n                        path to history file\n  --locale LOCALE       your locale (e.g. en-US, zh-CN, en-IE, en-GB)\n```\n\n(China/US/UK/Norway has enhanced support for locale)\n\n## Run in Python\n\n### 1. The `Chatbot` class and `asyncio` for more granular control\n\nUse Async for the best experience, for example:\n\n```python\nimport asyncio, json\nfrom EdgeGPT.EdgeGPT import Chatbot, ConversationStyle\n\nasync def main():\n    bot = await Chatbot.create() # Passing cookies is \"optional\", as explained above\n    response = await bot.ask(prompt=\"Hello world\", conversation_style=ConversationStyle.creative, simplify_response=True)\n    print(json.dumps(response, indent=2)) # Returns\n    \"\"\"\n{\n    \"text\": str,\n    \"author\": str,\n    \"sources\": list[dict],\n    \"sources_text\": str,\n    \"suggestions\": list[str],\n    \"messages_left\": int\n}\n    \"\"\"\n    await bot.close()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n### 2) The `Query` and `Cookie` helper classes\n\nCreate a simple Bing Chat AI query (using the 'precise' conversation style by default) and see just the main text output rather than the whole API response:\n\nRemeber to store your cookies in a specific format: `bing_cookies_*.json`.\n\n```python\nfrom EdgeGPT.EdgeUtils import Query, Cookie\n\nq = Query(\"What are you? Give your answer as Python code\")\nprint(q)\n```\n\nThe default directory for storing Cookie files is `HOME/bing_cookies` but you can change it with:\n\n```python\nCookie.dir_path = Path(r\"...\")\n```\n\nOr change the conversation style or cookie file to be used:\n\n```python\nq = Query(\n  \"What are you? Give your answer as Python code\",\n  style=\"creative\",  # or: 'balanced', 'precise'\n  cookie_file=\"./bing_cookies_alternative.json\"\n)\n\n#  Use `help(Query)` to see other supported parameters.\n```\n\nQuickly extract the text output, code snippets, list of sources/references, or suggested follow-on questions from a response using the following attributes:\n\n```python\nq.output  # Also: print(q)\nq.sources\nq.sources_dict\nq.suggestions\nq.code\nq.code_blocks\nq.code_block_formatsgiven)\n```\n\nGet the orginal prompt and the conversation style you specified:\n\n```python\nq.prompt\nq.ignore_cookies\nq.style\nq.simplify_response\nq.locale\nrepr(q)\n```\n\nAccess previous Queries made since importing `Query`:\n\n```python\nQuery.index  # A list of Query objects; updated dynamically\nQuery.image_dir_path\n\n```\n\nAnd finally, the `Cookie` class supports multiple cookie files, so if you create additional cookie files with the naming convention `bing_cookies_*.json`, your queries will automatically try using the next file (alphabetically) if you've exceeded your daily quota of requests (currently set at 200).\n\nHere are the main attributes which you can access:\n\n```python\nCookie.current_file_index\nCookie.current_file_path\nCookie.current_data\nCookie.dir_path\nCookie.search_pattern\nCookie.files\nCookie.image_token\nCookie.import_next\nCookie.rotate_cookies\nCookie.ignore_files\nCookie.supplied_files\nCookie.request_count\n```\n\n---\n\n## Run with Docker\n\nThis assumes you have a file cookies.json in your current working directory\n\n```bash\n\ndocker run --rm -it -v $(pwd)/cookies.json:/cookies.json:ro -e COOKIE_FILE='/cookies.json' ghcr.io/acheong08/edgegpt\n```\n\nYou can add any extra flags as following\n\n```bash\n\ndocker run --rm -it -v $(pwd)/cookies.json:/cookies.json:ro -e COOKIE_FILE='/cookies.json' ghcr.io/acheong08/edgegpt --rich --style creative\n```\n\n</details>\n\n</details>\n\n<details open>\n\n<summary>\n\n# How to use Image generator\n\n</summary>\n\n## Run from Command Line\n\n```bash\n$ python3 -m ImageGen.ImageGen -h\nusage: ImageGen.py [-h] [-U U] [--cookie-file COOKIE_FILE] --prompt PROMPT [--output-dir OUTPUT_DIR] [--quiet] [--asyncio]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -U U                  Auth cookie from browser\n  --cookie-file COOKIE_FILE\n                        File containing auth cookie\n  --prompt PROMPT       Prompt to generate images for\n  --output-dir OUTPUT_DIR\n                        Output directory\n  --quiet               Disable pipeline messages\n  --asyncio             Run ImageGen using asyncio\n```\n\n## Run in Python\n\n### 1) The `ImageQuery` helper class\n\nGenerate images based on a simple prompt and download to the current working directory:\n\n```python\nfrom EdgeGPT.EdgeUtils import ImageQuery\n\nq=ImageQuery(\"Meerkats at a garden party in Devon\")\n```\n\nChange the download directory for all future images in this session:\n\n```\nQuery.image_dirpath = Path(\"./to_another_folder\")\n```\n\n### 2) The `ImageGen` class and `asyncio` for more granular control\n\n```python\nfrom EdgeGPT.ImageGen import ImageGen\nimport argparse\nimport json\n\nasync def async_image_gen(args) -> None:\n    async with ImageGenAsync(args.U, args.quiet) as image_generator:\n        images = await image_generator.get_images(args.prompt)\n        await image_generator.save_images(images, output_dir=args.output_dir)\n\nif __name__ == \"__main__\":\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"-U\", help=\"Auth cookie from browser\", type=str)\n    parser.add_argument(\"--cookie-file\", help=\"File containing auth cookie\", type=str)\n    parser.add_argument(\n        \"--prompt\",\n        help=\"Prompt to generate images for\",\n        type=str,\n        required=True,\n    )\n    parser.add_argument(\n        \"--output-dir\",\n        help=\"Output directory\",\n        type=str,\n        default=\"./output\",\n    )\n    parser.add_argument(\n        \"--quiet\", help=\"Disable pipeline messages\", action=\"store_true\"\n    )\n    parser.add_argument(\n        \"--asyncio\", help=\"Run ImageGen using asyncio\", action=\"store_true\"\n    )\n    args = parser.parse_args()\n    # Load auth cookie\n    with open(args.cookie_file, encoding=\"utf-8\") as file:\n        cookie_json = json.load(file)\n        for cookie in cookie_json:\n            if cookie.get(\"name\") == \"_U\":\n                args.U = cookie.get(\"value\")\n                break\n\n    if args.U is None:\n        raise Exception(\"Could not find auth cookie\")\n\n    if not args.asyncio:\n        # Create image generator\n        image_generator = ImageGen(args.U, args.quiet)\n        image_generator.save_images(\n            image_generator.get_images(args.prompt),\n            output_dir=args.output_dir,\n        )\n    else:\n        asyncio.run(async_image_gen(args))\n\n```\n\n</details>\n\n<details open>\n\n<summary>\n\n# Star History\n\n</summary>\n\n[![Star History Chart](https://api.star-history.com/svg?repos=acheong08/EdgeGPT&type=Date)](https://star-history.com/#acheong08/EdgeGPT&Date)\n\n</details>\n\n<details open>\n\n<summary>\n\n# Contributors\n\n</summary>\n\nThis project exists thanks to all the people who contribute.\n\n <a href=\"https://github.com/acheong08/EdgeGPT/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=acheong08/EdgeGPT\" />\n </a>\n\n</details>\n",
    "bugtrack_url": null,
    "license": "The Unlicense",
    "summary": "Reverse engineered Edge Chat API",
    "version": "0.13.2",
    "project_urls": {
        "Bug Report": "https://github.com/acheong08/EdgeGPT/issues/new",
        "Homepage": "https://github.com/acheong08/EdgeGPT"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79a526ad163069c906db32b284307d55607e2095548a692bf3f1f3869f7ef210",
                "md5": "a6e6365421d178700622bb0dc3c13c5c",
                "sha256": "35bd2f9780357e41b1c2e7c36c84fbaec076d039edd510d343989d8fb8b7e985"
            },
            "downloads": -1,
            "filename": "EdgeGPT-0.13.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6e6365421d178700622bb0dc3c13c5c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 24363,
            "upload_time": "2023-08-03T13:38:32",
            "upload_time_iso_8601": "2023-08-03T13:38:32.131798Z",
            "url": "https://files.pythonhosted.org/packages/79/a5/26ad163069c906db32b284307d55607e2095548a692bf3f1f3869f7ef210/EdgeGPT-0.13.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f0fb9053d94be96cbb345d96d97198c13e8fb244ce199fb4369f1400be71de3",
                "md5": "533b09f069360c5920c9bb3710db9bc6",
                "sha256": "1ebc4ee1ac7e99646dad7303c65c7757acc06c7fae3fea8c44e4e930a767120a"
            },
            "downloads": -1,
            "filename": "EdgeGPT-0.13.2.tar.gz",
            "has_sig": false,
            "md5_digest": "533b09f069360c5920c9bb3710db9bc6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24920,
            "upload_time": "2023-08-03T13:38:34",
            "upload_time_iso_8601": "2023-08-03T13:38:34.035092Z",
            "url": "https://files.pythonhosted.org/packages/3f/0f/b9053d94be96cbb345d96d97198c13e8fb244ce199fb4369f1400be71de3/EdgeGPT-0.13.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-03 13:38:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "acheong08",
    "github_project": "EdgeGPT",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "edgegpt"
}
        
Elapsed time: 0.09997s