# LiteGPT
LiteGPT is a simple Python library designed for interacting with APIs, enabling text query submission and image generation in a chat format. It supports saving chat history and configuring an HTTP client with the option to use HTTP/2 for faster data transfer. The library is built with a simplified interface, making it easy to integrate with various chatbots or user applications working with generative AI.
## Features
- **Text Queries:** The `ask` method sends user queries to the API and processes the response. It includes support for message history, allowing continuous dialogue.
- **Image Generation:** The `image` method sends a text description to generate an image and returns the result in JSON format.
- **Message History Management:** The library supports working with message history through the external `History` class, making it easy to track the conversation and improve the user experience.
## Documentation
For detailed documentation on how to use LiteGPT, please refer to the official documentation:
[LiteGPT Documentation](https://red-3.gitbook.io/litegpt)
## Installation
You can install the `LiteGPT` library from PyPI using `pip`:
```bash
pip install litegpt
```
## Usage
**Text Queries**
The ask function allows you to send a query to the AI chat and receive a response while maintaining chat history.
```python
from litegpt import LiteGPT
# Initialize LiteGPT and send a query
bot = LiteGPT()
response = bot.ask("Your query here...")
print(response)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/RedPiarOfficial/LiteGPT",
"name": "litegpt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "artificial-intelligence, ai, lite, gpt, assistant, chatbot, image-generator",
"author": "RedPiar",
"author_email": "Redpiar.official@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/dc/32/ea225958a3350c4aa91086bf4bd4d5572342600b8a7cf9c8fe97b2fa855a/litegpt-1.1.0.tar.gz",
"platform": null,
"description": "# LiteGPT\r\n\r\nLiteGPT is a simple Python library designed for interacting with APIs, enabling text query submission and image generation in a chat format. It supports saving chat history and configuring an HTTP client with the option to use HTTP/2 for faster data transfer. The library is built with a simplified interface, making it easy to integrate with various chatbots or user applications working with generative AI.\r\n\r\n## Features\r\n\r\n- **Text Queries:** The `ask` method sends user queries to the API and processes the response. It includes support for message history, allowing continuous dialogue.\r\n- **Image Generation:** The `image` method sends a text description to generate an image and returns the result in JSON format.\r\n- **Message History Management:** The library supports working with message history through the external `History` class, making it easy to track the conversation and improve the user experience.\r\n\r\n## Documentation\r\nFor detailed documentation on how to use LiteGPT, please refer to the official documentation:\r\n[LiteGPT Documentation](https://red-3.gitbook.io/litegpt)\r\n\r\n## Installation\r\n\r\nYou can install the `LiteGPT` library from PyPI using `pip`:\r\n\r\n```bash\r\npip install litegpt\r\n```\r\n## Usage\r\n\r\n**Text Queries**\r\n\r\nThe ask function allows you to send a query to the AI chat and receive a response while maintaining chat history.\r\n\r\n```python\r\nfrom litegpt import LiteGPT\r\n\r\n# Initialize LiteGPT and send a query\r\nbot = LiteGPT()\r\nresponse = bot.ask(\"Your query here...\")\r\nprint(response)\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "LiteGPT provides free access to the ChatGPT and image generator",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/RedPiarOfficial/LiteGPT",
"Source": "https://github.com/RedPiarOfficial/LiteGPT"
},
"split_keywords": [
"artificial-intelligence",
" ai",
" lite",
" gpt",
" assistant",
" chatbot",
" image-generator"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "41ff17839a4ad3a8d36cc3754bb76f9e9861dbf93b9f0f1574e4b6c6c2334901",
"md5": "5d35a6e824f4cc9d2c50e8deb40d0fb5",
"sha256": "517009d3698de8fe7295d7000ce946ca609312f15db21832b5173ed28e74e115"
},
"downloads": -1,
"filename": "litegpt-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5d35a6e824f4cc9d2c50e8deb40d0fb5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4473,
"upload_time": "2024-11-16T09:09:58",
"upload_time_iso_8601": "2024-11-16T09:09:58.246270Z",
"url": "https://files.pythonhosted.org/packages/41/ff/17839a4ad3a8d36cc3754bb76f9e9861dbf93b9f0f1574e4b6c6c2334901/litegpt-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dc32ea225958a3350c4aa91086bf4bd4d5572342600b8a7cf9c8fe97b2fa855a",
"md5": "3c9f6cb1f0402905ef6c28e882e56af0",
"sha256": "a0374e0e2bc57d5289e825ef85de039f624a2719fc80ceefdc2ecc1c263dae7f"
},
"downloads": -1,
"filename": "litegpt-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "3c9f6cb1f0402905ef6c28e882e56af0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3934,
"upload_time": "2024-11-16T09:09:59",
"upload_time_iso_8601": "2024-11-16T09:09:59.996741Z",
"url": "https://files.pythonhosted.org/packages/dc/32/ea225958a3350c4aa91086bf4bd4d5572342600b8a7cf9c8fe97b2fa855a/litegpt-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-16 09:09:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RedPiarOfficial",
"github_project": "LiteGPT",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "litegpt"
}