gchat


Namegchat JSON
Version 0.0.16 PyPI version JSON
download
home_pagehttps://letmedoit.ai
SummaryA terminal chatbot, powered by Groq Cloud API (Windows / macOS / Linux / Android / iOS)
upload_time2024-07-05 16:22:17
maintainerNone
docs_urlNone
authorEliran Wong
requires_python>=3.8
licenseGNU General Public License (GPL)
keywords ai google gemini palm codey vertex api multimodal vision
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # groqchat

A terminal chatbot, powered by Groq Cloud API (Windows / macOS / Linux / Android / iOS)

Modified groq chatbot developed in https://github.com/eliranwong/freegenius

A simple chatbot that runs fast on mobile phones as well as pc.

# Groq API Key

Get a Groq API key first. Read https://github.com/eliranwong/freegenius/wiki/Set-up-a-Groq-Cloud-API-Key

# Android / iOS / iPhone / iPad Users

iOS/iPad/iPhone: Use [iSH](https://ish.app/) on iOS/iPad/iPhone.

Android: Use [Termux](https://termux.dev/en/) on Android.

# Installation

With python installed, setup gropchat via pip:

> pip install groqchat

Or

> pip install gchat

# Android Users

1. Install rust

> pkg install rust

2. Use "--system-site-packages" if you create a virtual environment, e.g.

> python -m venv gchat --system-site-packages

> source gchat/bin/activate

> pip install --upgrade gchat

On Android, use Android built-in voice typing keyboards of Ctrl+S.

Install [Termux:API](https://wiki.termux.com/wiki/Termux:API), to work with response output on Andoird.

# Get Started

Simply run 'gchat':

> gchat

Enter your Groq cloud a single API key or a list of multiple API keys:<br>
(Remarks: If a list of multiple API keys are entered, entered API keys are automatically rotated for running inference.)

<img width="1004" alt="groqapi" src="https://github.com/eliranwong/groqchat/assets/25262722/a510f465-1768-4fcb-8ae5-cfab9f3adad8">

Select a model:

<img width="1004" alt="models" src="https://github.com/eliranwong/groqchat/assets/25262722/42cbcd85-b13a-4188-98e6-2abf99542993">

# Special Entries

Enter a dot '.' to display available special entries:

<img width="1004" alt="ui" src="https://github.com/eliranwong/groqchat/assets/25262722/31fa20e7-24cb-4aa1-b67e-38f6bf24971d">

'.new' - start a new chart session

'.api' - change api key

'.model' - change model

'.systemmessage' - change system message

'.temperature' - change temperature

'.maxtokens' - change max tokens

'.togglewordwrap' - toggle word wrap

'.togglevoiceoutput' - toggle voice output

'.exit' - exit the application

# Keyboard Shortcuts

By default:

Ctrl+Z - cancel

Ctrl+Q - exit / quit

Ctrl+I / TAB - insert new line

Ctrl+N - new chat session

Ctrl+W - toggle word wrap

Ctrl+Y - toggle voice output

Ctrl+S - trigger voice typing

# Configurations

Advanced users may change configurations manually by editing the file "config.py" located in the package folder.

Remarks: Close the app before editing the file.

# CLI Options

Run 'gchat --help' for cli options

> gchat --help

<img width="1004" alt="cli_option" src="https://github.com/eliranwong/groqchat/assets/25262722/eb58aeaf-7cc7-4170-b253-1200b99d57e9">

For example, to start with a greeting:

> gchat "Hi!"

For example, to set temperature to 0.8 and maximum output tokens to 1024, run:

> gchat -t 0.8 -o 1024 "Hi!"

# Install Multiple Copies

You may want to install multiple copies to customise them with different system messages or other settings.  

An easy way to achieve it is to use alias, e.g.:

> mkdir apps

> cd apps

> python3 -m venv assist explain quote illustrate summarize

> source assist/bin/activate

> pip install gchat

> source explain/bin/activate

> pip install gchat

> source quote/bin/activate

> pip install gchat

> source illustrate/bin/activate

> pip install gchat

> source summarize/bin/activate

> pip install gchat

> nano .bashrc

Add the following aliases:

```
alias explain=$HOME/apps/explain/bin/gchat
alias illustrate=$HOME/apps/illustrate/bin/gchat
alias quote=$HOME/apps/quote/bin/gchat
alias assist=$HOME/apps/assist/bin/gchat
alias summarize=$HOME/apps/summarize/bin/gchat
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://letmedoit.ai",
    "name": "gchat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "ai google gemini palm codey vertex api multimodal vision",
    "author": "Eliran Wong",
    "author_email": "support@letmedoit.ai",
    "download_url": "https://files.pythonhosted.org/packages/5a/69/5abbbbf9ab498f0e8d12cb09a74ac8562446fce39dcafcf27661881f82b2/gchat-0.0.16.tar.gz",
    "platform": null,
    "description": "# groqchat\n\nA terminal chatbot, powered by Groq Cloud API (Windows / macOS / Linux / Android / iOS)\n\nModified groq chatbot developed in https://github.com/eliranwong/freegenius\n\nA simple chatbot that runs fast on mobile phones as well as pc.\n\n# Groq API Key\n\nGet a Groq API key first. Read https://github.com/eliranwong/freegenius/wiki/Set-up-a-Groq-Cloud-API-Key\n\n# Android / iOS / iPhone / iPad Users\n\niOS/iPad/iPhone: Use [iSH](https://ish.app/) on iOS/iPad/iPhone.\n\nAndroid: Use [Termux](https://termux.dev/en/) on Android.\n\n# Installation\n\nWith python installed, setup gropchat via pip:\n\n> pip install groqchat\n\nOr\n\n> pip install gchat\n\n# Android Users\n\n1. Install rust\n\n> pkg install rust\n\n2. Use \"--system-site-packages\" if you create a virtual environment, e.g.\n\n> python -m venv gchat --system-site-packages\n\n> source gchat/bin/activate\n\n> pip install --upgrade gchat\n\nOn Android, use Android built-in voice typing keyboards of Ctrl+S.\n\nInstall [Termux:API](https://wiki.termux.com/wiki/Termux:API), to work with response output on Andoird.\n\n# Get Started\n\nSimply run 'gchat':\n\n> gchat\n\nEnter your Groq cloud a single API key or a list of multiple API keys:<br>\n(Remarks: If a list of multiple API keys are entered, entered API keys are automatically rotated for running inference.)\n\n<img width=\"1004\" alt=\"groqapi\" src=\"https://github.com/eliranwong/groqchat/assets/25262722/a510f465-1768-4fcb-8ae5-cfab9f3adad8\">\n\nSelect a model:\n\n<img width=\"1004\" alt=\"models\" src=\"https://github.com/eliranwong/groqchat/assets/25262722/42cbcd85-b13a-4188-98e6-2abf99542993\">\n\n# Special Entries\n\nEnter a dot '.' to display available special entries:\n\n<img width=\"1004\" alt=\"ui\" src=\"https://github.com/eliranwong/groqchat/assets/25262722/31fa20e7-24cb-4aa1-b67e-38f6bf24971d\">\n\n'.new' - start a new chart session\n\n'.api' - change api key\n\n'.model' - change model\n\n'.systemmessage' - change system message\n\n'.temperature' - change temperature\n\n'.maxtokens' - change max tokens\n\n'.togglewordwrap' - toggle word wrap\n\n'.togglevoiceoutput' - toggle voice output\n\n'.exit' - exit the application\n\n# Keyboard Shortcuts\n\nBy default:\n\nCtrl+Z - cancel\n\nCtrl+Q - exit / quit\n\nCtrl+I / TAB - insert new line\n\nCtrl+N - new chat session\n\nCtrl+W - toggle word wrap\n\nCtrl+Y - toggle voice output\n\nCtrl+S - trigger voice typing\n\n# Configurations\n\nAdvanced users may change configurations manually by editing the file \"config.py\" located in the package folder.\n\nRemarks: Close the app before editing the file.\n\n# CLI Options\n\nRun 'gchat --help' for cli options\n\n> gchat --help\n\n<img width=\"1004\" alt=\"cli_option\" src=\"https://github.com/eliranwong/groqchat/assets/25262722/eb58aeaf-7cc7-4170-b253-1200b99d57e9\">\n\nFor example, to start with a greeting:\n\n> gchat \"Hi!\"\n\nFor example, to set temperature to 0.8 and maximum output tokens to 1024, run:\n\n> gchat -t 0.8 -o 1024 \"Hi!\"\n\n# Install Multiple Copies\n\nYou may want to install multiple copies to customise them with different system messages or other settings.  \n\nAn easy way to achieve it is to use alias, e.g.:\n\n> mkdir apps\n\n> cd apps\n\n> python3 -m venv assist explain quote illustrate summarize\n\n> source assist/bin/activate\n\n> pip install gchat\n\n> source explain/bin/activate\n\n> pip install gchat\n\n> source quote/bin/activate\n\n> pip install gchat\n\n> source illustrate/bin/activate\n\n> pip install gchat\n\n> source summarize/bin/activate\n\n> pip install gchat\n\n> nano .bashrc\n\nAdd the following aliases:\n\n```\nalias explain=$HOME/apps/explain/bin/gchat\nalias illustrate=$HOME/apps/illustrate/bin/gchat\nalias quote=$HOME/apps/quote/bin/gchat\nalias assist=$HOME/apps/assist/bin/gchat\nalias summarize=$HOME/apps/summarize/bin/gchat\n```\n\n\n",
    "bugtrack_url": null,
    "license": "GNU General Public License (GPL)",
    "summary": "A terminal chatbot, powered by Groq Cloud API (Windows / macOS / Linux / Android / iOS)",
    "version": "0.0.16",
    "project_urls": {
        "Documentation": "https://github.com/eliranwong/groqchat/wiki",
        "Funding": "https://www.paypal.me/letmedoitai",
        "Homepage": "https://letmedoit.ai",
        "Source": "https://github.com/eliranwong/groqchat",
        "Tracker": "https://github.com/eliranwong/groqchat/issues"
    },
    "split_keywords": [
        "ai",
        "google",
        "gemini",
        "palm",
        "codey",
        "vertex",
        "api",
        "multimodal",
        "vision"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1a294e6fb2aeaf1bbb2474b575c60f25ffc8b75d91b40b2ea9cbf4aae4cc9bb",
                "md5": "b06ae8f356b5d3dcd8277ee313b3d1d1",
                "sha256": "671b5612272d61c630f936bcdd42e9cb711c2ecb0dd19668677639b838594bc6"
            },
            "downloads": -1,
            "filename": "gchat-0.0.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b06ae8f356b5d3dcd8277ee313b3d1d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 25173,
            "upload_time": "2024-07-05T16:22:15",
            "upload_time_iso_8601": "2024-07-05T16:22:15.841695Z",
            "url": "https://files.pythonhosted.org/packages/e1/a2/94e6fb2aeaf1bbb2474b575c60f25ffc8b75d91b40b2ea9cbf4aae4cc9bb/gchat-0.0.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a695abbbbf9ab498f0e8d12cb09a74ac8562446fce39dcafcf27661881f82b2",
                "md5": "c9a197e57f358473e6352b8271d4170c",
                "sha256": "4ea324698bf699f6aa19f1c4f76a618dcd97282c1fc41714cf2ea9cc82f85af7"
            },
            "downloads": -1,
            "filename": "gchat-0.0.16.tar.gz",
            "has_sig": false,
            "md5_digest": "c9a197e57f358473e6352b8271d4170c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 23759,
            "upload_time": "2024-07-05T16:22:17",
            "upload_time_iso_8601": "2024-07-05T16:22:17.420851Z",
            "url": "https://files.pythonhosted.org/packages/5a/69/5abbbbf9ab498f0e8d12cb09a74ac8562446fce39dcafcf27661881f82b2/gchat-0.0.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-05 16:22:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "eliranwong",
    "github_project": "groqchat",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gchat"
}
        
Elapsed time: 0.26740s