chatgpthub


Namechatgpthub JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/kadirnar/chatgpthub
SummaryChatGptHub: Gpt Chatbot Library with LangChain Support
upload_time2023-04-18 18:17:42
maintainer
docs_urlNone
authorkadirnar
requires_python>=3.6
licenseApache-2.0
keywords chatgpt chatbot gpt-3 gpt-3.5-turbo text-generation language-model language-modeling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
<h2>
     ChatGptHub: Gpt Chatbot Library with LangChain Support 
</h2>
<div>
    <a href="https://pepy.tech/project/chatgpthub"><img src="https://pepy.tech/badge/chatgpthub" alt="downloads"></a>
    <a href="https://badge.fury.io/py/chatgpthub"><img src="https://badge.fury.io/py/chatgpthub.svg" alt="pypi version"></a>
</div>
</div>

This repo is a implementation of the ChatGPT Models with [LangChain](https://github.com/hwchase17/langchain) support.

### Installation
```bash
pip install chatgpthub
```

### Usage
```python
from chatgpthub import ChatGptHubDemo

# translate chatgpt model

demo = ChatGptHubDemo(
    openai_key="openai_key",
    promptlayer_key="promptlayer_key", #optional
)

# translate chatgpt model

demo.translate(
    model_name = "gpt-3.5-turbo",
    input_language = "English",
    output_language = "Turkish",
    text = "Hello, how are you?",
    temperature = 0.0,
)

# promptlayer chatgpt model

demo.promptlayer(
    model_name = "gpt-3.5-turbo",
    text = "Hello, how are you?",
    temperature = 0.0,
)

# custom template chatgpt model

template = "You are a helpful assistant that python to c++ and you are asked to translate the following text: {text}"
text = "print('Hello, world!')"
output = demo.custom_template(
    model_name="gpt-3.5-turbo",
    template=template,
    input_variables="text",
    text=text,
    temperature=0.0,
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kadirnar/chatgpthub",
    "name": "chatgpthub",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "chatgpt,chatbot,gpt-3,gpt-3.5-turbo,text-generation,language-model,language-modeling",
    "author": "kadirnar",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/03/de/6cf8faeaab8246ecceee304baa2ca0a659fa8c49fd093f8a0aa89d84eca9/chatgpthub-0.1.2.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n<h2>\n     ChatGptHub: Gpt Chatbot Library with LangChain Support \n</h2>\n<div>\n    <a href=\"https://pepy.tech/project/chatgpthub\"><img src=\"https://pepy.tech/badge/chatgpthub\" alt=\"downloads\"></a>\n    <a href=\"https://badge.fury.io/py/chatgpthub\"><img src=\"https://badge.fury.io/py/chatgpthub.svg\" alt=\"pypi version\"></a>\n</div>\n</div>\n\nThis repo is a implementation of the ChatGPT Models with [LangChain](https://github.com/hwchase17/langchain) support.\n\n### Installation\n```bash\npip install chatgpthub\n```\n\n### Usage\n```python\nfrom chatgpthub import ChatGptHubDemo\n\n# translate chatgpt model\n\ndemo = ChatGptHubDemo(\n    openai_key=\"openai_key\",\n    promptlayer_key=\"promptlayer_key\", #optional\n)\n\n# translate chatgpt model\n\ndemo.translate(\n    model_name = \"gpt-3.5-turbo\",\n    input_language = \"English\",\n    output_language = \"Turkish\",\n    text = \"Hello, how are you?\",\n    temperature = 0.0,\n)\n\n# promptlayer chatgpt model\n\ndemo.promptlayer(\n    model_name = \"gpt-3.5-turbo\",\n    text = \"Hello, how are you?\",\n    temperature = 0.0,\n)\n\n# custom template chatgpt model\n\ntemplate = \"You are a helpful assistant that python to c++ and you are asked to translate the following text: {text}\"\ntext = \"print('Hello, world!')\"\noutput = demo.custom_template(\n    model_name=\"gpt-3.5-turbo\",\n    template=template,\n    input_variables=\"text\",\n    text=text,\n    temperature=0.0,\n)\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "ChatGptHub: Gpt Chatbot Library with LangChain Support",
    "version": "0.1.2",
    "split_keywords": [
        "chatgpt",
        "chatbot",
        "gpt-3",
        "gpt-3.5-turbo",
        "text-generation",
        "language-model",
        "language-modeling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "03de6cf8faeaab8246ecceee304baa2ca0a659fa8c49fd093f8a0aa89d84eca9",
                "md5": "d311d1a3e6be77a259b93da7d94297c4",
                "sha256": "78d39a0413293eacbb4c9cb89bdce5ed717d2c3fb0bbcde35e68a4cb5f5b664b"
            },
            "downloads": -1,
            "filename": "chatgpthub-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d311d1a3e6be77a259b93da7d94297c4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 9550,
            "upload_time": "2023-04-18T18:17:42",
            "upload_time_iso_8601": "2023-04-18T18:17:42.802313Z",
            "url": "https://files.pythonhosted.org/packages/03/de/6cf8faeaab8246ecceee304baa2ca0a659fa8c49fd093f8a0aa89d84eca9/chatgpthub-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-18 18:17:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "kadirnar",
    "github_project": "chatgpthub",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "chatgpthub"
}
        
Elapsed time: 0.08090s