Skip to main content

Supercharge your projects with LLMs. No API keys required.

Project description

Supercharge your projects with the Power of Large Language Models.

OpynGPT is a Python module that empowers developers to effortlessly harness the capabilities of large language models (LLMs) without the need for authentication or API keys. Designed with simplicity and accessibility in mind, OpynGPT supercharges your Python projects by providing natural language generation and understanding capabilities, making it an invaluable tool for developers of all skill levels.

Key Features

  • No API Keys Required: OpynGPT eliminates the hassle of acquiring and managing API keys, providing a seamless and straightforward integration with language models.

  • Natural Language Generation: Leverage the power of LLMs to generate human-like text responses based on your input prompts, enabling a wide range of applications such as chatbots, content generation, and more.

  • Beginner-Friendly: With its intuitive interface and easy-to-use functions, OpynGPT is the perfect starting point for developers new to language models, allowing them to explore and experiment with ease.

  • Command-Line Interface: Interact with OpynGPT via the command line for both interactive sessions and single queries, providing flexibility and ease of use directly from the terminal.

  • Phind Model Integration: Inspired by the renowned tgpt project, OpynGPT utilizes the powerful Phind Model, ensuring high-quality language generation and understanding capabilities.

  • Open-Source: OpynGPT is an open-source project, allowing developers to contribute, customize, and extend its functionality to suit their specific needs and requirements.

Getting Started

Prerequisites

Before diving into OpynGPT, ensure you have the following prerequisites installed:

  • Python 3.x

  • The requests library (Install using pip install requests)

Installation

Installing OpynGPT is as simple as running the following command:

pip install opyngpt

To install the latest version from the GitHub repository, use:

pip install git+https://github.com/anxkhn/OpynGPT.git

Usage

OpynGPT in python applications is straightforward and easy.

Here’s a quick guide to get you started:

  1. Import the prompt function from the OpynGPT module:

from opyngpt import prompt
  1. Use the prompt function to generate natural language responses based on your input:

user_input = "Write a factorial code in Python."
response = prompt(user_input)
print(response)

OpynGPT will process your input and return a relevant response, empowering you to integrate language models into your projects seamlessly.

OpynGPT Command Line Interface

Interactive Mode:

To enter the interactive mode, simply open your terminal and type opyngpt. Then you can enter your messages and receive responses interactively. Type exit or press Ctrl+C to quit the interactive mode.

Example:

$ opyngpt
Enter your message (type 'exit' to quit): Hello, how are you?
[OpynGPT]: I'm doing well, thank you for asking. How can I assist you today?
Enter your message (type 'exit' to quit): What is the capital of France?
[OpynGPT]: The capital of France is Paris.
Enter your message (type 'exit' to quit): exit

Single Query:

To make a single query, use opyngpt "your query" in your terminal, replacing "your query" with your actual query.

Example:

$ opyngpt "What is the capital of Japan?"
[OpynGPT]: The capital of Japan is Tokyo.

Changelog

Version 0.3.0

  • Added Command Line Interface (CLI)

  • Added Interactive Mode to CLI

  • Improved error handling

Version 0.2.0

  • Switched to Phind Model

Version 0.1.4

  • Bug free working version with proper error handling

Version 0.1.0

  • Initial release with basic functionality released as FreeGPTpy

Contributing

We welcome contributions from the community to make OpynGPT even better. If you’d like to contribute, please follow these steps:

  1. Fork the repository

  2. Create a new branch for your feature or bug fix

  3. Make your changes and commit them

  4. Push your changes to your forked repository

  5. Submit a pull request to the main repository

License

OpynGPT is licensed under the GPLv3 License. For more information about this license, please visit this website.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opyngpt-0.4.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opyngpt-0.4.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file opyngpt-0.4.0.tar.gz.

File metadata

  • Download URL: opyngpt-0.4.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for opyngpt-0.4.0.tar.gz
Algorithm Hash digest
SHA256 559e8470668f279018872445c08879d3d365dc417a9eafedb75abd501ab16b4a
MD5 3d1284894aad1ce77264e9de40c861b8
BLAKE2b-256 1facb19b06b5bba88de60c3e099bfb0769f7c39f1496bb6273b59985367bf773

See more details on using hashes here.

File details

Details for the file opyngpt-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: opyngpt-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for opyngpt-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 395bdb52d92142c0d3503fc51b2d6d70498565e5ea0f0966ee9077ca4b5727d5
MD5 d903d7b234806d5ea6f46309de6bd59f
BLAKE2b-256 1ad3ba4c9ce20cdb9cd05dff75384dadb6264984f56a60e03425d3ad408494b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page