An easy-to-use Python module leveraging LLMs. No keys needed—just prompt for natural language responses.
Python
32
19 commits
updated Jul 9, 2024
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.
Before diving into OpynGPT, ensure you have the following prerequisites installed:
requests library (Install using pip install requests)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
Here's a quick guide to get you started:
prompt function from the OpynGPT module:from opyngpt import prompt
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.
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
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.
We welcome contributions from the community to make OpynGPT even better. If you'd like to contribute, please follow these steps:
OpynGPT is licensed under the GPLv3 License. For more information about this license, please visit this website.
An easy-to-use Python module leveraging LLMs. No keys needed—just prompt for natural language responses.
Python
32
19 commits
updated Jul 9, 2024
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.
Before diving into OpynGPT, ensure you have the following prerequisites installed:
requests library (Install using pip install requests)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
Here's a quick guide to get you started:
prompt function from the OpynGPT module:from opyngpt import prompt
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.
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
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.
We welcome contributions from the community to make OpynGPT even better. If you'd like to contribute, please follow these steps:
OpynGPT is licensed under the GPLv3 License. For more information about this license, please visit this website.